Victor Stinner
Victor Stinner
I created https://github.com/python/pythoncapi-compat/pull/50 to fix the two macros in the pythoncapi-compat project.
By the way, Python 3.12 contains an important change related to memory allocation of objects tracked by the GC: > The Garbage Collector now runs only on the eval breaker...
I guess that /std:c++17 is fine and maybe @zooba just picked the default when he created the new project.
> Basically, Argument Clinic generates files that aren't valid C++ prior to C++20, because it uses designated initializers. Oh wow, now I recall all issues that I had when I...
> Basically, Argument Clinic generates files that aren't valid C++ prior to C++20 See also https://github.com/python/cpython/pull/26080 and https://github.com/python/cpython/issues/85283 about modifying Argument Clinic to support the limited C API.
For the specific case of _wmimodule.cpp, it's a single function which uses Argument Clinic. This function has a single argument. Writing the code by hand to parse its only argument...
cc @gvanrossum @markshannon @brandtbucher @iritkatriel
FYI I started to work on a different Argument Clinic enhancement, issue bpo-29299: "Argument Clinic: Fix signature of optional positional-only arguments".
Once this feature will be implemented, print() should be modified to use Argument Clinic: see the issue bpo-29296.
@ambv: Would you mind to merge this security fix? It's already in other branches, including 3.7 ;-)