mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Issue #19730: Argument Clinic now supports all the existing PyArg
"format units" as legacy converters, as well as two new features: "self converters" and the "version" directive.
This commit is contained in:
parent
3a9079742f
commit
ebdcb50b8a
9 changed files with 468 additions and 157 deletions
|
@ -188,6 +188,13 @@ typedef Py_ssize_t Py_hash_t;
|
|||
#define SIZEOF_PY_UHASH_T SIZEOF_SIZE_T
|
||||
typedef size_t Py_uhash_t;
|
||||
|
||||
/* Only used for compatibility with code that may not be PY_SSIZE_T_CLEAN. */
|
||||
#ifdef PY_SSIZE_T_CLEAN
|
||||
typedef Py_ssize_t Py_ssize_clean_t;
|
||||
#else
|
||||
typedef int Py_ssize_clean_t;
|
||||
#endif
|
||||
|
||||
/* Largest possible value of size_t.
|
||||
SIZE_MAX is part of C99, so it might be defined on some
|
||||
platforms. If it is not defined, (size_t)-1 is a portable
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue