0

Is it possible to define a function like get_name(x), such that:

>>> a = A()
>>> get_name(a)
'a'

In other words the function returns the variable-string that an object is assigned to?

0 Answers0