print longs

Nathan Clegg nathan at islanddata.com
Mon Oct 4 12:03:02 EDT 1999


I'm trying to print some longs and can't seem to get what I want.  At
first I used "%ld" in a format string before running into trouble and then
learning that the 'l' is ignored.  I know using %s or any str() or repr()
solutions leaves me with an unwanted 'L' at the end.  Do I have to convert
to a string and manually pull the 'L' off?  Surely there is a decent
conversion for me here, but I can't seem to find it.  Any suggestions? 
Thanks!


----------------------------------
Nathan Clegg
 nathan at islanddata.com






More information about the Python-list mailing list