Message263992
Seems you misunderstood PEP3123. The bugs described in the PEP are gone and can't be reappear. The new PyObject_HEAD fixes the problem, it makes casting to PyObject* be defined behaviour. The accessor macros are needed only to write the code compatible with 3.x and 2.x. Without Py_TYPE() you would need to use `foo->ob_base->ob_type` or `foo->ob_type` in 3.x depending on the type of foo, and always use `foo->ob_type` in 2.x. |
|
Date |
User |
Action |
Args |
2016-04-22 09:52:08 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, loewis, rhettinger, vstinner, ned.deily, martin.panter, xiang.zhang |
2016-04-22 09:52:08 | serhiy.storchaka | set | messageid: <1461318728.77.0.406522675202.issue26824@psf.upfronthosting.co.za> |
2016-04-22 09:52:08 | serhiy.storchaka | link | issue26824 messages |
2016-04-22 09:52:08 | serhiy.storchaka | create | |
|