Message402527
| Author |
haberman2 |
| Recipients |
Alexander.Belopolsky, Arfrever, Christian.Tismer, Robin.Schreiber, amaury.forgeotdarc, belopolsky, haberman2, jcea, jhaberman, lekma, loewis, mattip, petr.viktorin, pitrou, seberg, steve.dower |
| Date |
2021年09月23日.21:26:50 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1632432410.82.0.384900504153.issue15870@roundup.psfhosted.org> |
| In-reply-to |
| Content |
> It's better to pass the metaclass as a function argument, as with bases. I'd prefer adding a new function that using a slot.
Bases are available both as a slot (Py_tp_bases) and as an argument (PyType_FromSpecWithBases). I don't see why this has to be an either/or proposition. Both can be useful.
Either would satisfy my use case. I'm constructing N such classes, so the spec won't be statically initialized anyway and the initialization issues on Windows don't apply. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2021年09月23日 21:26:50 | haberman2 | set | recipients:
+ haberman2, loewis, jcea, amaury.forgeotdarc, belopolsky, pitrou, Arfrever, petr.viktorin, lekma, Alexander.Belopolsky, mattip, Robin.Schreiber, steve.dower, seberg, Christian.Tismer, jhaberman |
| 2021年09月23日 21:26:50 | haberman2 | set | messageid: <1632432410.82.0.384900504153.issue15870@roundup.psfhosted.org> |
| 2021年09月23日 21:26:50 | haberman2 | link | issue15870 messages |
| 2021年09月23日 21:26:50 | haberman2 | create |
|