mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
[3.14] gh-133583: Add support for fixed size unsigned integers in argument parsing (GH-133584) (GH-133650)
* Add Argument Clinic converters: uint8, uint16, uint32, uint64.
* Add private C API: _PyLong_UInt8_Converter(),
_PyLong_UInt16_Converter(), _PyLong_UInt32_Converter(),
_PyLong_UInt64_Converter().
(cherry picked from commit 4c914e7a36
)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
This commit is contained in:
parent
a020336256
commit
0f7046b187
7 changed files with 87 additions and 93 deletions
|
@ -1760,6 +1760,10 @@ UNSIGNED_INT_CONVERTER(UnsignedInt, unsigned int)
|
|||
UNSIGNED_INT_CONVERTER(UnsignedLong, unsigned long)
|
||||
UNSIGNED_INT_CONVERTER(UnsignedLongLong, unsigned long long)
|
||||
UNSIGNED_INT_CONVERTER(Size_t, size_t)
|
||||
UNSIGNED_INT_CONVERTER(UInt8, uint8_t)
|
||||
UNSIGNED_INT_CONVERTER(UInt16, uint16_t)
|
||||
UNSIGNED_INT_CONVERTER(UInt32, uint32_t)
|
||||
UNSIGNED_INT_CONVERTER(UInt64, uint64_t)
|
||||
|
||||
|
||||
#define CHECK_BINOP(v,w) \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue