Christian Heimes <[email protected]> added the comment: dir() and __dir__ work as designed and documented:
https://docs.python.org/3/reference/datamodel.html?highlight=__dir__#object.__dir__ Called when dir() is called on the object. A sequence must be returned. dir() converts the returned sequence to a list and sorts it ---------- nosy: +christian.heimes resolution: -> not a bug status: open -> pending _______________________________________ Python tracker <[email protected]> <https://bugs.python.org/issue31816> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
