Shane Hathaway wrote:

>
> BTW have you ever tried this?
> 
>   data = [[], (), 0, '', {}]
>   data.sort()
>   print data
> 
> The one thing I wonder is whether the sort order is consistent between
> different versions of Python.  I get:
> 
>   [0, {}, [], '', ()]

This is consistent across Python versions. The sequence types are in 
alphabetical order:

   Dictionary, List, String, Tuple

This is documented somewhere.

--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net


_______________________________________________
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )

Reply via email to