Newbie Questions: Swithing from Perl to Python

Mel Wilson mwilson at the-wire.com
Sun Oct 26 21:41:58 EST 2003


In article <mailman.122.1067214245.702.python-list at python.org>,
Andrew Bennetts <andrew-pythonlist at puzzling.org> wrote:
>On Sun, Oct 26, 2003 at 11:21:41AM -0500, Mel Wilson wrote:
>> In article <2rRmb.49323$e5.1791566 at news1.tin.it>,
>> Alex Martelli <aleaxit at yahoo.com> wrote:
>> >The list.sorted classmethod is more powerful than an instance method
>> >of lists would be: it will let you build a sorted list out of any iterable
>> >at all, AND support smoothly and transparently _subclasses_ of list.
>>
>> .. any finite iterable :>
>
>.. with comparable elements ;)

True, but that's old trouble.  Offering to provide a sort function
for any computable sequence is new.

Since we already give people the power to compute any computable
sequence, it may be that adding sort functions to the mix is not
fatal.

        Regards.        Mel.

Obie was just making sure...




More information about the Python-list mailing list