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.

classification
Title: add inspect functions to retrieve attributes from both old dir() and overridden dir()
Type: enhancement Stage:
Components: Versions: Python 3.5
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: ncoghlan, yselivanov
Priority: normal Keywords:

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: Nick 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:51adminsetgithub: 63438
2015-07-21 08:08:15ethan.furmansetnosy: - ethan.furman
2014-01-29 00:18:11yselivanovsetnosy: + yselivanov

versions: + Python 3.5, - Python 3.4
2013-10-13 15:30:02ethan.furmansetmessages: + msg199723
2013-10-13 12:12:42ncoghlansetmessages: + msg199700
2013-10-13 06:33:44ncoghlansetnosy: + ncoghlan
2013-10-12 22:38:26ethan.furmansettype: 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:29ethan.furmancreate