Class introspection and dynamically determining function arguments

Alex Martelli aleaxit at yahoo.com
Sat Jan 22 06:30:36 EST 2005


Diez B. Roggisch <deetsNOSPAM at web.de> wrote:

> Nick Coghlan wrote:
> > 
> > If this only has to work for classes created for the purpose (rather than
> > for an arbitrary class):
> 
> Certainly a step into the direction I meant - but still missing type
> declarations. And that's what at least I'd like to see - as otherwise you
> don't know what kind of editing widget to use for a property.

Though it may be overkill for your needs, you'll be interested in
Enthought's "Traits", I think; see, for example,
<http://python.fyxm.net/pycon/papers/traits.html>.  Facilitating such
presentation tasks (no doubt including editing) appears to be a major
driving force for Traits.


Alex



More information about the Python-list mailing list