A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2001-August/017259.html below:

[Python-Dev] Near Final PEP 237

[Python-Dev] Near Final PEP 237 - Unifying Long Integers and Integers [Python-Dev] Near Final PEP 237 - Unifying Long Integers and IntegersDavid Beazley beazley@cs.uchicago.edu
Thu, 23 Aug 2001 21:26:09 -0500 (CDT)
Guido van Rossum writes:
 > Please comment on a new version of PEP 237:
 > 
 > Please mail comments on the PEP to python-dev@python.org or to me.
 > 

The PEP looks good to me.   Can I make a very small C API feature 
request? (assuming this hasn't been implemented already).

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

Cheers,

Dave
  



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4