Message136726
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 |
|
Date |
User |
Action |
Args |
2011-05-24 09:23:51 | michael.foord | set | recipients:
+ michael.foord, benjamin.peterson |
2011-05-24 09:23:51 | michael.foord | set | messageid: <1306229031.01.0.0272931963515.issue12166@psf.upfronthosting.co.za> |
2011-05-24 09:23:50 | michael.foord | link | issue12166 messages |
2011-05-24 09:23:50 | michael.foord | create | |
|