Python Bytes

Python Bytes is a weekly podcast hosted by Michael Kennedy and Brian Okken. The show is a short discussion on the headlines and noteworthy news in the Python, developer, and data science space.

https://pythonbytes.fm/

subscribe
share






episode 360: #360: Happy Birthday!


Topics covered in this episode:

  • exclude_also with coverage.py
  • Writeside
  • * Extra, extra, extra*
  • Chrome not proceeding with Web Integrity API deemed by many to be DRM
  • Extras
  • Joke
Watch on YouTube

About the show

Sponsored by Scout APM

Connect with the hosts

  • Michael: @mkennedy@fosstodon.org
  • Brian: @brianokken@fosstodon.org
  • Show: @pythonbytes@fosstodon.org

Join us on YouTube at pythonbytes.fm/live to be part of the audience. Usually Tuesdays at 11am PT. Older video versions available there too.

Note: No episode next week. Michael will be at Microsoft Ignite in Seattle.

Happy Birthday to us (7 years old today)!

Brian #1: exclude_also with coverage.py

  • Interesting exchange between Pamela Fox, Hugo van Kemenade, and myself where we all discover exclude_also, even though it’s been there since February
  • This is cool because you can exclude common “should I cover this? It’s just for debugging.” kinda stuff, and other “I don’t wanna test that” places.
  • To exclude code blocks, we can use *# pragma: no cover* in the code.
  • Or we can list lines in coverage setting with exclude_lines, but you have to also list # pragma: no cover, which is weird.
  • exclude_also just just right. It leaves all the inline excludes alone, and adds some regexes, and you can even just have one if that’s all you need, like if __name__ == .__main__.:
  • See coverage docs

Michael #2: Writeside

  • An IDE for writing the docs
  • Write, test, build, and publish docs
  • Docs-as-code out of the box
  • Doc quality automation: Ensure documentation quality and integrity with 100+ on-the-fly inspections in the editor as well as tests in Live Preview and during build.
  • Comes as a separate IDE as well as a plugin for PyCharm, etc.
  • Pricing will be free + paid premium version (like PyCharm), fully free for now

Brian #3: Extra, extra, extra

  • Welcome Marie Nordin as the new PSF Community Communications Manager
    • Woohoo!
  • Pablo Galindo and Łukasz Langa started a podcast, called core.py
    • Inside look into Python 3.13
    • Two episodes so far
      • The first core sprint for 3.13
      • Details on removing the GIL
    • regexcrossword
      • Suggested by Kim van Wyk
      • actually really great for practicing regex rules

Michael #4: Chrome not proceeding with Web Integrity API deemed by many to be DRM

  • Google’s premise for the internet:
    • The Internet should be constructed so that users can be identified, tracked, retargeted (and hence resold). — Google
  • And privacy is important.
  • So how do we make both of these work.
    • FLOCs?
    • Privacy Sandboxes?
    • Web Integrity?
  • No, just no.
  • How about you sell us ads the same way you surface search results (by what is on the page, not who is visiting it)
  • Good riddance to this idea you corrupted organization.
  • What was wrong with Web Integrity? Some comments
    • Issue #134 calls the idea "absolutely unethical and against the open web."
    • Issue #113 say they "can't believe this is even proposed."
    • Issue #127 adds: "Have you ever stopped to consider that you're the bad guys?”

Extras

Brian:

  • Mock chapter of pytest: working with projects, the 2nd course in The Complete pytest Course series, is recorded and hopefully releasing today. At the very least some time this week.
  • PyCharm has sent me a bunch of coupon codes for students of The Complete pytest Course.
    • Sign up for the course and ask me for the code, and I’ll send it to you.
  • Nov 21 webinar with yours truly: Do You Do Enough Testing? pytest to the Rescue!

Michael:

  • We Just Gave $500,000 to Open Source Maintainers - Sentry (thank you)
  • ruff format + pycharm follow up
  • JetBrains AI is getting very good a commit messages
    • Add exception handling in background_service.py:
    • Introduced try-except blocks to handle potential exceptions in the 'pending_jobs', 'start_job_processing', and 'run_pending_job' methods in background_service.py. This change enhances error handling and makes the service more robust by preventing crashes if a job or episode cannot be fetched or if an unknown job action is encountered.
    • Add assemblyai to requirements and update ruff version:
    • This commit includes the addition of assemblyai package as part of the requirements.txt file, required to introduce new speech-to-text feature in our application. Ruff version is also updated from 0.1.3 to 0.1.4 due to bug fixes and stability improvements in the new version. Assemblyai also includes dependencies like pydantic and websockets.
  • GPT4All follow up
  • Got some nice feedback on my statement on PyCon 2024’s health and safety policy
    • More I think about it, the more out of touch it seems
    • Comparisons, no mask requirements for any of:
      • GitHub Universe - N,NNN? attendees
      • CES - 180,000 attendees
      • SXSW - 152,000 attendees
      • KubeCon - 12,000 attendees
      • Adobe Summit - 10,000 attendees
      • Mobile World Conference - 109,500 attendees
      • DeveloperWeek - 2,000 attendees
      • Microsoft Ignite - 4,000 attendees
      • WWDC - unkown

Joke:

  • The plural of regex is regrets.


fyyd: Podcast Search Engine
share








 November 7, 2023  35m