[issue9732] Addition of getattr_static for inspect module

Guido van Rossum report at bugs.python.org
Wed Sep 1 16:54:55 CEST 2010


Guido van Rossum <guido at python.org> added the comment:

Just jumping in here with commentary from the side bench... I noticed you say "this does not always return the same results as dir(x)". But since dir(x) exists, perhaps it would make sense to match dir(x) as closely as possible? I.e. if dir(x) doesn't know about it, don't return it, if dir(x) does know about it, do return it? Those would be ease rules to remember for sure.

----------
nosy: +gvanrossum

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


More information about the Python-bugs-list mailing list