[issue37202] Future.cancelled is not set to true immediately after calling Future.cancel
Change by Roland Netzsch : -- resolution: -> not a bug ___ Python tracker <https://bugs.python.org/issue37202> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue37202] Future.cancelled is not set to true immediately after calling Future.cancel
Roland Netzsch added the comment: So there is no way to reliably find out whether a task has been cancelled by calling Task.cancelled()? -- ___ Python tracker <https://bugs.python.org/issue37202> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue37202] Future.cancelled is not set to true immediately after calling Future.cancel
Roland Netzsch added the comment: Python-Version: [stuxcrystal@caprica ~]$ python3.7 --version Python 3.7.3 Additional Notes: Distribution: Fedora 30 (Workstation Edition) Kernel: x86_64 Linux 5.0.9-301.fc30.x86_64 -- ___ Python tracker <https://bugs.python.org/issue37202> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue37202] Future.cancelled is not set to true immediately after calling Future.cancel
New submission from Roland Netzsch : The attached file produces the following output: wait is still running wait is not set to cancelled! Awaiting cancelled future produced a CancelledError. A look a the documentation does not suggest a need to await the future in order to make sure the cancelled-flag is being set. -- components: asyncio files: test.py messages: 345029 nosy: Roland Netzsch, asvetlov, yselivanov priority: normal severity: normal status: open title: Future.cancelled is not set to true immediately after calling Future.cancel type: behavior versions: Python 3.7 Added file: https://bugs.python.org/file48405/test.py ___ Python tracker <https://bugs.python.org/issue37202> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com