I would like to be able to get the name of a variable as a string but I don\'t know if Python has that much introspection capabilities. Something like:
>&
In python 3 this is easy
myVariable = 5 for v in locals(): if id(v) == id("myVariable"): print(v, locals()[v])
this will print:
myVariable 5