[Tutor] introspection
Ben Finney
ben+python at benfinney.id.au
Mon Apr 20 22:24:22 CEST 2015
Alex Kleider <akleider at sonic.net> writes:
> Does python provide the introspective ability to retrieve the name to
> which an object is bound?
Objects aren't bound to names. So, no.
The binding from a reference (a name is a reference) to objects is
one-way.
See this excellent presentation from PyCon US 2015 by Ned Batchelder
<URL:https://www.youtube.com/watch?v=_AEJHKGk9ns>.
--
\ “I must say that I find television very educational. The minute |
`\ somebody turns it on, I go to the library and read a book.” |
_o__) —Groucho Marx |
Ben Finney
More information about the Tutor
mailing list