Python Bytes

#424 We Will Test in Production


Listen Later

Topics covered in this episode:
  • The weird quirk with rounding in Python
  • Python interpreter adds tail calls
  • Remove punctuation from a string with translate and maketrans
  • Extra, extra, extra
  • Extras
  • Joke
  • Watch on YouTube

    About the show

    Sponsored by us! Support our work through:

    • Our courses at Talk Python Training
    • The Complete pytest Course
    • Patreon Supporters
    • Connect with the hosts

      • Michael: @[email protected] / @mkennedy.codes (bsky)
      • Brian: @[email protected] / @brianokken.bsky.social
      • Show: @[email protected] / @pythonbytes.fm (bsky)
      • 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: The weird quirk with rounding in Python

        • Tom Nijhof-Verheesb
        • With numbers ending in .5, Python always rounds to an even number.
          • round(0.5) → 0
          • round(1.5) → 2
          • etc
          • This follows IEEE 754
          • You can use decimal if you need a different behavior.
          • Michael #2: Python interpreter adds tail calls

            • Ken Jin, a member of the project, has merged a new set of changes that have been benchmarked as improving performance by 10% for some architectures.
            • "Speedup is roughly equal to 2 minor CPython releases worth of improvements. For example, CPython 3.12 roughly sped up by 5%.”
            • Brian #3: Remove punctuation from a string with translate and maketrans

              • Rodrigo
              • “Don't use the method replace to remove punctuation from a Python string. Instead, use the method translate.”
              • Michael #4: Extra, extra, extra

                • Animation v Coding, hello world to transformers
                • TypeScript rewritten in Go
                • Firefox lies
                • PyCon’s Startup Row
                • Python in Production Book
                • Extras

                  Joke: Startrek Testing

                  ...more
                  View all episodesView all episodes
                  Download on the App Store

                  Python BytesBy Michael Kennedy and Brian Okken

                  • 4.7
                  • 4.7
                  • 4.7
                  • 4.7
                  • 4.7

                  4.7

                  210 ratings


                  More shows like Python Bytes

                  View all
                  Hanselminutes with Scott Hanselman by Scott Hanselman

                  Hanselminutes with Scott Hanselman

                  378 Listeners

                  Software Engineering Radio - the podcast for professional software developers by se-radio@computer.org

                  Software Engineering Radio - the podcast for professional software developers

                  262 Listeners

                  The Changelog: Software Development, Open Source by Changelog Media

                  The Changelog: Software Development, Open Source

                  285 Listeners

                  Data Skeptic by Kyle Polich

                  Data Skeptic

                  474 Listeners

                  Talk Python To Me by Michael Kennedy

                  Talk Python To Me

                  585 Listeners

                  Software Engineering Daily by Software Engineering Daily

                  Software Engineering Daily

                  631 Listeners

                  Test & Code by Brian Okken

                  Test & Code

                  72 Listeners

                  Super Data Science: ML & AI Podcast with Jon Krohn by Jon Krohn

                  Super Data Science: ML & AI Podcast with Jon Krohn

                  295 Listeners

                  Data Engineering Podcast by Tobias Macey

                  Data Engineering Podcast

                  142 Listeners

                  Syntax - Tasty Web Development Treats by Wes Bos & Scott Tolinski - Full Stack JavaScript Web Developers

                  Syntax - Tasty Web Development Treats

                  984 Listeners

                  CoRecursive: Coding Stories by Adam Gordon Bell - Software Developer

                  CoRecursive: Coding Stories

                  185 Listeners

                  Practical AI by Practical AI LLC

                  Practical AI

                  196 Listeners

                  The Stack Overflow Podcast by The Stack Overflow Podcast

                  The Stack Overflow Podcast

                  63 Listeners

                  The Real Python Podcast by Real Python

                  The Real Python Podcast

                  137 Listeners

                  Oxide and Friends by Oxide Computer Company

                  Oxide and Friends

                  47 Listeners