Joel Davis wrote:
I'm just curious if anyone knows of a way to get the variable name of
a reference passed to the function.
Put another way, in the example:

  def MyFunc ( varPassed ):
     print varPassed;

  MyFunc(nwVar)

how would I get the string "nwVar" from inside of "MyFunc"? is it
possible?
Would it be acceptable to require keyword arguments when calling the 
function?
>>> def test(**kwargs):
        print(kwargs)

>>> test(x=1)
{'x': 1}
>>>


--
MPH
http://blog.dcuktec.com
'If consumed, best digested with added seasoning to own preference.'
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to