Negative long literals (was Re: Does Python need a '>>>' operator?)
Tim Peters
tim.one at comcast.net
Mon Jun 10 08:19:09 EDT 2002
More information about the Python-list mailing list
Mon Jun 10 08:19:09 EDT 2002
- Previous message (by thread): Does Python need a '>>>' operator?
- Next message (by thread): Does Python need a '>>>' operator?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
[Beni Cherniavksy] > I just got another idea: use 0x1234 for 0-filled numbers and 1xABCD for > 1-filled ones. That way you impose no restrictions on what follows the > prefix and keep backward compatibility. 0xFFFFFFFF stays a 2^n-1 > _positive_ number, as it should be. The look of 1x is weird at first but > it is very logical... Indeed, on both counts <wink>. I like it a lot! For the other points related to getting rid of machine long-size assumptions, see PEP 237: <http://www.python.org/peps/pep-0237.html>.
- Previous message (by thread): Does Python need a '>>>' operator?
- Next message (by thread): Does Python need a '>>>' operator?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list