[Python-Dev] Negative long literals (was Re: Does Python need a '>>>' operator?)

Tim Peters tim.one@comcast.net
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>).

-----Original Message-----
From: Beni Cherniavksy <cben@tx.technion.ac.il>
Sent: Monday, June 10, 2002 1:57 AM
To: python-list@python.org
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 <cben@tx.technion.ac.il>

--
http://mail.python.org/mailman/listinfo/python-list