Issue 3186: bin(long) doesn't have a trailing 'L' (original) (raw)
In Python 2.6, for a long n, hex(n) and oct(n) have a trailing 'L', while bin(n) does not:
hex(1L) '0x1L' oct(1L) '01L' bin(1L) '0b1'
I'm guessing that this is intentional, and that the only reason hex(n) and oct(n) still have a trailing 'L' is backwards compatibility, but I thought I'd better check.