[Python-ideas] A number is a number

Neil Toronto ntoronto at cs.byu.edu
Sat Jan 26 05:27:58 CET 2008

Isn't it?

Python 3.0 integers are just integers. Now ceil and floor return ints 
from float arguments. It seems like things are moving closer to just 
having a single "number" type. For most applications, because of duck 
typing, you'd never know or care whether you're punting a float, int, or 
complex number around, and you'd usually not care.

Why not just go whole-hog and unify them all?


More information about the Python-ideas mailing list