[Numpy-svn] r8156 - trunk/doc

numpy-svn at scipy.org numpy-svn at scipy.org
Sat Feb 20 13:10:52 EST 2010


Author: ptvirtan
Date: 2010-02-20 12:10:52 -0600 (Sat, 20 Feb 2010)
New Revision: 8156

Modified:
   trunk/doc/Py3K.txt
Log:
3K: doc: update porting documentation

Modified: trunk/doc/Py3K.txt
===================================================================
--- trunk/doc/Py3K.txt	2010-02-20 18:10:35 UTC (rev 8155)
+++ trunk/doc/Py3K.txt	2010-02-20 18:10:52 UTC (rev 8156)
@@ -45,9 +45,13 @@
 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,7 +192,25 @@
    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
 ======
 




More information about the Numpy-svn mailing list