With or Using

Fredrik Lundh fredrik at pythonware.com
Tue May 1 05:20:17 EDT 2001


Roman Suzi wrote:
> Or, if subject allow it:
>
> def with(subject, **args):
>   subject.__dict__(args)         # or special method could be used

you mean subject.__dict__.update(args), right?

Cheers /F





More information about the Python-list mailing list