Message272919
> Also, putting a function call inside a macro is a worrisome practice in C.
I conccur with Raymond: it can be very painful if you get a segfault on such line. What is crashing? The function call? DECREF? INCREF? something else?
It's also more painful to debug such code in gdb step by step.
I dislike py_setref_extra.patch. I prefer more verbose C code, easy to debug. |
|
Date |
User |
Action |
Args |
2016-08-17 11:30:18 | vstinner | set | recipients:
+ vstinner, gvanrossum, rhettinger, belopolsky, skrah, python-dev, serhiy.storchaka |
2016-08-17 11:30:18 | vstinner | set | messageid: <1471433418.1.0.210774138923.issue26200@psf.upfronthosting.co.za> |
2016-08-17 11:30:18 | vstinner | link | issue26200 messages |
2016-08-17 11:30:17 | vstinner | create | |
|