Consistency in Python

Fredrik Lundh fredrik at pythonware.com
Fri Aug 25 18:35:20 EDT 2006


Brendon Towle wrote:

>> b) http://pyfaq.infogami.com/why-doesn-t-list-sort-return-the-sorted-list
>>    (this also explains how to handle your specific use case)
> 
> Well, I posted working code, so I thought it should have been obvious 
> that I knew how to handle my use case, and was (am) looking for a 
> language-design level answer as opposed to a working-code level answer. 
> Besides, the article above (although useful *and* freshly modified) 
> doesn't explain how to handle the use case I posted with append(), or 
> the ones I didn't post with extend(), insert(), remove(), dict.update(), 
> and a bunch of others I can't think of off the top of my head.

by the way, why are you asking for inconsistency in a thread about 
consistency ?

</F>




More information about the Python-list mailing list