Yeah, I'm not sure if I'm explaining myself well or maybe I'm just trying to
make the code too interactive.
in my code I would type something like:
x=zeros((3,3))
so the pointer called "x" is created by the programmer, but within the code.
What if I wanted to prompt my keyboard user to type in a word, like "Chris" and
then the program would create:
Chris=zeros((3,3))
Whatever code could make this happen I could loop through it several times,
create various array names, and when the operator was done, they would have
several arrays created with names of their choosing. When I'm in ipython mode,
I would have to type Chris=zeros((3,3)), then Bob=zeros((3,3)) and then
Kent=zero((3,3)), three separate statements (and gosh what if I wanted more
than just these three?). I want my user to create names for their pointers
instead of it already being in the code.
> I'm not sure you have really thought this through. The user typed
> "Chris", and that value is stored in 'name'. It might just as well
> have been "Bob" or "Kent". So you can't really say
> print Chris
> you need something like
> print the_thing_called(name)
> which you might as well spell as
> print values[name]
>
> Kent
_________________________________________________________________
Windows Live™ SkyDrive™: Get 25 GB of free online storage.
http://windowslive.com/online/skydrive?ocid=TXT_TAGLM_WL_SD_25GB_062009
_______________________________________________
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor