Hi Steven,
Thanks for digging into this.
"Steven D'Aprano" <[EMAIL PROTECTED]> writes:
> Replying to myself... how sad.
>
> On Tue, 12 Jul 2005 15:41:46 +1000, Steven D'Aprano wrote:
>
>> That wasn't clear from his post at all. If he had explained what he
>> wanted, I wouldn't have wasted my tim
Replying to myself... how sad.
On Tue, 12 Jul 2005 15:41:46 +1000, Steven D'Aprano wrote:
> That wasn't clear from his post at all. If he had explained what he
> wanted, I wouldn't have wasted my time explaining what he already knew.
On reading it, that came across more snarky than I intended. S
On Mon, 11 Jul 2005 13:54:05 +0200, Aaron Bingham wrote:
>> Two dicts are equal if they have the same keys and the same values.
>
> That is what I would expect, but where is that documented? Also,
> where is the behavior of the much less obvious dictionary methods
> __ge__, __gt__, __le__, __lt_
"Use the source, Luke"
dict_richcompare:
http://fisheye.cenqua.com/viewrep/python/python/dist/src/Objects/dictobject.c?r=2.165#l1510
dict_compare:
http://fisheye.cenqua.com/viewrep/python/python/dist/src/Objects/dictobject.c?r=2.165#l1425
/Simon
--
http://mail.python.org/mailman/listinfo/pytho
Steven D'Aprano wrote:
> On Mon, 11 Jul 2005 12:42:55 +0200, Neil Benn wrote:
>
>
>
>> Hello,
>>
>>I can't find the docs for __eq__ on a dict and I can't
>> find a description on what the eq does (strangely it does implement >
>> and < but I have no idea what that does). Does anyo
"Steven D'Aprano" <[EMAIL PROTECTED]> writes:
> On Mon, 11 Jul 2005 12:42:55 +0200, Neil Benn wrote:
>
>> Hello,
>>
>> I can't find the docs for __eq__ on a dict and I can't find
>> a description on what the eq does (strangely it does implement > and <
>> but I have no idea what tha
[EMAIL PROTECTED] wrote:
>These methods are documanted here:
>http://docs.python.org/ref/customization.html
>
>
>
Hmm, can't see anything about implementation of python dict methods
__eq__, __lt__ or __gt__ there - general docs but not specific to the
dict here - at least not as far as I can s
On Mon, 11 Jul 2005 12:42:55 +0200, Neil Benn wrote:
> Hello,
>
> I can't find the docs for __eq__ on a dict and I can't find
> a description on what the eq does (strangely it does implement > and <
> but I have no idea what that does). Does anyone know (definitively)
> what the _
These methods are documanted here:
http://docs.python.org/ref/customization.html
--
http://mail.python.org/mailman/listinfo/python-list