Message173103
| 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 | <1350424510.13.0.241830095432.issue5476@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
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'> |
|
| History | |||
|---|---|---|---|
| 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 | |