On Apr 2, 11:04 pm, "Gabriel Genellina" <[EMAIL PROTECTED]>
wrote:
> En Wed, 02 Apr 2008 14:11:30 -0300, <[EMAIL PROTECTED]> escribió:
>
> > On Apr 1, 10:42 pm, "Gabriel Genellina" <[EMAIL PROTECTED]>
> > wrote:
> >> En Tue, 01 Apr 2008 23:56:50 -0300, <[EMAIL PROTECTED]> escribió:
>
> >> yield
On Wed, 02 Apr 2008 19:04:30 -0300, Gabriel Genellina wrote:
> En Wed, 02 Apr 2008 14:11:30 -0300, <[EMAIL PROTECTED]> escribió:
>
>> On Apr 1, 10:42 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote:
>>> En Tue, 01 Apr 2008 23:56:50 -0300, <[EMAIL PROTECTED]>
>>> escribió:
>>>
>>> yield *iter
[EMAIL PROTECTED] wrote:
> On Apr 2, 3:57 pm, Mel <[EMAIL PROTECTED]> wrote:
>> [EMAIL PROTECTED] wrote:
>>
>> I'd just like to test my
>>
>>> understanding of this. Suppose I create the following generator
>>> object:
>>> g = getNextScalar(1, 2, (3, 4), 5)
>>> when the iterator reaches the tuple a
En Wed, 02 Apr 2008 14:11:30 -0300, <[EMAIL PROTECTED]> escribió:
> On Apr 1, 10:42 pm, "Gabriel Genellina" <[EMAIL PROTECTED]>
> wrote:
>> En Tue, 01 Apr 2008 23:56:50 -0300, <[EMAIL PROTECTED]> escribió:
>>
>> yield *iterable
>>
>> could be used as a shortcut for this:
>>
>> for __temp in
On Apr 2, 3:57 pm, Mel <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
>
> I'd just like to test my
>
> > understanding of this. Suppose I create the following generator
> > object:
>
> > g = getNextScalar(1, 2, (3, 4), 5)
>
> > when the iterator reaches the tuple argument (3, 4) then, accord
On Apr 1, 10:42 pm, "Gabriel Genellina" <[EMAIL PROTECTED]>
wrote:
> En Tue, 01 Apr 2008 23:56:50 -0300, <[EMAIL PROTECTED]> escribió:
>
> yield *iterable
>
> could be used as a shortcut for this:
>
> for __temp in iterable: yield __temp
How serious were you about that?
--
http://mail.pytho
[EMAIL PROTECTED] wrote:
I'd just like to test my
> understanding of this. Suppose I create the following generator
> object:
>
> g = getNextScalar(1, 2, (3, 4), 5)
>
> when the iterator reaches the tuple argument (3, 4) then, according to
> Steve and George, the * in *arg causes this tuple to be
[EMAIL PROTECTED] wrote:
> On Apr 2, 4:42 am, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote:
>> En Tue, 01 Apr 2008 23:56:50 -0300, <[EMAIL PROTECTED]> escribió:
>>
>>> I'm trying to understand generator functions and the yield keyword.
>>> I'd like to understand why the following code isn't suppos
On Apr 2, 4:42 am, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote:
> En Tue, 01 Apr 2008 23:56:50 -0300, <[EMAIL PROTECTED]> escribió:
>
> > I'm trying to understand generator functions and the yield keyword.
> > I'd like to understand why the following code isn't supposed to work.
> > (What I would
En Tue, 01 Apr 2008 23:56:50 -0300, <[EMAIL PROTECTED]> escribió:
> I'm trying to understand generator functions and the yield keyword.
> I'd like to understand why the following code isn't supposed to work.
> (What I would have expected it to do is, for a variable number of
> arguments composed o
On Apr 1, 11:17 pm, George Sakkis <[EMAIL PROTECTED]> wrote:
> On Apr 1, 10:56 pm, [EMAIL PROTECTED] wrote:
>
>
>
> > Hi all,
>
> > I'm trying to understand generator functions and the yield keyword.
> > I'd like to understand why the following code isn't supposed to work.
> > (What I would have ex
[EMAIL PROTECTED] wrote:
> Hi all,
>
> I'm trying to understand generator functions and the yield keyword.
> I'd like to understand why the following code isn't supposed to work.
> (What I would have expected it to do is, for a variable number of
> arguments composed of numbers, tuples of numbers,
On Apr 1, 10:56 pm, [EMAIL PROTECTED] wrote:
> Hi all,
>
> I'm trying to understand generator functions and the yield keyword.
> I'd like to understand why the following code isn't supposed to work.
> (What I would have expected it to do is, for a variable number of
> arguments composed of numbers,
[EMAIL PROTECTED] wrote:
> I'm trying to understand generator functions and the yield keyword.
> I'd like to understand why the following code isn't supposed to work.
> (What I would have expected it to do is, for a variable number of
> arguments composed of numbers, tuples of numbers, tuples of tu
Hi all,
I'm trying to understand generator functions and the yield keyword.
I'd like to understand why the following code isn't supposed to work.
(What I would have expected it to do is, for a variable number of
arguments composed of numbers, tuples of numbers, tuples of tuples,
etc., the function
15 matches
Mail list logo