Message319477
As to the docs, the entry for tp_alloc in Doc/c-api/typeobj.rst does not mention initialization. The tp_new entry does say that it should call tp_alloc and then do the minimum initialization possible. That implies (weakly) that tp_alloc should do the minimum initialization possible. Could you point me to the place where the docs talk about tp_alloc and initialization? That would be useful to see.
Regardless, having the tp_alloc entry explicitly say it shouldn't do any initialization does make sense. Feel free to open a separate issue on that. |
|
Date |
User |
Action |
Args |
2018-06-13 16:22:49 | eric.snow | set | recipients:
+ eric.snow, h.venev |
2018-06-13 16:22:49 | eric.snow | set | messageid: <1528906969.25.0.947875510639.issue23869@psf.upfronthosting.co.za> |
2018-06-13 16:22:49 | eric.snow | link | issue23869 messages |
2018-06-13 16:22:49 | eric.snow | create | |
|