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 nlsdfnbch
Recipients nlsdfnbch
Date 2017-10-19.07:48:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1508399306.09.0.213398074469.issue31816@psf.upfronthosting.co.za>
In-reply-to
Content
When defining a custom __dir__ method in a class, calling dir() on
said class still sorts the output. This is, imo, unexpected behaviour, especially if the order of output was specified in __dir__ and is somehow relevant.

Example and more detail here
https://stackoverflow.com/questions/46824459/custom-dir-returns-list-of-attributes-sorted-alphabetically
History
Date User Action Args
2017-10-19 07:48:26nlsdfnbchsetrecipients: + nlsdfnbch
2017-10-19 07:48:26nlsdfnbchsetmessageid: <1508399306.09.0.213398074469.issue31816@psf.upfronthosting.co.za>
2017-10-19 07:48:26nlsdfnbchlinkissue31816 messages
2017-10-19 07:48:25nlsdfnbchcreate