Re: vary number of loops

2008-04-16 Thread Marc 'BlackJack' Rintsch
On Wed, 16 Apr 2008 06:31:04 -0700, nullgraph wrote: I'm new to Python and the notion of lambda, and I'm trying to write a function that would have a varying number of nested for loops depending on parameter n. This just smells like a job for lambda for me, but I can't figure out how to do

Re: vary number of loops

2008-04-16 Thread Tim Chase
I'm new to Python and the notion of lambda, and I'm trying to write a function that would have a varying number of nested for loops depending on parameter n. This just smells like a job for lambda for me, but I can't figure out how to do it. Any hint? I'm not sure lambda is the tool to use

Re: vary number of loops

2008-04-16 Thread colas . francis
On 16 avr, 15:31, [EMAIL PROTECTED] wrote: Hi everyone, I'm new to Python and the notion of lambda, and I'm trying to write a function that would have a varying number of nested for loops depending on parameter n. This just smells like a job for lambda for me, but I can't figure out how to

RE: vary number of loops

2008-04-16 Thread Reedick, Andrew
-Original Message- From: [EMAIL PROTECTED] [mailto:python- [EMAIL PROTECTED] On Behalf Of Tim Chase Sent: Wednesday, April 16, 2008 9:53 AM To: [EMAIL PROTECTED] Cc: python-list@python.org Subject: Re: vary number of loops If n=3, I want to have 3 sets of elements and mix

Re: vary number of loops

2008-04-16 Thread Mensanator
On Apr 16, 8:31 am, [EMAIL PROTECTED] wrote: Hi everyone, I'm new to Python and the notion of lambda, and I'm trying to write a function that would have a varying number of nested for loops depending on parameter n. This just smells like a job for lambda for me, but I can't figure out how to

Re: vary number of loops

2008-04-16 Thread nullgraph
On Apr 16, 10:12 am, Reedick, Andrew [EMAIL PROTECTED] wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:python- [EMAIL PROTECTED] On Behalf Of Tim Chase Sent: Wednesday, April 16, 2008 9:53 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: vary number