Re: How to detect what type a variable is?

2006-11-29 Thread SeanDavis12
Leandro Ardissone wrote: > Hi, > > I want to know what type is a variable. > For example, I get the contents of an xml but some content is a list or > a string, and I need to know what type it is. type(variable) Sean -- http://mail.python.org/mailman/listinfo/python-list

Re: Calling functions with dynamic arguments

2006-11-29 Thread SeanDavis12
Roberto Bonvallet wrote: > SeanDavis12 wrote: > > I have a dictionary like: > > > > {"a":1, "b":2} > > > > and I want to call a function: > > > > def func1(a=3,b=4): > >print a,b > > > > so that I get a=1,b=2,

Calling functions with dynamic arguments

2006-11-29 Thread SeanDavis12
I have a dictionary like: {"a":1, "b":2} and I want to call a function: def func1(a=3,b=4): print a,b so that I get a=1,b=2, how can I go about that? Thanks, Sean -- http://mail.python.org/mailman/listinfo/python-list