Message173103
From the macro posted earlier:
Py##child##ArrType_Type.tp_base = &Py##parent2##ArrType_Type;
tp_base is *not* PyInt_Type, so I was wrong when I said that the dominant base was int.
This is wrong IMO: tp_base should be int, for the type to be correctly initialized.
Compare:
>>> from numpy import *
>>> print int_.__bases__, int_.__base__
(<type 'numpy.signedinteger'>, <type 'int'>) <type 'numpy.signedinteger'>
>>> class C(signedinteger, int):
... pass
...
>>> print C.__bases__, C.__base__
(<type 'numpy.signedinteger'>, <type 'int'>) <type 'int'> |
|
Date |
User |
Action |
Args |
2012-10-16 21:55:10 | amaury.forgeotdarc | set | recipients:
+ amaury.forgeotdarc, terry.reedy, teoliphant, mark.dickinson, belopolsky, grubert, LambertDW, barronh, serhiy.storchaka |
2012-10-16 21:55:10 | amaury.forgeotdarc | set | messageid: <1350424510.13.0.241830095432.issue5476@psf.upfronthosting.co.za> |
2012-10-16 21:55:10 | amaury.forgeotdarc | link | issue5476 messages |
2012-10-16 21:55:10 | amaury.forgeotdarc | create | |
|