mirror of
https://github.com/python/cpython.git
synced 2025-08-01 15:43:13 +00:00
Add T_PYSSIZET in structmember.h: This can be used for
Py_ssize_t members. Simplify the implementation of UnicodeError objects: start and end attributes are now stored directly as Py_ssize_t members, which simplifies various get and set functions.
This commit is contained in:
parent
22000cbd6b
commit
84a3efec37
5 changed files with 120 additions and 168 deletions
|
@ -68,6 +68,7 @@ typedef struct PyMemberDef {
|
|||
#ifdef HAVE_LONG_LONG
|
||||
#define T_LONGLONG 17
|
||||
#define T_ULONGLONG 18
|
||||
#define T_PYSSIZET 19 /* Py_ssize_t */
|
||||
#endif /* HAVE_LONG_LONG */
|
||||
|
||||
/* Flags */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue