This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2013年10月12日 22:35 by ethan.furman, last changed 2022年04月11日 14:57 by admin.
| Messages (3) | |||
|---|---|---|---|
| msg199635 - (view) | Author: Ethan Furman (ethan.furman) * (Python committer) | Date: 2013年10月12日 22:38 | |
Currently we have - inspect.getmembers - inspect.classify_class_attrs But they only return what dir() returns. It is proposed that we add - inspect.get_all_members - inspect.classify_all_class_attrs which will look at all the attributes returned by both the original dir() and the overridden dir(). |
|||
| msg199700 - (view) | Author: Alyssa Coghlan (ncoghlan) * (Python committer) | Date: 2013年10月13日 12:12 | |
Should we go further and also consider attributes provided through the metaclass? |
|||
| msg199723 - (view) | Author: Ethan Furman (ethan.furman) * (Python committer) | Date: 2013年10月13日 15:30 | |
It would certainly be nice. We could do a dir() on the metaclass, discarding anything either not in dir(type) or not dundered, or both. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:57:51 | admin | set | github: 63438 |
| 2015年07月21日 08:08:15 | ethan.furman | set | nosy:
- ethan.furman |
| 2014年01月29日 00:18:11 | yselivanov | set | nosy:
+ yselivanov versions: + Python 3.5, - Python 3.4 |
| 2013年10月13日 15:30:02 | ethan.furman | set | messages: + msg199723 |
| 2013年10月13日 12:12:42 | ncoghlan | set | messages: + msg199700 |
| 2013年10月13日 06:33:44 | ncoghlan | set | nosy:
+ ncoghlan |
| 2013年10月12日 22:38:26 | ethan.furman | set | type: enhancement title: add inspect functions to -> add inspect functions to retrieve attributes from both old dir() and overridden dir() messages: + msg199635 versions: + Python 3.4 |
| 2013年10月12日 22:35:29 | ethan.furman | create | |