[Python-Dev] Near Final PEP 237 - Unifying Long Integers and Integers
Guido van Rossum
guido@python.org
Fri, 24 Aug 2001 05:08:48 -0400
> Since "integers" can now have arbitrary precision and can represent
> large unsigned values, can you add three new format characters to
> PyArg_ParseTuple() and Py_BuildValue() for the C datatypes "unsigned int",
> "unsigned long", and "unsigned long long"?
>
> The "u" and "l" namespace is a little crowded (and I don't think you
> would want to break that). However, here's one idea:
>
> 'I' - unsigned int (consistent with H and B)
> 'p' - unsigned long ('p' is for positive)
> 'P' - unsigned long long
Good idea. I've added this to the SF bug tracker as a feature
request. Hopefully someone will submit a patch too!
--Guido van Rossum (home page: http://www.python.org/~guido/)