implicit variable declaration and access
claird at lairds.us
Tue Jun 14 03:08:03 CEST 2005
In article <d8l2lh$isj$1 at rumours.uwaterloo.ca>,
Ali Razavi <arazavi at swen.uwaterloo.ca> wrote:
>Tom Anderson wrote:
>> On Mon, 13 Jun 2005, Ali Razavi wrote:
>>> Is there any reflective facility in python that I can use to define a
>>> variable with a name stored in another variable ?
>> Are you absolutely sure you want to do this?
>Have you ever heard of meta programming ?
>I guess if you had, it wouldn't seem this odd to you.
Mr. Razavi, Python has explicit idioms for metaprogramming that
most experienced Pythoneers favor over name-reflection. <URL:
is only one of several useful write-ups on the subject.
More information about the Python-list