Eine aufbereitete Darstellung der Quelle

 
     
 
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung


Quelle  _compat.py   Sprache: Python

 

"""Workarounds for CPython interpreter bugs the SDK papers over."""

import anyio.lowlevel

__all__ = ["resync_tracer"]


async def resync_tracer() -> None:
    """Resync coverage tracing after a cancelled task-group join.

    A cancel delivered at a join resumes the awaiting coroutine chain via
    `coro.throw()`; on CPython 3.11 (python/cpython#106749) that drops the
    `'call'` trace events for the outer frames and desyncs coverage's CTracer
    until the chain next suspends and resumes normally. Yielding once here
    resumes via `.send()`, which re-stamps the missing events. Shielded so a
    pending outer cancel is not re-delivered at this point; behaviorally a
    no-op. Delete this module when Python 3.11 support ends (EOL 2027-10).
    "
""
    await anyio.lowlevel.cancel_shielded_checkpoint()

Messung
CHZG
869810094

¤ Dauer der Verarbeitung: 0.4 Sekunden  ¤

*© Formatika GbR, Deutschland







                                                                                                                                                                                                                                                                                                                                                                                                     

 

Neuigkeiten

Aktuelles
Motto des Tages

Open Source Software


Gedichte
Musik
Bilder

Jenseits des Üblichen

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1,188,303
#Domains=919,443