[NumPy-Tickets] [NumPy] #1471: Access to private attributes of Py_* objects without using the official C-API
NumPy Trac
numpy-tickets@scipy....
Thu Jan 26 08:11:06 CST 2012
#1471: Access to private attributes of Py_* objects without using the official
C-API
------------------------+---------------------------------------------------
Reporter: stefan | Owner: somebody
Type: defect | Status: new
Priority: normal | Milestone: 2.0.0
Component: numpy.core | Version: devel
Keywords: |
------------------------+---------------------------------------------------
Comment(by skrah):
With the new PEP-393 PyUnicodeObject this also affects python-3.3:
http://hg.python.org/cpython/file/93075fb1360a/Include/unicodeobject.h
{{{
In file included from
numpy/core/src/multiarray/multiarraymodule_onefile.c:11:
numpy/core/src/multiarray/scalarapi.c: In function 'PyArray_Scalar':
numpy/core/src/multiarray/scalarapi.c:710: error: 'PyUnicodeObject' has no
member named 'str'
numpy/core/src/multiarray/scalarapi.c:716: error: 'PyUnicodeObject' has no
member named 'str'
numpy/core/src/multiarray/scalarapi.c:717: error: 'PyUnicodeObject' has no
member named 'str'
numpy/core/src/multiarray/scalarapi.c:718: error: 'PyUnicodeObject' has no
member named 'str'
numpy/core/src/multiarray/scalarapi.c:719: error: 'PyUnicodeObject' has no
member named 'length'
numpy/core/src/multiarray/scalarapi.c:720: error: 'PyUnicodeObject' has no
member named 'hash'
numpy/core/src/multiarray/scalarapi.c:721: error: 'PyUnicodeObject' has no
member named 'defenc'
}}}
--
Ticket URL: <http://projects.scipy.org/numpy/ticket/1471#comment:13>
NumPy <http://projects.scipy.org/numpy>
My example project
More information about the NumPy-Tickets
mailing list