◐ Shell
clean mode source ↗

gh-100086: Add build details to sys.version by vstinner · Pull Request #100087 · python/cpython

@vstinner

Add more build details about how Python was configured in
sys.version, like "debug" or "release" build.

Build details and related configure option:

* "debug": --with-pydebug, "release" otherwise
* "+assert": --with-assertions
* "+tracerefs": --with-trace-refs
* "+pystats": --enable-pystats
* "asan": --with-address-sanitizer
* "msan": --with-memory-sanitizer
* "ubsan": --with-undefined-behavior-sanitizer
* "lto+pgo": --with-lto --enable-optimizations
* "framework": --enable-framework
* "shared": --enable-shared