[Python-Dev] 2.2a1 patch from PyChecker
Thu, 9 Aug 2001 18:09:03 -0400
On Thu, Aug 09, 2001 at 05:20:20PM -0400, Guido van Rossum wrote:
>> cgi.py:820: Overriden method (values) doesn't match signature in
>> class (cgi.FormContentDict)
>I'm afraid that one will have to remain -- it exists for b/w
>compatibility (with 6 year old code :-).
That reminds me: should we put warnings in cgi.py for instantiations
of FormContent and other old classes, so we can delete them in Python
2.3? One problem: if a class doesn't have an __init__ method,
subclasses that have their own __init__ methods won't call it. Maybe
this could be done by adding 'self.warn()' to all the methods of an
outdated class, and defining a warn() method that raises a warning.
>> imaplib.py:1026: No global (j) found
>Huh? There's no 'j' on that line.
Bug in the 2.1 version; the CVS code has been changed.