Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add unsigneds to ParseTuple/BuildValue #35040

Closed
gvanrossum opened this issue Aug 24, 2001 · 2 comments
Closed

Add unsigneds to ParseTuple/BuildValue #35040

gvanrossum opened this issue Aug 24, 2001 · 2 comments
Labels
type-feature A feature request or enhancement

Comments

@gvanrossum
Copy link
Member

BPO 454896
Nosy @gvanrossum

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2002-06-10.21:18:14.000>
created_at = <Date 2001-08-24.09:10:32.000>
labels = ['type-feature']
title = 'Add unsigneds to ParseTuple/BuildValue'
updated_at = <Date 2002-06-10.21:18:14.000>
user = 'https://github.com/gvanrossum'

bugs.python.org fields:

activity = <Date 2002-06-10.21:18:14.000>
actor = 'gvanrossum'
assignee = 'none'
closed = True
closed_date = None
closer = None
components = ['None']
creation = <Date 2001-08-24.09:10:32.000>
creator = 'gvanrossum'
dependencies = []
files = []
hgrepos = []
issue_num = 454896
keywords = []
message_count = 2.0
messages = ['53244', '53245']
nosy_count = 1.0
nosy_names = ['gvanrossum']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'closed'
superseder = None
type = 'enhancement'
url = 'https://bugs.python.org/issue454896'
versions = []

@gvanrossum
Copy link
Member Author

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

@gvanrossum gvanrossum added the type-feature A feature request or enhancement label Aug 24, 2001
@gvanrossum gvanrossum added the type-feature A feature request or enhancement label Aug 24, 2001
@gvanrossum
Copy link
Member Author

Logged In: YES
user_id=6380

Thank you.

I've moved this feature request to PEP-42, "Feature Requests".

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-feature A feature request or enhancement
Projects
None yet
Development

No branches or pull requests

1 participant