names of parameters as string
Steve Holden
steve at holdenweb.com
Sun Oct 31 09:54:18 EST 2004
Peter Otten wrote:
> Steve Holden wrote:
>
>
>>[No] guarantees to work on any specific implementation.
>
>
> What do you mean - the locals() analogue to
>
> globals()[name] = value
>
> or my exec workaround?
>
> def somefunc():
> value = as_you_like_it
> exec "%s = value" % name
>
> inquisitively, far from Spain
> Peter
>
The locals() analog.
regards
Steve
--
http://www.holdenweb.com
http://pydish.holdenweb.com
Holden Web LLC +1 800 494 3119
More information about the Python-list
mailing list