mirror of
https://github.com/python/cpython.git
synced 2025-11-08 09:32:01 +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
|
|
@ -34,8 +34,8 @@ typedef struct {
|
|||
PyObject *message;
|
||||
PyObject *encoding;
|
||||
PyObject *object;
|
||||
PyObject *start;
|
||||
PyObject *end;
|
||||
Py_ssize_t start;
|
||||
Py_ssize_t end;
|
||||
PyObject *reason;
|
||||
} PyUnicodeErrorObject;
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue