Getting actual name of passed arg

Emile van Sebille emile at fenx.com
Fri Jun 22 01:01:44 CEST 2001


You could also perhaps start with:

def debug(**kwargs):
    print kwargs

a,b,c = ('test',123, [1,2,3])

debug (a=a,b=b,c=c)

HTH,

--

Emile van Sebille
emile at fenx.com

---------
"Ross Brattain" <netmgr at canterburycrest.org> wrote in message
news:3B327B1D.9020107 at canterburycrest.org...
> Nope not quite.  traceback.print_stack() doesn't quit work either.
>
> I will settle for this for now
>
> def debug(a):
> print a
> eval(a)
>
>
> Ross Brattain
> netmgr at canterburycrest.org
>





More information about the Python-list mailing list