[New-bugs-announce] [issue33654] asyncio: transports don't support switching between Protocol and BufferedProtocol

Yury Selivanov report at bugs.python.org
Sat May 26 13:08:31 EDT 2018


New submission from Yury Selivanov <yselivanov at gmail.com>:

1. asyncio.BufferedProtocol is a new Python 3.7 *provisional* API.

2. asyncio.Transport.set_protocol() doesn't support switching between Protocol and BufferedProtocol.

3. Because of (2), another *new* Python 3.7 API "loop.start_tls" doesn't support asyncio.BufferedProtocol at all.

The fix is straightforward and *does not* affect any existing APIs in Python 3.6 and lower.  Since the patch adjusts the APIs a little bit, it would be great to merge this in 3.7.0.

However, since only the provisional APIs are changed, this can be theoretically merged to 3.7.1 too.  It would be nice, though, to get this into 3.7.0.  Ned, your thoughts?

----------
assignee: yselivanov
components: asyncio
messages: 317743
nosy: asvetlov, ned.deily, yselivanov
priority: high
severity: normal
status: open
title: asyncio: transports don't support switching between Protocol and BufferedProtocol
versions: Python 3.7, Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33654>
_______________________________________


More information about the New-bugs-announce mailing list