Nick Coghlan added the comment:

Since the old behaviour is only deprecated with Yury's changes, rather than 
disallowed entirely, I think it makes sense to provide a 3.5.x version that 
also supports the new behaviour.

In addition to my docs comment above, the other thing I noticed in reviewing 
the patch is that the proposed tests don't currently check that we *don't* emit 
a deprecation warning for the newly permitted forward compatible cases that 
return an asynchronous iterator (rather than an awaitable) directly from 
__aiter__.

There are definitely some tests that exercise that path, so we could rely on 
the general principle of "the test suite shouldn't emit deprecation warnings", 
but we could also add some tests that specifically check that no warning is 
emitted in that case.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue27243>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to