diff options
author | Walter Dörwald <walter@livinglogic.de> | 2007-06-13 16:57:12 +0000 |
---|---|---|
committer | Walter Dörwald <walter@livinglogic.de> | 2007-06-13 16:57:12 +0000 |
commit | 4f84acffbbb72427e479c9bc2fb952a2531774fe (patch) | |
tree | 9c9692196cd602ef98ab56377c8a73ccd64e6cd4 /Include/pyerrors.h | |
parent | 52e49e78ba4ca5915063ef3c52d3ee865797c419 (diff) | |
download | cpython-4f84acffbbb72427e479c9bc2fb952a2531774fe.tar.gz |
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.
Diffstat (limited to 'Include/pyerrors.h')
-rw-r--r-- | Include/pyerrors.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Include/pyerrors.h b/Include/pyerrors.h index 96716926d0..ef7b2521d6 100644 --- a/Include/pyerrors.h +++ b/Include/pyerrors.h @@ -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 |