How to get the name of a variable

Joshua Muskovitz josh at open.com
Fri Nov 3 22:01:47 CET 2000


What a great analogy!

-- josh

<fredrik at pythonware.com> wrote in message
news:8tudud$6l4$1 at nnrp1.deja.com...
> laskowsk at my-deja.com wrote:
> > How can i get the name of a python variable from c++ when
> > i have the PyObject* of it ??
>
> the same way as you get the name of that cat you found
> on your porch: the cat (object) itself cannot tell you
> its name, and it doesn't really care -- so the only way
> to find out what it's called is to ask all your neigh-
> bours (namespaces) if it's their cat (object)...
>
> ...and don't be surprised if you'll find that it's known
> by many names, or no name at all!
>
> </F>
>
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.




-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----==  Over 80,000 Newsgroups - 16 Different Servers! =-----



More information about the Python-list mailing list