[issue32193] Convert asyncio to async/await

2017-12-08 Thread Andrew Svetlov

Change by Andrew Svetlov :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32193] Convert asyncio to async/await

2017-12-08 Thread Andrew Svetlov

Andrew Svetlov  added the comment:


New changeset 5f841b553814969220b096a2b4f959b7f6fcbaf6 by Andrew Svetlov in 
branch 'master':
bpo-32193: Convert asyncio to async/await usage (#4753)
https://github.com/python/cpython/commit/5f841b553814969220b096a2b4f959b7f6fcbaf6


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32193] Convert asyncio to async/await

2017-12-07 Thread STINNER Victor

Change by STINNER Victor :


--
nosy:  -vstinner

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32193] Convert asyncio to async/await

2017-12-07 Thread Andrew Svetlov

Change by Andrew Svetlov :


--
keywords: +patch
pull_requests: +4656
stage:  -> patch review

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32193] Convert asyncio to async/await

2017-12-01 Thread Andrew Svetlov

Andrew Svetlov  added the comment:

Yuri please do

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32193] Convert asyncio to async/await

2017-12-01 Thread Terry J. Reedy

Change by Terry J. Reedy :


--
nosy: +terry.reedy

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32193] Convert asyncio to async/await

2017-12-01 Thread Yury Selivanov

Yury Selivanov  added the comment:

Andrew, would it be OK if I make a PR?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32193] Convert asyncio to async/await

2017-12-01 Thread Yury Selivanov

Yury Selivanov  added the comment:

> How will we guarantee that clients using the old `@coroutine`/`yield from` 
> idiom still work?

They are fully supported now, but we can add a few tests to ensure we won't 
break it.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32193] Convert asyncio to async/await

2017-12-01 Thread Guido van Rossum

Guido van Rossum  added the comment:

Yeah, I am in favor of this. How will we guarantee that clients using the old 
`@coroutine`/`yield from` idiom still work? We need to have separate tests for 
that.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32193] Convert asyncio to async/await

2017-12-01 Thread Andrew Svetlov

Change by Andrew Svetlov :


--
type:  -> enhancement

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32193] Convert asyncio to async/await

2017-12-01 Thread Andrew Svetlov

New submission from Andrew Svetlov :

As discussed several times before we need to convert `@coroutine` / `yield 
from` to async/await.

All existing functionality should keep working (like yielding from new style 
coroutine and `with (yield from lock)`.

We could deprecate the later though.

The change should be huge but there is no alternative, keeping `yield from` in 
stdlib looks uglier and uglier every year.

Unittests should be changed as well (keeping several `yield from` for checking 
backward compatibility is Ok).


Opinions?

--
assignee: asvetlov
components: Library (Lib), asyncio
messages: 307375
nosy: asvetlov, yselivanov
priority: normal
severity: normal
status: open
title: Convert asyncio to async/await
versions: Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32193] Convert asyncio to async/await

2017-12-01 Thread Andrew Svetlov

Change by Andrew Svetlov :


--
nosy: +gvanrossum, vstinner

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com