New submission from Michael Foord <mich...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue12166>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to