• Wenzel Jakob's avatar
    extra python version sanity check at import time · 4c00fd9e
    Wenzel Jakob authored
    Python 3.5 can often import pybind11 modules compiled compiled for
    Python 3.4 (i.e. all symbols can be resolved), but this leads to crashes
    later on due to changes in various Python-internal data structures. This
    commit adds an extra sanity check to prevent a successful import when
    the Python versions don't match.
    4c00fd9e
common.h 21.5 KB