Python 3.0 - is this true?

Terry Reedy tjreedy at udel.edu
Mon Nov 10 10:16:28 EST 2008


Duncan Grisby wrote:
> In article <mailman.3702.1226203508.3487.python-list at python.org>,
>  Terry Reedy  <tjreedy at udel.edu> wrote:
> 
>> Have you written any Python code where you really wanted the old, 
>> unpredictable behavior?
> 
> I have an object database written in Python. It, like Python, is
> dynamically typed. It heavily relies on being able to sort lists where
> some of the members are None. To some extent, it also sorts lists of
> other mixed types. It will be very hard to migrate this aspect of it
> to Python 3.

Very Hard? Several key functions have been suggested on this thread. 
Given that 2.x only sorts most but not all types and that the sort is 
only guaranteed to be consistent within a session, as I remember, I 
suspect you can choose or write something at least as good for your 
purposes.




More information about the Python-list mailing list