About the show
Sponsored by DigitalOcean: pythonbytes.fm/digitalocean-gen-ai Use code DO4BYTES and get $200 in free credit
Connect with the hosts
Join us on YouTube at pythonbytes.fm/live to be part of the audience. Usually Monday at 10am PT. Older video versions available there too.
Finally, if you want an artisanal, hand-crafted digest of every week of the show notes in email form? Add your name and email to our friends of the show list, we'll never share it.
Brian #1: Coverage.py regex pragmas
Ned Batchelder
The regex implementation of how coverage.py recognizes pragmas is pretty amazing.
It’s extensible through plugins
A change from last year (as part of coverage.py 7.6 allows multiline regexes, which let’s us do things like:
\\A(?s:.*# pragma: exclude file.*)\\Z
# no cover: start(?s:.*?)# no cover: stop
^\\s*(((async )?def .*?)?\\)(\\s*->.*?)?:\\s*)?\\.\\.\\.\\s*(#|$)
Michael #2: Python of Yore
YORE: ...
comments to highlight CPython version dependencies.
# YORE: EOL 3.8: Replace block with line 4.
if sys.version_info < (3, 9):
from astunparse import unparse
else:
from ast import unparse
Then check when they go out of support:
$ yore check --eol-within '5 months'
./src/griffe/agents/nodes/_values.py:11: Python 3.8 will reach its End of
Stuff You Should Know
If you've ever wanted to know about champagne, satanism, the Stonewall Uprising, chaos theory, LSD, El Nino, true crime and Rosa Parks, then look no further. Josh and Chuck have you covered.
Dateline NBC
Current and classic episodes, featuring compelling true-crime mysteries, powerful documentaries and in-depth investigations. Follow now to get the latest episodes of Dateline NBC completely free, or subscribe to Dateline Premium for ad-free listening and exclusive bonus content: DatelinePremium.com
The Breakfast Club
The World's Most Dangerous Morning Show, The Breakfast Club, With DJ Envy, Jess Hilarious, And Charlamagne Tha God!