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

Ralf W. Grosse-Kunstleve rwgk at yahoo.com
Wed Jul 20 20:30:17 CEST 2005

--- Mike Rovner <mrovner at propel.com> wrote:
> Python has no nothion of multiple callable signatures (and method 
> resolution) so I regard it unpythonic.

Very often I wish Python would support overloads. The alternative *args,
**keyword_args approach is unreadable. It forces you to look at __doc__. In my
mind that's a sign of a poor design. One of the main advantages of modern
languages is that they formalize what you used to find in comments in older
code. E.g.:


Input -> const, Output -> members of struct, IERR -> exception, etc. Of course,
Python is a long way from this stone-age code. But I wish it could go even

All that said, I am not going to fight this battle. :)

> Having mutiple signatures in BPL 
> is an implementation detail, so probably __signature__ can make it into 
> pydoc with more ease.

That would be nice. I am just worried because the Python folks tend to be
really rough, at least compared to the folks I tend to meet in my home


Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 

More information about the Cplusplus-sig mailing list