[Python-Dev] nonlocals() function? (original) (raw)

Nick Coghlan ncoghlan at gmail.com
Mon Apr 5 15:03:39 CEST 2010


Greg Ewing wrote:

* Even though the order isn’t important for code, it’s convenient at the interactive prompt to see the methods of an item in alphabetical order for quick scanning. Since I suspect this is most people's main use for dir(), I think it's a good enough reason for leaving things as they are.

Yes, I was going to point out that I would personally be very annoyed if someone removed the automatic sorting from the output of dir() :)

Cheers, Nick.

-- Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia



More information about the Python-Dev mailing list