![]() |
Boost : |
From: Tom Kacvinsky (tkacvins_at_[hidden])
Date: 2025-03-17 01:48:16
While working on a project to upgrade an embedded Python interpreter (to
Python 3.12), which uses boost::python, I noticed the structs from the
Python
C API now have more members and those extra struct members were not
populated in the boost::python code. In particular I was bit by the enum
module
crashing our application startup.
I noticed this with boost 1.78, but I found the same problematic code in the
release that was current as of two months ago (1.87.0, I think).
I got things to compile and run, but my approach was to just make the code
Python 3.12 compliant. I can prepare a patch that has the appropriate
macro guards for populating the structs as they relate to different Python
versions.
I'll read the boost developers guide and follow the necessary steps to
submit
a fix.
Regards,
Tom
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk