Hallo,
could you explaint me the difference between the two following
statements.


Python 2.5 (r25:51908, Oct  7 2006, 23:45:05)
[GCC 3.3.5 20050117 (prerelease) (SUSE Linux)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> (1).__cmp__(10)
-1
>>> 1.__cmp__(10)
  File "<stdin>", line 1
    1.__cmp__(10)
            ^
SyntaxError: invalid syntax

The first works as expect, but the second.

Regards Rainer

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to