Implicit Conversions

John Roth newsgroups at jhrothjr.com
Sun Dec 14 18:54:21 EST 2003


The coercion rules are documented in the Python Reference Manual under
Data Model - Special Method Names - Coercion Rules.

John Roth


"Reneé" <rlogan at hmc.edu> wrote in message
news:mailman.112.1071251837.9307.python-list at python.org...
I wanted to know the order of implicit conversions and which sort of values
allow them. From searching around in books and the archive of this mailing
list, it seems to be that only numbers are implicitly converted within each
other and bools can be implicitly converted to ints? However, I'm unable to
find any other implicit conversions and the order of the implicit
conversions (something like int->float->long). Any help would be greatly
apprectiated. Also, I'm not on the mailing list so can everyone please cc me
in the replies?
Reneé








More information about the Python-list mailing list