[3.15] gh-140550: Fix PyABIInfo_VAR macro: avoid ";" - #157494
Conversation
Remove ";" from PyABIInfo_VAR macro definition, since "PyABIInfo_VAR(abi_info);" added two ";;" which is illegal in C++03.
|
@encukou: I found this bug while enabling limited C API tests on Free Threading in test_cppext for PR gh-157493. IMO we should fix this issue in Python 3.15.0. Otherwise, developers may start writing extensions as I checked the documentation: |
|
I agree. Thanks for the catch! It's @hugovk's call though. For context: IMO, for C-wielding early adopters, a NEWS entry is enough. |
|
Yes, let's have this fixed for 3.15.0, please add the NEWS entry. Should this go into |
I added a NEWS entry.
I extracted the |
IMO it should, to keep the change & (If you think keeping this in the bigger change is better I won't object, but then add the NEWS entry there.) |
|
Thanks both, both merged! |
Remove ";" from PyABIInfo_VAR macro definition, since "PyABIInfo_VAR(abi_info);" added two ";;" which is illegal in C++03.