A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2001-August/016892.html below:

[Python-Dev] Direction of PyChecker

[Python-Dev] Direction of PyCheckerGuido van Rossum guido@python.org
Fri, 10 Aug 2001 15:45:19 -0400
> As I said before, I think that the modules/classes
> in the standard library should have them.

You can help by submitting some patches (one module at a time please :-).

> And docstrings are definitely
> doc, not code.

Agreed, but I don;'t understand why you said this.

> > There are also complaints about attribute used by an
> > abstract base class but only defined in the subclass.
> 
> This is true.  While python doesn't require setting, I think this feature
> can be dangerous.  It seems better to init the attr to None. 

Agreed.  The initialization to None can have a comment explaining what
the subclass should do.

Ditto for methods: in an abstract base class, the methods should be
defined (so the signature is known) but raise NotImplementedError.

> In urllib2, there are 6 warnings about 2 different attributes. 

How come PyChecker didn't find the other typo there?

--Guido van Rossum (home page: http://www.python.org/~guido/)



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4