התחל במצב לא מקוון עם האפליקציה Player FM !
#424 We Will Test in Production
Manage episode 471903696 series 1305988
- 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
About the show
Sponsored by us! Support our work through:
Connect with the hosts
- Michael: @mkennedy@fosstodon.org / @mkennedy.codes (bsky)
- Brian: @brianokken@fosstodon.org / @brianokken.bsky.social
- Show: @pythonbytes@fosstodon.org / @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 methodtranslate
.”
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
430 פרקים
Manage episode 471903696 series 1305988
- 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
About the show
Sponsored by us! Support our work through:
Connect with the hosts
- Michael: @mkennedy@fosstodon.org / @mkennedy.codes (bsky)
- Brian: @brianokken@fosstodon.org / @brianokken.bsky.social
- Show: @pythonbytes@fosstodon.org / @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 methodtranslate
.”
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
430 פרקים
כל הפרקים
×ברוכים הבאים אל Player FM!
Player FM סורק את האינטרנט עבור פודקאסטים באיכות גבוהה בשבילכם כדי שתהנו מהם כרגע. זה יישום הפודקאסט הטוב ביותר והוא עובד על אנדרואיד, iPhone ואינטרנט. הירשמו לסנכרון מנויים במכשירים שונים.