Michael Foord <mich...@voidspace.org.uk> added the comment: No. It would return all members accessible to getattr_static (which is completely unrelated to what __dir__ may or may not return). Also calling __dir__ would mean code execution, and the point of these functions is to avoid this where possible.
---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue11770> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com