Boost.Python __init__() should return None, not 'NoneType'
问题 I have a whole bunch of working C++ code that I want to write Python bindings for. I'm trying to use Boost.Python since it seems to be the easiest way to get this working, but it isn't cooperating. Here's part of the code for the extension module I'm trying to build: BOOST_PYTHON_MODULE(libpcap_ext) { using namespace boost::python; class_<PacketEngine>("PacketEngine") .def("getAvailableDevices", &PacketEngine_getAvailableDevices); } Bjam seems to be a pain and refuses to recognize my