[C++-sig] how to avoid documenting private methods

2010-03-19 Thread Gennadiy Rozental
I've got exported class A and I'd like to avoid reporting private methods when users type help (mymodule.A). Is there anything like __all__ for modules? naming these methods starting with _ does not help either. Please advise, Gennadiy ___ Cplusplus-si

Re: [C++-sig] boost.pyton scope bug?

2010-03-19 Thread Gennadiy Rozental
Jim Bosch gmail.com> writes: > > On Fri, 2010-03-19 at 19:55 +, Gennadiy Rozental wrote: > > I am doing something like this in export part of mymodule: > > > > scope S = class_("X", no_init ); > > > > class_( "Y",... ) > > ... > > ; > > > > In Python I do see mymodule.X.Y, but mymodule.X.

Re: [C++-sig] boost.pyton scope bug?

2010-03-19 Thread Jim Bosch
On Fri, 2010-03-19 at 19:55 +, Gennadiy Rozental wrote: > I am doing something like this in export part of mymodule: > > scope S = class_("X", no_init ); > > class_( "Y",... ) > ... > ; > > In Python I do see mymodule.X.Y, but mymodule.X.Y.__name__ is 'mymodule.Y' > Hmm. In the same situa

[C++-sig] boost.pyton scope bug?

2010-03-19 Thread Gennadiy Rozental
I am doing something like this in export part of mymodule: scope S = class_("X", no_init ); class_( "Y",... ) ... ; In Python I do see mymodule.X.Y, but mymodule.X.Y.__name__ is 'mymodule.Y' Gennadiy ___ Cplusplus-sig mailing list Cplusplus-sig@pytho

[C++-sig] docstring for property?

2010-03-19 Thread Gennadiy Rozental
How do I provide doc string to the property like this: ... .add_property( "goo", make_function(...) ) While we are at it, how do I provide docstring and arg names to the operators: ... .def( self < self ) Gennadiy ___ Cplusplus-sig mailing lis

[C++-sig] Py++ module for code with protected operator=

2010-03-19 Thread Maciej Sitarz
Hi all, I want to create python module for class that has protected operator=. That class placed in std::vector and code generated by Py++ uses that operator. Simple example... * The c++ code: #include class JobPropertyWrapper { protected: JobPropertyWrapper& ope