
Python Bytes #461 This episdoe has a typo
15 snips
Dec 9, 2025 PEP 798 makes unpacking in comprehensions official, allowing for cleaner code. Pandas 3.0.0 is on the horizon, featuring a dedicated string data type and new behaviors. A new tool integrates misspelling detection directly into your coding environment. The slowlafi tool helps simulate constrained CI environments for more robust testing. Best practices for mocking in tests are shared, ensuring you avoid common pitfalls. Plus, a hilarious look at a simulated programming language using clickbait! Tune in for laughs and learning!
AI Snips
Chapters
Transcript
Episode notes
Unpacking Inside Comprehensions
- PEP 798 proposes allowing * and ** unpacking inside comprehensions to simplify combining iterables and dicts.
- Michael Kennedy and Brian Okken highlight this brings consistency with call-site unpacking and reduces confusing nested comprehensions.
Explicit Lazy Imports Accepted
- PEP 810 (Explicit lazy imports) was unanimously accepted by the Steering Council and now needs implementation.
- The hosts note 'lazy' will be the accepted keyword and implementation work follows acceptance.
Major Changes In Pandas 3.0
- Pandas 3.0 introduces a dedicated string dtype inferred by default and stronger missing-value semantics.
- Copy-on-write semantics and pd.col usage in assign/loc aim to make the API more consistent and memory-efficient.
