[Numpy-discussion] numpy.int32, type inheritance and tp_flags
Charles R Harris
Tue Jun 2 01:11:00 CDT 2009
On Mon, Jun 1, 2009 at 11:08 PM, David Cournapeau <
> 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?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Numpy-discussion