[Python-Dev] Re: [Python-checkins] python/dist/src/Misc NEWS, 1.1193.2.27, 1.1193.2.28

Raymond Hettinger python at rcn.com
Fri Mar 4 04:35:18 CET 2005

> > SF bug #1155938: Missing None check for __init__().
> Won't this break working (but erroneous) code? If so,
> should it be applied to the 2.4 branch?

Hmm, more than one poster found the error message to be helpful in
detecting buggy code.  The non-None return value was a pretty good
indicator that the code was doing something other than what the
programmer intended.

OTOH, there is almost certainly some existing, working code that would
stop working.

How about changing this to a warning in Py2.4?


More information about the Python-Dev mailing list