[Python-3000] PyBuffer ndim unsigned
Gregory P. Smith
greg at krypto.org
Sun Aug 26 02:54:13 CEST 2007
Anyone mind if I do this?
--- Include/object.h (revision 57412)
+++ Include/object.h (working copy)
@@ -148,7 +148,7 @@
Py_ssize_t itemsize; /* This is Py_ssize_t so it can be
pointed to by strides in simple case.*/
int readonly;
- int ndim;
+ unsigned int ndim;
char *format;
Py_ssize_t *shape;
Py_ssize_t *strides;
PEP 3118 and all reality as I know it says ndim must be >= 0 so it
makes sense to me.
More information about the Python-3000
mailing list