This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author amaury.forgeotdarc
Recipients LambertDW, amaury.forgeotdarc, barronh, belopolsky, grubert, mark.dickinson, serhiy.storchaka, teoliphant, terry.reedy
Date 2012-10-16.21:55:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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.

>>> 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:10amaury.forgeotdarcsetrecipients: + amaury.forgeotdarc, terry.reedy, teoliphant, mark.dickinson, belopolsky, grubert, LambertDW, barronh, serhiy.storchaka
2012-10-16 21:55:10amaury.forgeotdarcsetmessageid: <>
2012-10-16 21:55:10amaury.forgeotdarclinkissue5476 messages
2012-10-16 21:55:10amaury.forgeotdarccreate