diff Include/pyerrors.h @ 42083:37189e375ec7 legacy-trunk

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.
author Walter Dörwald <walter@livinglogic.de>
date Wed, 13 Jun 2007 16:57:12 +0000
parents d01bd37bf5ce
children 3bc3f12cae28
line wrap: on
line diff
--- a/Include/pyerrors.h	Wed Jun 13 07:54:57 2007 +0000
+++ b/Include/pyerrors.h	Wed Jun 13 16:57:12 2007 +0000
@@ -34,8 +34,8 @@
     PyObject *message;
     PyObject *encoding;
     PyObject *object;
-    PyObject *start;
-    PyObject *end;
+    Py_ssize_t start;
+    Py_ssize_t end;
     PyObject *reason;
 } PyUnicodeErrorObject;
 #endif