Confusion about numbers

Erik Max Francis max at
Thu Jan 9 07:28:38 CET 2003

Tim Roberts wrote:

> I thought the special status of "long" numbers had gone by the
> wayside, so
> that all integers were the same, but clearly I was mistaken:

The plan is to make the transition between ints, longs, and floats (and
perhaps rationals, should they come along) more natural; that doesn't
mean they're all the same thing:

Python 2.2.2 (#2, Oct 14 2002, 17:32:20) 
[GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> type(1)
<type 'int'>
>>> type(1L)
<type 'long'>
>>> type(1.0)
<type 'float'>

 Erik Max Francis / max at /
 __ San Jose, CA, USA / 37 20 N 121 53 W / &tSftDotIotE
/  \ All bad poetry springs from genuine feeling.
\__/ Oscar Wilde Counter-Strike /
 A personal guide to Counter-Strike.

More information about the Python-list mailing list