proposed language change to int/int==float (was: PEP0238 lament)
Guido van Rossum
guido at python.org
Fri Jul 27 09:53:25 EDT 2001
Robin Becker <robin at jessikat.fsnet.co.uk> writes:
> well I have at least one extension that requires 32 bit unsigned as
> inputs. Under existing python I can manipulate myself around bit 31
> problems with ease (using negative numbers or hex). It seems it
> will/might be a bit more complicated if this pep goes through. I'm sure
> there are others who have explicit int size requirements. Effectively
> removing ints takes away ease of external communication in at least some
> cases.
This is easily solved by taking the result modulo 2**32. Python
extensions with unsigned 32-bit inputs or outputs generally Python
longs.
--Guido van Rossum (home page: http://www.python.org/~guido/)
More information about the Python-list
mailing list