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.

Author gvanrossum
Recipients AllanDaemon, BTaskaya, docs@python, gvanrossum
Date 2020-09-15.17:51:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1600192276.99.0.794685388091.issue41780@roundup.psfhosted.org>
In-reply-to
Content
The forwarding of `__class__`, and the resulting difference between `type(list[int])` and `list[int].__class__` are intentional.

I think overriding `__dir__` along the lines suggested by Allan (but in C of course) would be the best solution.
History
Date User Action Args
2020-09-15 17:51:17gvanrossumsetrecipients: + gvanrossum, docs@python, BTaskaya, AllanDaemon
2020-09-15 17:51:16gvanrossumsetmessageid: <1600192276.99.0.794685388091.issue41780@roundup.psfhosted.org>
2020-09-15 17:51:16gvanrossumlinkissue41780 messages
2020-09-15 17:51:16gvanrossumcreate