<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<div class="moz-text-flowed"
 style="font-family: -moz-fixed; font-size: 14px;" lang="x-western">I'm
not sure this is possible, but it sure would help me if I could do it. <br>
<br>
Can a function learn the name of the variable that the caller used to
pass it a value? For example:
<br>
<br>
def test(x):
<br>
   print x
<br>
<br>
val = 100
<br>
test(val)
<br>
<br>
Is it possible for function "test()" to find out that the variable it
is passed, "x", was called "val" by the caller?
<br>
Some kind of stack inspection?<br>
<br>
Any help greatly appreciated,
<br>
-David<br>
</div>
<pre class="moz-signature" cols="72">-- 
Presenting:
mediocre nebula.
</pre>
</body>
</html>