On Fri, Apr 22, 2016 at 1:19 AM, justin walters
wrote:
> I agree with the others that the new syntax is not needed.
>
> I would also like to point out that I believe any new added syntax or
> functionality should avoid the use of '*' and '**' as both of these
> characters are already used for many
I agree with the others that the new syntax is not needed.
I would also like to point out that I believe any new added syntax or
functionality should avoid the use of '*' and '**' as both of these
characters are already used for many things such as optional arguments and
mathematical operators. Ad
On Thu, 21 Apr 2016 05:34 am, Ken Seehart wrote:
> Currently the common pattern for yielding the elements in a sequence is as
> follows:
>
> for x in sequence: yield x
>
> I propose the following replacement (the result would be identical):
>
> yield *sequence
Others have already pointed o
On Thu, Apr 21, 2016 at 8:26 AM, wrote:
> Anyway, thanks for the link. And I suppose checking Python 3 for
> implementation would be a good prior step as well! Sadly, "yield from" is not
> in python 2.7, but it's presence in python 3.3 renders my proposal dead as a
> parrot without a liver.
>
On Wednesday, April 20, 2016 at 1:00:45 PM UTC-7, Ethan Furman wrote:
> On 04/20/2016 12:34 PM, Ken Seehart wrote:
>
> New ideas for Python are typically vetted on Python Ideas. [1]
>
> > Currently the common pattern for yielding the elements in a sequence
> > is as follows:
> >
> >for x in
Currently the common pattern for yielding the elements in a sequence is as
follows:
for x in sequence: yield x
I propose the following replacement (the result would be identical):
yield *sequence
imho the current syntax is much more intuitive, it is obvious to infer what it
does
by
On 04/20/2016 12:34 PM, Ken Seehart wrote:
New ideas for Python are typically vetted on Python Ideas. [1]
Currently the common pattern for yielding the elements in a sequence
> is as follows:
for x in sequence: yield x
I propose the following replacement (the result would be identical):
On Wed, Apr 20, 2016, at 15:34, Ken Seehart wrote:
> Currently the common pattern for yielding the elements in a sequence is
> as follows:
>
> for x in sequence: yield x
>
> I propose the following replacement (the result would be identical):
>
> yield *sequence
yield from sequence
--
http
Currently the common pattern for yielding the elements in a sequence is as
follows:
for x in sequence: yield x
I propose the following replacement (the result would be identical):
yield *sequence
The semantics are somewhat different from argument expansion (from which the
syntax is borrow