Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #89110

Re: PEP 492, new coroutine syntax for Python

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!news.swapon.de!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail
From Paul Rubin <no.email@nospam.invalid>
Newsgroups comp.lang.python
Subject Re: PEP 492, new coroutine syntax for Python
Date Fri, 17 Apr 2015 22:32:36 -0700
Organization A noiseless patient Spider
Lines 31
Message-ID <87k2xagfwr.fsf@jester.gateway.pace.com> (permalink)
References <87fv7yjdw7.fsf@jester.gateway.pace.com> <mailman.390.1429329761.12925.python-list@python.org>
Mime-Version 1.0
Content-Type text/plain
Injection-Info mx02.eternal-september.org; posting-host="bda44be170c76b3ef6d23fecd204a8fa"; logging-data="15764"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18JogD8qS5wMvMeFJNQaEEr"
User-Agent Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)
Cancel-Lock sha1:ZnHsTRcn3I2jYpGcMJh3KMRs06M= sha1:2dJ+br+eCVU47al5tbwuu3EaEGo=
Xref csiph.com comp.lang.python:89110

Show key headers only | View raw


Chris Angelico <rosuav@gmail.com> writes:
> Hah. It only just hit python-ideas, so you're jumping in on something
> brand new - no wonder it hasn't been mentioned yet :)

Interesting.  It's dated a couple weeks ago and has obviously been in
the works for a while.  There's a working implementation which I'd think
means it's outside the idea phase.

> I think the current proposal has a lot of duplication (it looks like
> there's almost a complete replica of the generator protocol being
> created in parallel), but whatever happens, it's a good thing.

But it's so much cleaner than the existing generator stuff and can
pretty much replace it.  That is the kind of change that Python 3 really
should have been about.

> I strongly recommend jumping over to python-ideas and following along
> - that is, if you're interested enough to drink from the veritable
> fire-hose of -ideas! 

I might take a look at the list archive.  I don't think I could deal
with actually receiving the mailings and trying to keep up with them.

> There's a chance this will land in Python 3.5, but if not, I'd be very
> surprised if it doesn't hit 3.6.  

Neat :).  This paper about Lua coroutines is good and if it hasn't been
part of the PEP discussion and looks relevant, you might want to post it
there:

http://www.jucs.org/jucs_10_7/coroutines_in_lua/de_Moura_A_L.pdf

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

PEP 492, new coroutine syntax for Python Paul Rubin <no.email@nospam.invalid> - 2015-04-17 20:47 -0700
  Re: PEP 492, new coroutine syntax for Python Chris Angelico <rosuav@gmail.com> - 2015-04-18 14:02 +1000
    Re: PEP 492, new coroutine syntax for Python Paul Rubin <no.email@nospam.invalid> - 2015-04-17 22:32 -0700
      Re: PEP 492, new coroutine syntax for Python Chris Angelico <rosuav@gmail.com> - 2015-04-18 16:20 +1000
    Re: PEP 492, new coroutine syntax for Python Marko Rauhamaa <marko@pacujo.net> - 2015-04-18 10:35 +0300

csiph-web