On 3/6/07, Greg Ewing <[EMAIL PROTECTED]> wrote:

> Although you can get a similar effect now by doing
>
>       def __init__(self, **kwds):
>          args = dict(prec=None, rounding=None,
>                    traps=None, flags=None,
>                    _rounding_decision=None,
>                    Emin=None, Emax=None,
>                    capitals=None, _clamp=0,
>                    _ignored_flags=None)
>          args.update(kwds)
>          for name, value in args:
>             ...
>
> So, no need for locals() here.

Yes, that is the obvious approach.  But it is painful to abandon the
introspectable signature.

There's nothing quite like running help(func) and getting *args,
**kwargs as the documented parameter list.

-Mike
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to