[New-bugs-announce] [issue12166] object.__dir__

Michael Foord report at bugs.python.org
Tue May 24 11:23:51 CEST 2011


New submission from Michael Foord <michael at voidspace.org.uk>:

Implementing a custom __dir__ method is fiddly because there is no way of obtaining the standard list of attributes that dir would return.

Moving the relevant parts of the dir implementation into object.__dir__ would allow a custom __dir__ to obtain the "standard list" by calling up to the base class.

See email discussion at:

http://mail.python.org/pipermail/python-ideas/2011-May/010319.html

----------
messages: 136726
nosy: benjamin.peterson, michael.foord
priority: normal
severity: normal
status: open
title: object.__dir__
type: feature request
versions: Python 3.3

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


More information about the New-bugs-announce mailing list