[Numpy-discussion] numpy.int32, type inheritance and tp_flags
Charles R Harris
charlesr.harris at gmail.com
Tue Jun 2 02:11:00 EDT 2009
On Mon, Jun 1, 2009 at 11:08 PM, David Cournapeau <
david at ar.media.kyoto-u.ac.jp> wrote:
> Hi,
>
> I have a question related to #1121
> (http://projects.scipy.org/numpy/ticket/1121). With python 2.6,
> PyInt_Check(a) if a is an instance of numpy.int32 does not work anymore.
> It think this is related to the python issue 2263
> (http://bugs.python.org/issue2263), where the tp_flags has been changed
> for the python int object, change which influences PyInt_Check behavior.
>
It would be nice if the python folks would document Py_TPFLAGS_INT_SUBCLASS
so we knew what it did. I also wonder if the problem with struct and the
related bug with timeseries aren't python bugs. Shouldn't python be checking
for conversion calls rather than an integer subclass?
Chuck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20090602/d8fcee94/attachment.html>
More information about the NumPy-Discussion
mailing list