[issue4523] logging module __init__ uses has_key

STINNER Victor report at bugs.python.org
Thu Dec 4 16:01:41 CET 2008


STINNER Victor <victor.stinner at haypocalc.com> added the comment:

I tried the whole Python test suite with -3. Some warnings:
 - no more cPikle and bsddb modules
 - has_key() (used in many tests)
 - a <> b (used in many AST/grammar tests)
 - an exception have to inherit from Exception
 - callable() doesn't exist anymore
 - etc.

It's not a good idea to fix the regression tests because Python 2.6 
still uses the listed features. But the logging warning should be 
fixed, so here is a patch.

----------
keywords: +patch
Added file: http://bugs.python.org/file12217/logging_py3k.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4523>
_______________________________________


More information about the Python-bugs-list mailing list