On Thu, 08 Nov 2007 22:53:16 -0800, r.grimm wrote:

>>>> (1).__cmp__(10)
> -1

As the dot is an operator like ``+`` or ``/`` you can also add spaces to
avoid the ambiguity:

In [493]: 1 . __cmp__(10)
Out[493]: -1

In [494]: 1 .__cmp__(10)
Out[494]: -1

Ciao,
        Marc 'BlackJack' Rintsch
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to