implicit variable declaration and access

Cameron Laird claird at lairds.us
Mon Jun 13 21:08:03 EDT 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?
>> 
>> tom
>> 
>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:
http://blog.ianbicking.org/python-metaprogramming-and-macros.html?version=1 >
is only one of several useful write-ups on the subject.



More information about the Python-list mailing list