Boost logo

Boost :

Subject: [boost] [python] Checking Python version
From: Edward Diener (eldiener_at_[hidden])
Date: 2018-10-18 16:07:31


How do I check the Python major version in code when using Boost.Python
? I know there is a way to do it through a preprocessor define by
including the CPathon patchlevel.h file but I would rather not include
low-level Python files if Boost.Python has some way of doing it.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk