[C++-sig] Boost.Python.function.__signatures__

Nikolay Mladenov nickm at sitius.com
Fri Jul 22 18:22:31 CEST 2005



"Ralf W. Grosse-Kunstleve" wrote:
> 
> --- Nikolay Mladenov <nickm at sitius.com> wrote:
> > > Are you appending or prepending? Can this be customized? (Not that I think
> > > customization is very important; I am just wondering.)
> >
> > I am appending the docstring after the signature, but it is a bit more
> > complicated than that.
> > It involves sorting the overloads based on the default arguments.
> 
> Sometimes the order determines which overload is actually used. If you present
> a different order it may be very difficult to figure out why things don't work
> as expected. I'd stick to the given order.

Don't you think relying on the order of overloads is a problem by
itself?

I do the sorting so I can write:
func( arg1 [, arg2 [, arg3[ ...]]]])
instead of n lines with one arg difference.
And I do not reorder the overloads.

Nikolay



More information about the Cplusplus-sig mailing list