[Python-Dev] Deprecation warning on integer shifts and such

Jack Jansen Jack.Jansen@cwi.nl
Mon, 12 Aug 2002 17:21:00 +0200


On Monday, August 12, 2002, at 08:37 , Oren Tirosh wrote:
> Proposal:
>
> A standard module implementing the types [u]int[8|16|32|64]. These types
> would behave just like C integers - wrap around on overflow, etc and 
> have
> a guaranteed size regardless of platform. They can even have methods for
> bit rotation.

This, plus some syntactic sugar so I could easily specify values of 
these types in my source code, would do the trick.
Preferrably in such a way that I can use the C code verbatim: at the 
moment I don't have to understand what the C code does, whether it uses 
other constants, strings, expressions, etc.
--
- Jack Jansen        <Jack.Jansen@oratrix.com>        
http://www.cwi.nl/~jack -
- If I can't dance I don't want to be part of your revolution -- Emma 
Goldman -