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 numberZero
Recipients WildCard65, erlendaasland, gregory.p.smith, numberZero, vstinner
Date 2021-02-19.22:28:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1613773716.12.0.45920446692.issue43181@roundup.psfhosted.org>
In-reply-to
Content
Thanks for the fix, it works for my use case. (btw that was
    #define U(...) __VA_ARGS__
and not what I wrote).

> I don't think that PR 24533 should be backported to Python 3.8 and Python 3.9. I prefer to avoid any risk of regression, and so only change Python 3.10.

> For Python 3.9 and older, a workaround is to wrap the call to PyObject_TypeCheck() with your own static inline function.

For Python 3.8 that fix wouldn’t be needed as the `tp` argument was parenthesised in the macro.

Yet... the first argument is still unshielded, passed to a macro that expects one single macro argument. That’s not a regression, it wasn’t shielded in 3.8 either, but why not just parenthesise each macro argument that denotes an expression (as opposed to e.g. name)?
History
Date User Action Args
2021-02-19 22:28:36numberZerosetrecipients: + numberZero, gregory.p.smith, vstinner, WildCard65, erlendaasland
2021-02-19 22:28:36numberZerosetmessageid: <1613773716.12.0.45920446692.issue43181@roundup.psfhosted.org>
2021-02-19 22:28:36numberZerolinkissue43181 messages
2021-02-19 22:28:36numberZerocreate