• Elvis Pranskevichus's avatar
    bpo-34872: Fix self-cancellation in C implementation of asyncio.Task (GH-9679) · 0c797a6a
    Elvis Pranskevichus yazdı
    The C implementation of asyncio.Task currently fails to perform the
    cancellation cleanup correctly in the following scenario.
    
        async def task1():
            async def task2():
                await task3     # task3 is never cancelled
    
            asyncio.current_task().cancel()
            await asyncio.create_task(task2())
    
    The actuall error is a hardcoded call to `future_cancel()` instead of
    calling the `cancel()` method of a future-like object.
    
    Thanks to Vladimir Matveev for noticing the code discrepancy and to
    Yury Selivanov for coming up with a pathological scenario.
    0c797a6a
Adı
Son kayıt (commit)
Son güncelleme
..
next Loading commit data...
3.5.0.rst Loading commit data...
3.5.0a1.rst Loading commit data...
3.5.0a2.rst Loading commit data...
3.5.0a3.rst Loading commit data...
3.5.0a4.rst Loading commit data...
3.5.0b1.rst Loading commit data...
3.5.0b2.rst Loading commit data...
3.5.0b3.rst Loading commit data...
3.5.0b4.rst Loading commit data...
3.5.0rc1.rst Loading commit data...
3.5.0rc2.rst Loading commit data...
3.5.0rc3.rst Loading commit data...
3.5.0rc4.rst Loading commit data...
3.5.1.rst Loading commit data...
3.5.1rc1.rst Loading commit data...
3.5.2.rst Loading commit data...
3.5.2rc1.rst Loading commit data...
3.5.3.rst Loading commit data...
3.5.3rc1.rst Loading commit data...
3.5.4.rst Loading commit data...
3.5.4rc1.rst Loading commit data...
3.5.5.rst Loading commit data...
3.5.5rc1.rst Loading commit data...
3.6.0.rst Loading commit data...
3.6.0a1.rst Loading commit data...
3.6.0a2.rst Loading commit data...
3.6.0a3.rst Loading commit data...
3.6.0a4.rst Loading commit data...
3.6.0b1.rst Loading commit data...
3.6.0b2.rst Loading commit data...
3.6.0b3.rst Loading commit data...
3.6.0b4.rst Loading commit data...
3.6.0rc1.rst Loading commit data...
3.6.0rc2.rst Loading commit data...
3.6.1.rst Loading commit data...
3.6.1rc1.rst Loading commit data...
3.6.2.rst Loading commit data...
3.6.2rc1.rst Loading commit data...
3.6.2rc2.rst Loading commit data...
3.6.3.rst Loading commit data...
3.6.3rc1.rst Loading commit data...
3.6.4.rst Loading commit data...
3.6.4rc1.rst Loading commit data...
3.6.5.rst Loading commit data...
3.6.5rc1.rst Loading commit data...
3.6.6.rst Loading commit data...
3.6.6rc1.rst Loading commit data...
3.7.0.rst Loading commit data...
3.7.0a1.rst Loading commit data...
3.7.0a2.rst Loading commit data...
3.7.0a3.rst Loading commit data...
3.7.0a4.rst Loading commit data...
3.7.0b1.rst Loading commit data...
3.7.0b2.rst Loading commit data...
3.7.0b3.rst Loading commit data...
3.7.0b4.rst Loading commit data...
3.7.0b5.rst Loading commit data...
3.7.0rc1.rst Loading commit data...