> 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

_______________________________________________
Python-3000 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to