[Twisted-Python] how will twisted handle generator-based coroutines deprecation?

Jean-Paul Calderone exarkun at twistedmatrix.com
Wed May 6 10:11:35 MDT 2020


On Wed, May 6, 2020 at 11:44 AM Vladimir Chudyk <vladier233 at gmail.com>
wrote:

> Looking at the docs I found that Generators-based coroutines, something
> that twisted's inline callbacks depend a lot, will be deprecated soon by
> the time python 3.10 is released.
>
>
> https://docs.python.org/3/library/asyncio-task.html#generator-based-coroutines
>
>
> * NoteSupport for generator-based coroutines is deprecated and is
> scheduled for removal in Python 3.10.*
>
> This is a problem since any future python release will come without the
> generator-based coroutines that twisted needs, so any higher version of
> python 3.10 will, for the most part, completely broke a lot of twisted code
> that already exists.
> How will then twisted handle this deprecation?
>

This seems to be a deprecation of the asyncio library's implementation of
generator-based coroutines.  It doesn't seem like it should affect any code
written using `inlineCallbacks`, only code that uses `asyncio.coroutine`.

Jean-Paul
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/twisted-python/attachments/20200506/aa071ecd/attachment.htm>


More information about the Twisted-Python mailing list