Getting actual name of passed arg

Ross Brattain netmgr at canterburycrest.org
Thu Jun 21 19:36:47 EDT 2001


Emile van Sebille wrote:

> 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)
> 


Clever, and useful.  I never would have thought of that.  Thanks.

Ross Brattain
netmgr at canterburycrest.org





More information about the Python-list mailing list