[issue1056293] dir() should only return strings

Daniel Diniz report at bugs.python.org
Mon Feb 9 07:55:50 CET 2009


Daniel Diniz <ajaksu at gmail.com> added the comment:

Still present in trunk:69418:

class obj: pass

obj.__dict__[1] = 0
[k for k in dir(obj) if k.startswith("set_")]

----------
nosy: +ajaksu2
type:  -> behavior
versions: +Python 2.7

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


More information about the Python-bugs-list mailing list