Podbean logo
  • Discover
  • Podcast Features
    • Podcast Hosting

      Start your podcast with all the features you need.

    • Podbean AI Podbean AI

      AI-Enhanced Audio Quality and Content Generation.

    • Blog to Podcast

      Repurpose your blog into an engaging podcast.

    • Video to Podcast

      Convert YouTube playlists to podcasts, videos to audios.

  • Monetization
    • Ads Marketplace

      Join Ads Marketplace to earn through podcast sponsorships.

    • PodAds

      Manage your ads with dynamic ad insertion capability.

    • Apple Podcasts Subscriptions Integration

      Monetize with Apple Podcasts Subscriptions via Podbean.

    • Live Streaming

      Earn rewards and recurring income from Fan Club membership.

  • Podbean App
    • Podcast Studio

      Easy-to-use audio recorder app.

    • Podcast App

      The best podcast player & podcast app.

  • Help and Support
    • Help Center

      Get the answers and support you need.

    • Podbean Academy

      Resources and guides to launch, grow, and monetize podcast.

    • Podbean Blog

      Stay updated with the latest podcasting tips and trends.

    • What’s New

      Check out our newest and recently released features!

    • Podcasting Smarter

      Podcast interviews, best practices, and helpful tips.

  • Popular Topics
    • How to Start a Podcast

      The step-by-step guide to start your own podcast.

    • How to Start a Live Podcast

      Create the best live podcast and engage your audience.

    • How to Monetize a Podcast

      Tips on making the decision to monetize your podcast.

    • How to Promote Your Podcast

      The best ways to get more eyes and ears on your podcast.

    • Podcast Advertising 101

      Everything you need to know about podcast advertising.

    • Mobile Podcast Recording Guide

      The ultimate guide to recording a podcast on your phone.

    • How to Use Group Recording

      Steps to set up and use group recording in the Podbean app.

  • All Arts Business Comedy Education
  • Fiction Government Health & Fitness History Kids & Family
  • Leisure Music News Religion & Spirituality Science
  • Society & Culture Sports Technology True Crime TV & Film
  • Live
  • How to Start a Podcast
  • How to Start a Live Podcast
  • How to Monetize a podcast
  • How to Promote Your Podcast
  • How to Use Group Recording
  • Log in
  • Start your podcast for free
  • Podcasting
    • Podcast Features
      • Podcast Hosting

        Start your podcast with all the features you need.

      • Podbean AI Podbean AI

        AI-Enhanced Audio Quality and Content Generation.

      • Blog to Podcast

        Repurpose your blog into an engaging podcast.

      • Video to Podcast

        Convert YouTube playlists to podcasts, videos to audios.

    • Monetization
      • Ads Marketplace

        Join Ads Marketplace to earn through podcast sponsorships.

      • PodAds

        Manage your ads with dynamic ad insertion capability.

      • Apple Podcasts Subscriptions Integration

        Monetize with Apple Podcasts Subscriptions via Podbean.

      • Live Streaming

        Earn rewards and recurring income from Fan Club membership.

    • Podbean App
      • Podcast Studio

        Easy-to-use audio recorder app.

      • Podcast App

        The best podcast player & podcast app.

  • Advertisers
  • Enterprise
  • Pricing
  • Resources
    • Help and Support
      • Help Center

        Get the answers and support you need.

      • Podbean Academy

        Resources and guides to launch, grow, and monetize podcast.

      • Podbean Blog

        Stay updated with the latest podcasting tips and trends.

      • What’s New

        Check out our newest and recently released features!

      • Podcasting Smarter

        Podcast interviews, best practices, and helpful tips.

    • Popular Topics
      • How to Start a Podcast

        The step-by-step guide to start your own podcast.

      • How to Start a Live Podcast

        Create the best live podcast and engage your audience.

      • How to Monetize a Podcast

        Tips on making the decision to monetize your podcast.

      • How to Promote Your Podcast

        The best ways to get more eyes and ears on your podcast.

      • Podcast Advertising 101

        Everything you need to know about podcast advertising.

      • Mobile Podcast Recording Guide

        The ultimate guide to recording a podcast on your phone.

      • How to Use Group Recording

        Steps to set up and use group recording in the Podbean app.

  • Discover
  • Log in
    Sign up free
Python Bytes

Python Bytes

Technology

#268 Wait, you can Google that?

#268 Wait, you can Google that?

2022-01-27
Download Right click and do "save link as"

Watch the live stream:

Watch on YouTube

About the show

Sponsored by us:

  • Check out the courses over at Talk Python
  • And Brian’s book too!

Brian #1: (draft) PEP 679 -- Allow parentheses in assert statements

  • Pablo Galindo Salgado
  • This is in draft, not approved, and not scheduled for any release
  • But it seems like a really good idea to me.
  • assert(1 == 2, "seems like it should fail") will always pass currently
  • since the tuple (False,"seems like it should fail") is a non-empty tuple.
  • Current Python will emit a warning
>>> assert(1 == 2, "seems like it should fail") [stdin]:1: SyntaxWarning: assertion is always true, perhaps remove parentheses?
  • But really, why not just change the language to allow assert with or without parens.
  • Also would allow multi-line assert statements more easily:
assert ( very very long expression, "very very long " "message", )
  • I hope this is a slam dunk and gets in ASAP.

Michael #2: Everything I googled as a dev

  • by Sophie Koonin
  • In an attempt to dispel the idea that if you have to google stuff you’re not a proper engineer, this is a list of nearly everything I googled in a week at work
  • Rather than my posting a huge list, check out the day logs on her post
  • Worth calling out a few:
    • Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? - said React upgrade then started causing some super fun errors.
    • semantic HTML contact details - wanted to check if the [HTML_REMOVED] tag was relevant here
    • editing host file - desperate times (and it didn’t even work)

Madison #3: PyCascades 2022!

  • Another year of excellent and diverse talks across an array of subjects.
  • Talks from some well known folks (Thursday Bram, Jay Miller) as well as first time speakers (Joseph Riddle, Isaac Na)
    • PSF’s DE&I Panel is doing a meet & greet, and they have a survey they’d like Python community members to fill out.
  • Socials Friday & Saturday night, sprints on Sunday.
  • Tickets are still available!

Brian #4: Strict Python function parameters

  • Seth Michael Larson
  • We have keyword only parameters
    • def process_data(data, *, encoding="ascii"): ...
    • notice the *
    • encoding has to be a keyword argument, cannot be positional.
  • We have position only parameters:
    • def process_data(data, /, encoding="ascii"): ...
    • notice the /
    • data has to be positional, cannot be passed in as a keyword argument
  • Combine the two:
    • def process_data(data, /, *, encoding="ascii"): ...
    • Now data has to be positional, and encoding has to be a keyword, if present.
  • This way a function really can only be called as intended and all uses of the function will be consistent. This is a good thing.
  • There are many benefits, including empowering library authors to make changes without weird behaviors cropping up in user code.
  • Commentary:
    • extra syntax may be confusing for some new users.
    • For a lot of library API entry points, I think this makes a lot of sense.

Michael #5: mureq - vendored requests

  • mureq is a single-file, zero-dependency alternative to python-requests
  • Intended to be vendored in-tree by Linux systems software and other lightweight applications.
  • Doesn’t support connection pooling (but neither does requests.get()).
  • Uses much less memory
  • Avoids supply chain attack vulnerabilities
  • Consider my prod branch until PRs #2 and #3 are merged.

Madison #6: Openverse

  • No, not Metaverse!
  • Previously “CC Search”
  • Search engine for openly licensed media, for free and public use/remix of content.
  • Currently images & audio, hope to include video, text, 3D models down the line.
  • Start your search here

Extras

Michael:

  • We now have playable times in the transcript section (example).
  • Very cool tool for building regex-es I used for the above: regex101.com
  • Next video is out: Do you even need loops in Python? A Python short by Michael Kennedy
  • Remember, we have full-text search

Brian:

  • pip-secure-install - from Brett Cannon
  • Python Testing with pytest is, when I last checked, the #2 bestseller at Pragmatic
    • so cool
    • My Maui trip was also a work trip. Gave me time to completely re-read the book, make notes, and make last minute changes. Changes went in this week and tonight is my “pencils down” date. This is getting real, folks.
    • Thanks to everyone for buying beta copies and supporting the re-write.

Madison:

  • spd.watch - new police accountability/information tool for the Seattle area
  • Shoutout to just (mentioned in Ep 242)
  • ghcr.io - free docker image hosting for open source projects, easy integration with GitHub Actions

Joke:

via Josh Thurston

  • How did the hacker get away from the police? He just ransomware.
  • That joke makes me WannaCry…
  • Where do you find a hacker? In decrypt.
view more

More Episodes

#439 That Astral Episode
2025-07-07
#438 Motivation time
2025-06-30
#437 Python Language Summit 2025 Highlights
2025-06-23
#436 Slow tests go last
2025-06-16
#435 Stop with .folders in my ~/
2025-06-09
#434 Most of OpenAI’s tech stack runs on Python
2025-06-02
#433 Dev in the Arena
2025-05-26
#432 How To Fix Your Computer
2025-05-19
#431 Nerd Gas
2025-05-05
#430 Or you go to jail
2025-04-28
#429 Nitpicking Python
2025-04-21
#428 How old is your Python?
2025-04-14
#427 Rise of the Python Lord
2025-04-07
#426 Committing to Formatted Markdown
2025-03-31
#425 If You Were a Klingon Programmer
2025-03-24
#424 We Will Test in Production
2025-03-17
#423 Traveling the Python Universe
2025-03-10
#422 You need 4 spaces
2025-03-03
#421 22 years old
2025-02-24
#420 90% Done in 50% of the Available Time
2025-02-17
  • ←
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • →
012345678910111213141516171819

Get this podcast on your
phone, FREE

Download Podbean app on App Store Download Podbean app on Google Play

Create your
podcast in
minutes

  • Full-featured podcast site
  • Unlimited storage and bandwidth
  • Comprehensive podcast stats
  • Distribute to Apple Podcasts, Spotify, and more
  • Make money with your podcast
Get started

It is Free

  • Podcast Services

    • Podcast Features
    • Pricing
    • Enterprise Solution
    • Private Podcast
    • The Podcast App
    • Live Stream
    • Audio Recorder
    • Remote Recording
    • Podbean AI
  •  
    • Create a Podcast
    • Video Podcast
    • Start Podcasting
    • Start Radio Talk Show
    • Education Podcast
    • Church Podcast
    • Nonprofit Podcast
    • Get Sermons Online
    • Free Audiobooks
  • MONETIZATION & MORE

    • Podcast Advertising
    • Dynamic Ads Insertion
    • Apple Podcasts Subscriptions
    • Switch to Podbean
    • YouTube to Podcast
    • Blog to Podcast
    • Submit Your Podcast
    • Podbean Plugins
    • Developers
  • KNOWLEDGE BASE

    • How to Start a Podcast
    • How to Start a Live Podcast
    • How to Monetize a Podcast
    • How to Promote Your Podcast
    • Mobile Podcast Recording Guide
    • How to Use Group Recording
    • Podcast Advertising 101
  • Support

    • Support Center
    • What’s New
    • Free Webinars
    • Podcast Events
    • Podbean Academy
    • Podbean Amplified Podcast
    • Badges
    • Resources
  • Podbean

    • About Us
    • Podbean Blog
    • Careers
    • Press and Media
    • Green Initiative
    • Affiliate Program
    • Contact Us
  • Privacy Policy
  • Cookie Policy
  • Terms of Use
  • Consent Preferences
  • Copyright © 2015-2025 Podbean.com