| Store | Cart

Re: [Python-Dev] PEP 492: async/await in Python; v3

From: Yury Selivanov <ysel...@gmail.com>
Wed, 29 Apr 2015 18:58:43 -0400
Greg,

On 2015-04-29 6:46 PM, Greg Ewing wrote:
> Yury Selivanov wrote:>>>> Won't that prevent some existing generator-based>>> coroutines (ones not decorated with @coroutine)>>> from calling ones implemented with 'async def'?>>>>> It would.  But that's not a backwards compatibility>> issue.>> It seems to go against Guido's desire for the new> way to be a 100% drop-in replacement for the old> way. There are various ways that old code can end> up calling new code -- subclassing, callbacks,> etc.>> It also means that if person A writes a library> in the new style, then person B can't make use> of it without upgrading all of their code to the> new style as well. The new style will thus be> "infectious" in a sense.>> I suppose it's up to Guido to decide whether it's> a good or bad infection. But the same kind of> reasoning seemed to be at least partly behind> the rejection of PEP 3152.>

It's a drop-in replacement ;)  If you run your
existing code - it will 100% work just fine.

There is a probability that *when* you start applying
new syntax something could go wrong -- you're right
here.

I'm updating the PEP to explain this clearly,
and let's see what Guido thinks about that.

My opinion is that this is a solvable problem with
a clear guidelines on how to transition existing
code to the new style.

Thanks,
Yury
_______________________________________________
Python-Dev mailing list
Pyth...@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: https://mail.python.org/mailman/options/python-dev/python-dev-ml%40activestate.com

Recent Messages in this Thread
Yury Selivanov Apr 28, 2015 03:07 am
Stefan Behnel Apr 28, 2015 05:43 am
Yury Selivanov Apr 28, 2015 03:22 pm
Ethan Furman Apr 28, 2015 03:29 pm
Yury Selivanov Apr 28, 2015 03:36 pm
Walter Dörwald Apr 28, 2015 02:23 pm
Yury Selivanov Apr 28, 2015 03:21 pm
Guido van Rossum Apr 28, 2015 09:49 pm
Yury Selivanov Apr 28, 2015 11:26 pm
Ethan Furman Apr 28, 2015 11:55 pm
Guido van Rossum Apr 29, 2015 12:04 am
Ethan Furman Apr 29, 2015 05:18 am
Greg Ewing Apr 29, 2015 09:12 am
Yury Selivanov Apr 29, 2015 05:00 am
Greg Ewing Apr 29, 2015 09:13 am
Yury Selivanov Apr 29, 2015 02:01 pm
Greg Ewing Apr 29, 2015 10:46 pm
Yury Selivanov Apr 29, 2015 10:58 pm
Greg Ewing Apr 29, 2015 09:12 am
Yury Selivanov Apr 29, 2015 02:16 pm
Greg Apr 29, 2015 03:59 am
Yury Selivanov Apr 29, 2015 04:10 am
Greg Ewing Apr 29, 2015 09:13 am
Yury Selivanov Apr 29, 2015 02:18 pm
Greg Ewing Apr 29, 2015 09:12 am
Yury Selivanov Apr 29, 2015 02:29 pm
Stephen J. Turnbull Apr 29, 2015 03:03 am
Yury Selivanov Apr 29, 2015 03:23 am
Greg Ewing Apr 29, 2015 09:13 am
Stephen J. Turnbull Apr 29, 2015 02:24 pm
Messages in this thread