summaryrefslogtreecommitdiff
path: root/COMPATIBILITY
diff options
context:
space:
mode:
Diffstat (limited to 'COMPATIBILITY')
-rw-r--r--COMPATIBILITY17
1 files changed, 11 insertions, 6 deletions
diff --git a/COMPATIBILITY b/COMPATIBILITY
index b9cc937d2..b9d46cfae 100644
--- a/COMPATIBILITY
+++ b/COMPATIBILITY
@@ -1,6 +1,7 @@
-X.flat returns an indexable 1-D iterator (mostly similar to an array but always 1-d)
+X.flat returns an indexable 1-D iterator (mostly similar to an array
+but always 1-d) --- only has .copy and .__array__ attributes of an array!!!
.typecode() --> .dtypechar
@@ -10,6 +11,8 @@ X.flat returns an indexable 1-D iterator (mostly similar to an array but always
.itemsize() -> .itemsize
+.toscalar() -> .item()
+
If you used typecode characters:
'c' -> 'S1'
@@ -22,11 +25,12 @@ If you used typecode characters:
C -level
-some API calls that used to take PyObject * now take PyArrayObject * (this should only cause warnings during compile and not actual problems).
+some API calls that used to take PyObject * now take PyArrayObject *
+(this should only cause warnings during compile and not actual problems).
PyArray_Take
These commands now return a buffer that must be freed once it is used
-using PyMemData_FREE(ptr) or PyMemData_XFREE(ptr);
+using PyMemData_FREE(ptr);
a->descr->zero --> PyArray_Zero(a)
a->descr->one --> PyArray_One(a)
@@ -36,7 +40,8 @@ Numeric/arrayobject.h --> numpy/arrayobject.h
# These will actually work and are defines for PyArray_BYTE,
# but you really should change it in your code
-PyArray_CHAR --> PyArray_BYTE (or PyArray_STRING which is more flexible)
+PyArray_CHAR --> PyArray_BYTE
+ (or PyArray_STRING which is more flexible)
PyArray_SBYTE --> PyArray_BYTE
Any uses of character codes will need adjusting....
@@ -44,8 +49,8 @@ use PyArray_XXXLTR where XXX is the name of the type.
If you used function pointers directly (why did you do that?),
-the arguments have changed. Everything that was an int is now an intp. Also,
-arrayobjects should be passed in at the end.
+the arguments have changed. Everything that was an int is now an intp.
+Also, arrayobjects should be passed in at the end.
a->descr->cast[i](fromdata, fromstep, todata, tostep, n)
a->descr->cast[i](fromdata, todata, n, PyArrayObject *in, PyArrayObject *out)