id summary reporter owner description type status milestone component version severity resolution keywords cc 9687 introduce boost::python::raw_method phatina@… Ralf W. Grosse-Kunstleve "Hi, I am developing a Python's module using boost::python. I need to create a method for certain class, which takes {{{*args}}} and {{{**kwargs}}}. Boost::python is capable of creating a raw function/constructor, but lacks an API for creating a **raw method**. I attach a header, which introduces this option. Thank you for a feedback. Regards ---- Example: {{{ #!cpp namespace bp = boost::python; class ClassName { public: // ... static void init() { s_class = bp::class_(""ClassName"", /* ... */) .def(""RawMethodName"", bp::raw_method( &ClassName::MethodName, 2)); } bp::object RawMethodName( const bp::tuple &args, const bp::dict &kwargs) { // Do something with args, kwargs return bp::object(); } // ... private: static bp::object s_class; }; bp::object ClassName::s_class; }}}" Patches new To Be Determined python USE GITHUB Boost 1.54.0 Not Applicable