This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author aeros
Recipients Tim Froehlich, adefossez, aeros, asvetlov, koobs, miss-islington, pablogsal, rojer, stefan, sth, xtreak, yselivanov
Date 2020-05-30.02:49:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1590806981.5.0.793552115414.issue35621@roundup.psfhosted.org>
In-reply-to
Content
> is there a workaround for earlier Python versions that does not involve patching the standard library?

You could potentially try using the new default watcher, `ThreadedChildWatcher`, by implementing it locally and setting it as the child watcher to use (instead of `SafeChildWatcher`) with `set_child_watcher()`. AFAICT, the current implementation should work well for earlier versions of Python that don't have it, we just can't include it earlier than 3.8 since it's a new feature.

See https://github.com/python/cpython/blob/4649202ea75d48e1496e99911709824ca2d3170e/Lib/asyncio/unix_events.py#L1326 for reference.
History
Date User Action Args
2020-05-30 02:49:41aerossetrecipients: + aeros, stefan, asvetlov, sth, yselivanov, koobs, pablogsal, miss-islington, xtreak, adefossez, Tim Froehlich, rojer
2020-05-30 02:49:41aerossetmessageid: <1590806981.5.0.793552115414.issue35621@roundup.psfhosted.org>
2020-05-30 02:49:41aeroslinkissue35621 messages
2020-05-30 02:49:40aeroscreate