boost::python support for python 3.4 enums
Hi all, Is anyone else interested in boost::python support for Python 3.4 style enums https://docs.python.org/3/library/enum.html? Python 3.4 enums have been backported to every Python version you could want, so I use them a lot in my Python code these days. I have many boost::python enum_ instances that have always been problematic due to the complete won't-fix brokenness of boost::python enum nesting (you can nest a boost::python enum in a class's scope, but the type() of the enum is ***WRONG*** because it somehow manages to forget its proper scope, which causes immense and unending pain when something needs to make a new enum_ instance in Python from code that I don't control). So, I am implementing a boost::python::intenum along the lines of boost::python::enum_, but with proper scope nesting provided that I can figure out how to do it. I'll be back with code soon. Best, Erik
participants (1)
-
Erik H