Re: [Python-Dev] __subclasses__() return order

2013-05-26 Thread Simon Cross
I've used __subclasses__ as an easy way to register components by sub-classing a base component. I didn't rely on the ordering. I guess the current order depends on the order in which modules are imported and so is pretty fragile anyway? ___ Python-Dev ma

Re: [Python-Dev] PEP 8 and function names

2013-05-26 Thread Mark Lawrence
On 26/05/2013 14:02, Stephen J. Turnbull wrote: Nick Coghlan writes: > threading module) and decided the cost/benefit ratio was too low to > justify ever doing that again. I think you just failed Econ 101, Nick. I-teach-that-s**t-for-a-living-ly y'rs, P.S. Of course we all understood what

Re: [Python-Dev] PEP 8 and function names

2013-05-26 Thread Stephen J. Turnbull
Nick Coghlan writes: > threading module) and decided the cost/benefit ratio was too low to > justify ever doing that again. I think you just failed Econ 101, Nick. I-teach-that-s**t-for-a-living-ly y'rs, P.S. Of course we all understood what you meant. :-)

Re: [Python-Dev] PEP 8 and function names

2013-05-26 Thread Nick Coghlan
On Sun, May 26, 2013 at 7:48 PM, Sébastien Durand wrote: > Hi all, > > "There should be one-- and preferably only one --obvious way to do it." > > We all love this mantra. > > But one thing that often confuses people : function naming. The standard > library is kind of inconsistent. Some functions

Re: [Python-Dev] PEP 8 and function names

2013-05-26 Thread Andriy Kornatskyy
PEP8 consistency is a question to the development team commitment. Nothing prevents you add pep8 checks to build process, contribute fixes. This inconsistency has been analyzed for various web frameworks recently: http://mindref.blogspot.com/2012/10/python-web-pep8-consistency.html No much in t

[Python-Dev] PEP 8 and function names

2013-05-26 Thread Sébastien Durand
Hi all, "There should be one-- and preferably only one --obvious way to do it." We all love this mantra. But one thing that often confuses people : function naming. The standard library is kind of inconsistent. Some functions are separated by underscores and others aren't. It's not intuitive and