TGViewer
Python notes Python notes @python_development_notes · 514 subscribers
Post #105 961
This article by Ned Batchelder discusses a significant enhancement in measuring branch coverage with coverage.py, leveraging Python's new sys.monitoring feature introduced in Python 3.12. This improvement allows for more efficient tracking of code execution by disabling repeated event notifications once an event has been recorded, making it faster than the traditional sys.settrace method used previously.

https://nedbatchelder.com/blog/202503/faster_branch_coverage_measurement.html
Nedbatchelder Faster branch coverage measurement After nearly two years, I think this is finally ready: coverage.py can use <a rel="external noopener" href="https://docs.python.org/3/library/sys.monitoring.html">sys.monitoring</a> to more efficiently measure branch coverage.
More from @python_development_notes
  1. Sep 24, 2025https://www.youtube.com/watch?v=g-Cytq7YDCc
  2. Sep 23, 2025A recent report from The New Stack covers the major announcement that Nvidia is adding nat…
  3. Sep 22, 2025https://www.youtube.com/watch?v=A4Pn2lEdoLQ
  4. Sep 21, 2025🚀 The fast, Pythonic way to build MCP servers and clients https://github.com/jlowin/fastm…
  5. Sep 20, 2025This commentary from Jyn.dev embraces the idea of writing imperfect but effective Python c…
  6. Sep 19, 2025https://www.youtube.com/watch?v=5avSMc79V-w
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →