id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 1180,[boost.python] def_readwrite need a default docstring,qiaozhiqiang@…,troy d. straszheim,"the default docstring defined by def_readwrite is null, can boost.python add the type name of my_s::a as the default docstring? like the function's ""C++ signature"" docstring. {{{ #!cpp struct my_s { int a; }; void export_module { class_ s_class(""my_s"", init< >()); s_class.def_readwrite(""a"", &my_s::a);// __doc__ is empty, can boost.python add the type name of my_s::a as the default docstring? like the function's ""C++ signature"" docstring. } // I do this like this: // get type name of data member of class template char const* MemberTypeName(T C::*) { char const* name = typeid(T).name(); return name; } // boost::python def_readwrite no docstring // read write property #define DEF_READWRITE(n, p) \ def_readwrite((n), (p), std::string(""read write property, type is "") + MemberTypeName(p)).c_str()) void export_module { class_ s_class(""my_s"", init< >()); s_class.DEF_READWRITE(""a"", &my_s::a);// replace all auto genarated def_readwrite to DEF_READWRITE. } }}} ",Feature Requests,new,To Be Determined,python USE GITHUB,Boost 1.34.0,Problem,,def_readwrite docstring,rwgk@…