On Fri, Jun 4, 2010 at 4:32 AM, macm <moura.ma...@gmail.com> wrote: > Hi Folks > > 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 > > ---------------------------------- > again : > IhaveOtherName = ('some','thing') > > myDef(IhaveOtherName) > > so what I am looking for in myDef > > result = IhaveOtherName > > ---------------------------------- > > Is it possible with python?
Not without very evil black-magic hackery. Explain /why/ you want this magic myDef() and someone will probably be able to suggest a better, alternative approach. Cheers, Chris -- http://blog.rebertia.com -- http://mail.python.org/mailman/listinfo/python-list