return multiple objects

2009-02-05 Thread Vincent Davis
Is it correct that if I want to return multiple objects from a function I need to in some way combine them? def test1(): a = [1,3,5,7] b = [2,4,6,8] c=[a,b] return a, b # this does not work? return [a, b] # does not work? return c # this works but I don't like

Re: return multiple objects

2009-02-05 Thread Chris Rebert
On Thu, Feb 5, 2009 at 7:03 PM, Vincent Davis vinc...@vincentdavis.net wrote: Is it correct that if I want to return multiple objects from a function I need to in some way combine them? def test1(): a = [1,3,5,7] b = [2,4,6,8] c=[a,b] return a, b # this does not work

Re: return multiple objects

2009-02-05 Thread Rhodri James
On Fri, 06 Feb 2009 03:03:01 -, Vincent Davis vinc...@vincentdavis.net wrote: Is it correct that if I want to return multiple objects from a function I need to in some way combine them? def test1(): a = [1,3,5,7] b = [2,4,6,8] c=[a,b] return a, b # this does not work

Re: return multiple objects

2009-02-05 Thread Vincent Davis
That is what I was missing, Thanks Vincent Davis On Thu, Feb 5, 2009 at 8:37 PM, Rhodri James rho...@wildebst.demon.co.ukwrote: On Fri, 06 Feb 2009 03:03:01 -, Vincent Davis vinc...@vincentdavis.net wrote: Is it correct that if I want to return multiple objects from a function I