Re: [Python-Dev] Should hex() yield 'L' suffix for long numbers?

2006-06-12 Thread Guido van Rossum
On 6/12/06, Tim Peters <[EMAIL PROTECTED]> wrote: > [Guido] > > Here's how I interpret PEP 237. Some changes to hex() and oct() are > > warned about in B1and to be implemented in B2. But I'm pretty sure > > that was about the treatment of negative numbers, not about the > > trailing 'L'. I believe

Re: [Python-Dev] Should hex() yield 'L' suffix for long numbers?

2006-06-12 Thread Tim Peters
[Guido] > Here's how I interpret PEP 237. Some changes to hex() and oct() are > warned about in B1and to be implemented in B2. But I'm pretty sure > that was about the treatment of negative numbers, not about the > trailing 'L'. I believe the PEP authors overlooked the trailing 'L' > for hex() and

Re: [Python-Dev] Should hex() yield 'L' suffix for long numbers?

2006-06-12 Thread Guido van Rossum
Here's how I interpret PEP 237. Some changes to hex() and oct() are warned about in B1and to be implemented in B2. But I'm pretty sure that was about the treatment of negative numbers, not about the trailing 'L'. I believe the PEP authors overlooked the trailing 'L' for hex() and oct(). I think the

Re: [Python-Dev] Should hex() yield 'L' suffix for long numbers?

2006-06-11 Thread Tim Peters
[Ka-Ping Yee] > I did this earlier: > > >>> hex(9) > '0x9184e729fffL' > > and found it a little jarring, because i feel there's been a general > trend toward getting rid of the 'L' suffix in Python. > > Literal long integers don't need an L anymore; they're automatically > made

[Python-Dev] Should hex() yield 'L' suffix for long numbers?

2006-06-11 Thread Ka-Ping Yee
I did this earlier: >>> hex(9) '0x9184e729fffL' and found it a little jarring, because i feel there's been a general trend toward getting rid of the 'L' suffix in Python. Literal long integers don't need an L anymore; they're automatically made into longs if the number is too