[Python-Dev] Negative long literals (was Re: Does Python need a '>>>' operator?)
Mon, 10 Jun 2002 08:16:51 -0400
I think Beni has a very nice idea here, especially for people who can't
visualize 2's-complement (not mentioning Guido by name <wink>).
From: Beni Cherniavksy <firstname.lastname@example.org>
Sent: Monday, June 10, 2002 1:57 AM
Subject: Re: Does Python need a '>>>' operator?
... [quotes of old postings deleted] ...
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...
Beni Cherniavsky <email@example.com>