I thought the hell of stripping trailing Ls off of stringed numbers was gone but it appears that the hex() and oct() builtins still leave the trailing 'L' on longs:<br><br>Python 2.6a0 (trunk:58846M, Nov 4 2007, 15:44:12)
<br>[GCC 4.1.2 (Ubuntu 4.1.2-0ubuntu4)] on linux2<br>Type "help", "copyright", "credits" or "license" for more information.<br>>>> x = 0xffffffffc10025be<br>>>> x<br>
18446744072652596670L<br>>>> str(x)<br>'18446744072652596670'<br>>>> hex(x)<br>'0xffffffffc10025beL'<br>>>> '0x%x' % (x)<br>'0xffffffffc10025be'<br>>>> oct(x)
<br>'01777777777770100022676L'<br><br>This appears to be fixed in py3k (as there is no longer an int/long to distinguish). Can we at least get rid of the annoying L in 2.6?<br><br>-gps<br><br>