learnpython.org - an online interactive Python tutorial

Gregory Ewing greg.ewing at canterbury.ac.nz
Tue Apr 26 03:06:59 CEST 2011


harrismh777 wrote:
> maybe the way 
> to be really consistent (especially with the Zen of Python, explicit is 
> better than implicit) that int --> float --> complex (imaginary) should 
> not occur either !

Applying parts of the Zen selectively can be dangerous.
Practicality also beats purity. I've used a language
where there was no automatic promotion from ints to
floats, and it was a pain in the backside.

-- 
Greg



More information about the Python-list mailing list