print longs
Tim Peters
tim_one at email.msn.com
Mon Oct 4 21:43:44 EDT 1999
[Nathan Clegg]
> Do I have to convert to a string and manually pull the 'L' off?
[Greg Ewing]
> Unfortunately, yes. Many other people think this is a pain as well,
> but Guido doesn't seem to be among them, so we're stuck with this
> for the time being.
It can't ever be changed in Python1. Too much existing e.g.
str(long)[:-1]
and
hex(long)[2:-1]
code would silently break.
I *hope* Python2 has a generic "number" concept, and doesn't distiguish
among ints, longs, floats and complexii <ahem> by default. Those are
low-level implementation distinctions of interest only to experts and idiots
<wink -- but C counts as an idiot for this purpose>.
counting-the-hoursL-ly y'rs - tim
More information about the Python-list
mailing list