[python] pass the name of args

jyoung79 at kc.rr.com jyoung79 at kc.rr.com
Fri Jun 4 15:31:50 EDT 2010


Would vars() help?  Check out this link:

http://www.daniweb.com/forums/thread134555.html

Jay

--

> def myDef(x)
> 	doSomething x
> 	result = x.????
> 	return coolThings
> ---------------------------------
> 
> WhatYourName = ('python','is','cool')
> 
> myDef(WhatYourName)
> 
> so what I am looking for in myDef
> 
> 	result = WhatYourName



More information about the Python-list mailing list