[issue3186] bin(long) doesn't have a trailing 'L'

2008-06-24 Thread Mark Dickinson
Mark Dickinson <[EMAIL PROTECTED]> added the comment: Ah. I missed this. Apologies. Sorry for the noise. -- resolution: -> invalid status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> ___

[issue3186] bin(long) doesn't have a trailing 'L'

2008-06-24 Thread Eric Smith
Eric Smith <[EMAIL PROTECTED]> added the comment: See http://mail.python.org/pipermail/python-dev/2008-February/077062.html, where Guido endorses my approach to implementing bin() without the trailing L for longs. Note that he also agrees with not adding a __bin__ function, which was implemented

[issue3186] bin(long) doesn't have a trailing 'L'

2008-06-24 Thread Mark Dickinson
New submission from Mark Dickinson <[EMAIL PROTECTED]>: 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 hav