[Python-3000] Pronouncement on parameter lists

Manuzhai mail at manuzhai.nl
Sat Apr 22 12:09:40 CEST 2006


> I already have a rough draft PEP and implementation for a
> __signature__ object from a couple of months ago (sparked my thinking
> on __introspects__).  I will go ahead and start another email thread
> with the PEP so that details can get hashed out on that separately.

I was wondering if maybe there could be a dict-like thing for the 
keyword arguments that also supports __setitem__. I'm not sure whether 
functions/methods currently count as immutable, but it would be nice if 
there would be a kind of partial() equivalent to deal with setting 
default arguments on functions (so you can have one function and spawn 
several functions off of that have other defaults).

OTOH, I can't really come up with use cases (but that might be because 
I'm not too bright today), so this might be a case of YAGNI, but I think 
it would be a nice parallel to the partial() functionality.

Regards,

Manuzhai



More information about the Python-3000 mailing list