[issue1056293] dir() should only return strings

STINNER Victor report at bugs.python.org
Mon Feb 16 18:35:10 CET 2009


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

Yes, the issue still exists in 2009. Attached patch contains a test + 
a patch to test the type of each value of the dir() result.

I'm not sure that it's a good idea to apply my patch. It's maybe not 
the job of Python to check the types of dir() result.

----------
keywords: +patch
nosy: +haypo
Added file: http://bugs.python.org/file13109/dir_type.patch

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


More information about the Python-bugs-list mailing list