On Jul 1, 12:45 am, Mensanator <[EMAIL PROTECTED]> wrote:
> Here's an example.
> ...
> def partition_generator(depth,width):
> """creates all partions of a given depth,widtth (depth>=width)
> depth objects in width bins such that each bin has at least 1 object
> this function is a generator (
On Sun, 6 Jul 2008 00:29:26 -0700, Mark Tolonen <[EMAIL PROTECTED]> wrote:
>
> "inhahe" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
...
>> note that this won't work;
>> def f():
>> for x in xrange(10):
>>for y in xrange(10):
>> yield (x,y)
>>
>> yield just doesn't work
"inhahe" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
"Alex Bryan" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Okay, so i don't really understand the Yield thing and i know it is
useful. I've read a few things about it but it is all programming jargon
and so
"Alex Bryan" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Okay, so i don't really understand the Yield thing and i know it is
> useful. I've read a few things about it but it is all programming jargon
> and so basically it is hard for me to understand. So can anyone give me a
On Jul 1, 8:31 am, Alex Bryan <[EMAIL PROTECTED]> wrote:
> Okay, so i don't really understand the Yield thing and i know it is
> useful. I've read a few things about it but it is all programming
> jargon and so basically it is hard for me to understand. So can anyone
> give me a description or link
On Jun 30, 5:31 pm, Alex Bryan <[EMAIL PROTECTED]> wrote:
> Okay, so i don't really understand the Yield thing and i know it is
> useful. I've read a few things about it but it is all programming
> jargon and so basically it is hard for me to understand. So can anyone
> give me a description
Alex Bryan wrote:
Okay, so i don't really understand the Yield thing and i know it is
useful. I've read a few things about it but it is all programming jargon
and so basically it is hard for me to understand. So can anyone give me
a description or link me to a site that has a good definition an
Okay, so i don't really understand the Yield thing and i know it is
useful. I've read a few things about it but it is all programming
jargon and so basically it is hard for me to understand. So can anyone
give me a description or link me to a site that has a good definition
and/or examples