[Python-Dev] 2.2a1 patch from PyChecker

Guido van Rossum guido@python.org
Thu, 09 Aug 2001 20:34:56 -0400

> >> 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?

Sure, but if I believe what folks on c.l.py say about the habits of
the average CGI coder, they'll probably have to remain until python
3.0 -- few will bother to check the warnings. :-) / :-(

> 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.

Good idea!

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