Boost logo

Boost :

Subject: [boost] boost::python support for python 3.4 enums
From: Erik H (ice.rikh_at_[hidden])
Date: 2014-06-03 13:36:11

Hi all,

Is anyone else interested in boost::python support for Python 3.4 style
enums <>? 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.


Boost list run by bdawes at, gregod at, cpdaniel at, john at