What is up with "=="?
Robert Brewer
fumanchu at amor.org
Wed Oct 8 18:08:27 EDT 2003
If you haven't already, you should read
http://www.python.org/doc/current/ref/numeric-types.html , which
addresses your questions #1 and #3 pretty completely. Pay lose attention
to __radd__(), __rsub__(), etc.
Robert Brewer
MIS
Amor Ministries
fumanchu at amor.org
Quentin Crain wrote:
> 1 Whos __eq__ or __cmp__ is being called:
> String's or Int's?
> 3 The exception + gives makes it sound like there is
> a built-in function + that does not like taking an
> 'int' and a 'string'. Read this way, the built-in ==
> does accept 'int' and 'string'.
More information about the Python-list
mailing list