Guido van Rossum <[email protected]> added the comment:
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. ---------- _______________________________________ Python tracker <[email protected]> <https://bugs.python.org/issue41780> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
