This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients belopolsky, gvanrossum, python-dev, rhettinger, serhiy.storchaka, skrah, vstinner
Date 2016-08-17.11:30:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1471433418.1.0.210774138923.issue26200@psf.upfronthosting.co.za>
In-reply-to
Content
> 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.
History
Date User Action Args
2016-08-17 11:30:18vstinnersetrecipients: + vstinner, gvanrossum, rhettinger, belopolsky, skrah, python-dev, serhiy.storchaka
2016-08-17 11:30:18vstinnersetmessageid: <1471433418.1.0.210774138923.issue26200@psf.upfronthosting.co.za>
2016-08-17 11:30:18vstinnerlinkissue26200 messages
2016-08-17 11:30:17vstinnercreate