This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Add unsigneds to ParseTuple/BuildValue
Type: enhancement Stage:
Components: None Versions:
process
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: gvanrossum
Priority: normal Keywords:

Created on 2001-08-24 09:10 by gvanrossum, last changed 2022-04-10 16:04 by admin. This issue is now closed.

Messages (2)
msg53244 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2001-08-24 09:10
From: David Beazley <beazley@cs.uchicago.edu>

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
msg53245 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2002-06-10 21:18
Logged In: YES 
user_id=6380

Thank you.

I've moved this feature request to PEP 42, "Feature Requests".
History
Date User Action Args
2022-04-10 16:04:22adminsetgithub: 35040
2001-08-24 09:10:32gvanrossumcreate