PEP 312 (and thus 308) implemented with a black magic trick

Jack Diederich jack at performancedrivers.com
Tue Mar 18 01:21:05 CET 2003


On Mon, Mar 17, 2003 at 04:03:33PM -0800, Erik Max Francis wrote:
> 
> Furthermore, if you change the meaning of ~, what operator now becomes
> used to represent bitwise negation?

I've expressed elsewhere, moving bitwise operators to a 'bit' module would
be pythonic IMO.  The number of times you have to do bitwise operation in
python it tiny; bitwise operations are low level operations.

That said, it is unlikely to be changed because moving them would be more
of a pain that keeping them as-is.

-jackdied





More information about the Python-list mailing list