diff options
author | Pauli Virtanen <pav@iki.fi> | 2010-02-20 18:10:52 +0000 |
---|---|---|
committer | Pauli Virtanen <pav@iki.fi> | 2010-02-20 18:10:52 +0000 |
commit | c55d31b4ddbd06acc3ce0884443966cb49149879 (patch) | |
tree | 228ad2079067ef6d33411e9ae49943a214b88ab6 /doc | |
parent | bc9be5a4a33783a9a29bd9859ae138d69d2192a8 (diff) | |
download | numpy-c55d31b4ddbd06acc3ce0884443966cb49149879.tar.gz |
3K: doc: update porting documentation
Diffstat (limited to 'doc')
-rw-r--r-- | doc/Py3K.txt | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/doc/Py3K.txt b/doc/Py3K.txt index ccf9bb64f..8c228b4a7 100644 --- a/doc/Py3K.txt +++ b/doc/Py3K.txt @@ -45,7 +45,11 @@ Known semantic changes on Py2 As a side effect, the Py3 adaptation has caused the following semantic changes that are visible on Py2. -* There are no known semantic changes. +* Objects (non-string, non-unicode) that implement the PEP 3118 array interface + will behave as ndarrays in `array(...)` and `asarray(...)`; the same way + as if they had ``__array_interface__`` defined. + +* Otherwise, there are no known semantic changes. Known semantic changes on Py3 @@ -188,6 +192,24 @@ plain equivalents, and `IntType` was dropped. BufferType should probably be replaced with `memoryview` in most places. This was currently changed in a couple of places. +numpy.core.numerictypes +----------------------- + +In numerictypes, types on Python 3 were changed so that: + +=========== ============ +Scalar type Value +=========== ============ +str_ This is the basic Unicode string type on Py3 +bytes_ This is the basic Byte-string type on Py3 +string_ bytes_ alias +unicode_ str_ alias +=========== ============ + +.. todo:: + + Check if I missed something here. + C Code ====== |