A tuple in order to pass returned values ?
faucheuse
faucheuses at gmail.com
Wed Oct 5 09:33:51 EDT 2011
Hi, (new to python and first message here \o/)
I was wondering something :
when you do : return value1, value2, value3
It returns a tuple.
So if I want to pass these value to a function, the function have to
look like :
def function(self,(value1, value2, value3)) #self because i'm working
with classes
I tried it, and it works perfectly, but I was wondering if it's a good
choice to do so, if there is a problem by coding like that.
So my question is : Is there a problem doig so ?
More information about the Python-list
mailing list