Little Q: how to print a variable's name, not its value?

Bengt Richter bokr at oz.net
Fri Apr 1 02:03:55 EST 2005


On 31 Mar 2005 20:54:42 -0800, "stewart.midwinter at gmail.com" <stewart.midwinter at gmail.com> wrote:

>Bengt wrote:
>"The way you use those words makes me wonder: "assign _it_"?? Which
>'it'? "
>
>- it's probably evident to any close observer that my understanding of
>objects is superficial, no doubt a reflection of the fact that I
>started programming on punch cards a very long time ago.  I use objects
>every day, but I clearly need to do some further study in order to
>develop my knowledge. 
>
>Thanks for your explanations.!
>
You're welcome. But I started programming with flexowriter punched
paper tape before I got to punch cards, so either the prognosis is hopeful or
maybe you should take what I write with a grain or two of salt. Probably both ;-)

Regards,
Bengt Richter



More information about the Python-list mailing list