On Sun, Aug 16, 2009 at 10:33 PM, Mark Lawrence wrote:
>
> I wasn't discussing __cmp__, I was referring to the quote by Chris Rebert
> from the Python docs regarding the rich comparison methods, a discrepancy
> between the documentation and the implementation as noted in the link that I
> gave, an
[Xavier Ho]
> > I've recently made my way to Python 3.1 and I'm not seeing __cmp__() in the
> > documentation.
>
> > Is there a substitution for this special method in 3.1, or do I really have
> > to define all six rich comparison methods to work it out?
FWIW, there is a recipe for expanding the c
Xavier Ho wrote:
On Sun, Aug 16, 2009 at 9:49 PM, Mark Lawrence wrote:
Unfortunately I don't think it's that easy, see.
http://mail.python.org/pipermail/python-list/2008-November/688761.html
The issue referenced is still open. This of course assumes that I've
posted the correct link this time!
On Sun, Aug 16, 2009 at 9:49 PM, Mark Lawrence wrote:
>
> Unfortunately I don't think it's that easy, see.
> http://mail.python.org/pipermail/python-list/2008-November/688761.html
> The issue referenced is still open. This of course assumes that I've
> posted the correct link this time!
>
I'm no
Chris Rebert wrote:
On Sat, Aug 15, 2009 at 8:09 AM, Xavier Ho wrote:
Hey all,
I've recently made my way to Python 3.1 and I'm not seeing __cmp__() in the
documentation.
Is there a substitution for this special method in 3.1, or do I really have
to define all six rich comparison methods to wor
Xavier Ho wrote:
I'm really looking for a way to set up Python classes' natural ordering
for sorting purposes.
I believe __lt__ (<) is the only method (operator) used by both .sort
and heap module.
--
http://mail.python.org/mailman/listinfo/python-list
On Sun, Aug 16, 2009 at 7:38 PM, Mark Lawrence wrote:
>
> Blast, I posted the wrong flaming link, sorry everybody.
>
No, don't be sorry. I found your link very informative, and while it's a
little mixed, it could be useful.
I'm really looking for a way to set up Python classes' natural ordering
Chris Rebert wrote:
On Sat, Aug 15, 2009 at 1:06 PM, Mark Lawrence wrote:
Xavier Ho wrote:
Hey all,
I've recently made my way to Python 3.1 and I'm not seeing __cmp__() in
the
documentation.
Is there a substitution for this special method in 3.1, or do I really
have
to define all six rich com
On Sat, Aug 15, 2009 at 1:06 PM, Mark Lawrence wrote:
> Xavier Ho wrote:
>>
>> Hey all,
>>
>> I've recently made my way to Python 3.1 and I'm not seeing __cmp__() in
>> the
>> documentation.
>>
>> Is there a substitution for this special method in 3.1, or do I really
>> have
>> to define all six ri
On Sat, Aug 15, 2009 at 8:09 AM, Xavier Ho wrote:
> Hey all,
>
> I've recently made my way to Python 3.1 and I'm not seeing __cmp__() in the
> documentation.
>
> Is there a substitution for this special method in 3.1, or do I really have
> to define all six rich comparison methods to work it out?
Xavier Ho wrote:
Never mind my last email. Google actually found me something at last.
I also found this page:
http://mail.python.org/pipermail/python-list/2008-November/688591.html
That still uses a sloppy way of defining the special methods, and a little
chunky.
Is there a better way for the
Xavier Ho wrote:
Hey all,
I've recently made my way to Python 3.1 and I'm not seeing __cmp__() in the
documentation.
Is there a substitution for this special method in 3.1, or do I really have
to define all six rich comparison methods to work it out?
If this question has already been asked som
Never mind my last email. Google actually found me something at last.
I also found this page:
http://mail.python.org/pipermail/python-list/2008-November/688591.html
That still uses a sloppy way of defining the special methods, and a little
chunky.
Is there a better way for the lazy me?
Ching-Yu
Hey all,
I've recently made my way to Python 3.1 and I'm not seeing __cmp__() in the
documentation.
Is there a substitution for this special method in 3.1, or do I really have
to define all six rich comparison methods to work it out?
If this question has already been asked somewhere, I apologise
14 matches
Mail list logo