On 3/6/07, Greg Ewing <greg.ewing at canterbury.ac.nz> 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
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4