<p>Should you understand the entirety of your codebase? How familiar are you with Python’s built-in functions? Christopher Trudeau is back on the show this week with another batch of PyCoder’s Weekly articles and projects.</p> <p>We discuss a recent article by Sean Goedecke titled “In Defense of Not Understanding Your Codebase.” We dig into the differences in the scale of software projects and the factors that can obscure understanding of an entire codebase. We cover how opinions and practices people often argue for are based on the development practices from decades ago.</p> <p>Christopher shares his recent video course that explores Python’s built-in functions. The course is divided into sections to help you find the right built-in for tasks involving math, data types, iterables, and I/O. We discuss which of these functions are frequently used in our code.</p> <p>We also share other articles and projects from the Python community, including recent releases, querying with f-expressions in Django, replacing <code>if-else</code> chains, a Rust-based replacement for Python’s <code>json</code> module, and a couple of Python cheat sheet resources.</p> <p>This episode is sponsored by <a href="https://hydradb.com/?utm_source=real-python&utm_medium=real%20python&utm_campaign=dev-tool-listing&utm_content=podcast">HydraDB</a>.</p> <div class="alert alert-primary" role="alert"> <p><strong>Course Spotlight:</strong> <a href="https://realpython.com/courses/exploring-pythons-built-in-functions/">Exploring Python’s Built-in Functions</a></p> <p>Learn Python’s built-in functions for math, data types, iterables, and I/O, and when to use each to write more Pythonic code.</p> </div> <p>Topics:</p> <ul> <li>00:00:00 – Introduction</li> <li>00:02:29 – Christopher’s Python News Song</li> <li>00:03:18 – Python 3.15.0 Beta 4 Released</li> <li>00:03:39 – PEP 838: Adding <code>python-version</code> to <code>pyvenv.cfg</code></li> <li>00:04:59 – PEP 840: Name Resolution in Class Namespaces</li> <li>00:06:42 – Stop Using <code>if-else</code> Chains</li> <li>00:13:46 – Sponsor: HydraDB</li> <li>00:14:44 – Nifty Django Feature: F Expressions</li> <li>00:20:23 – In Defense of Not Understanding Your Codebase</li> <li>00:34:13 – Exploring Python’s Built-in Functions</li> <li>00:45:26 – Video Course Spotlight</li> <li>00:46:57 – Python strftime/strptime Directive Cheat Sheet</li> <li>00:50:22 – Itertools Cheatsheet</li> <li>00:52:59 – Introducing <code>django-orjson</code></li> <li>00:55:33 – Thanks and goodbye</li> </ul> <p>News:</p> <ul> <li><a href="https://blog.python.org/2026/07/python-3150-beta-4/">Python 3.15.0 Beta 4 Released</a></li> <li><a href="https://peps.python.org/pep-0838/">PEP 838: Adding <code>python-version</code> to <code>pyvenv.cfg</code> (Added)</a></li> <li><a href="https://peps.python.org/pep-0840/">PEP 840: Name Resolution in Class Namespaces (Added)</a></li> </ul> <p>Show Links:</p> <ul> <li><a href="https://www.kdnuggets.com/stop-using-if-else-chains-use-the-registry-pattern-in-python-instead">Stop Using <code>if-else</code> Chains</a> – Learn a cleaner, more extensible way to dispatch logic in Python using dictionaries and function pointers instead of long if-else chains.</li> <li><a href="https://www.better-simple.com/django/2026/07/02/nifty-feature-f-expressions/">Nifty Django Feature: F Expressions</a> – Django’s F-Expression provides a way of querying fields from the ORM. They’re particularly handy to traverse relationships in more complex queries.</li> <li><a href="https://docs.djangoproject.com/en/6.0/ref/models/expressions/#f-expressions">F() Expressions - Django Documentation</a></li> <li><a href="https://www.seangoedecke.com/in-defense-of-not-understanding-your-codebase/">In Defense of Not Understanding Your Codebase</a> – In this opinion piece, Sean argues that there is a difference in the thought process between maintaining smaller software projects vs larger ones, and that the former is over represented in engineering discussion in the internet.</li> <li><a href="https://realpython.com/courses/exploring-pythons-built-in-functions/">Exploring Python’s Built-in Functions</a> – Learn Python’s built-in functions for math, data types, iterables, and I/O, and when to use each to write more Pythonic code.</li> </ul> <p>Projects:</p> <ul> <li><a href="https://inventwithpython.com/strftime/">Python strftime/strptime Directive Cheat Sheet</a></li> <li><a href="https://mathspp.com/blog/itertools-cheatsheet">Itertools Cheatsheet</a> – Cheatsheet with visual diagrams that explain how the iterables from itertools work.</li> <li><a href="https://adamj.eu/tech/2026/07/15/introducing-django-orjson/">Introducing <code>django-orjson</code></a> – <code>orjson</code> is a Rust-based replacement for Python’s <code>json</code> module. So what would Adam Johnson do with it? Make it easier to use in Django of course.</li> <li><a href="https://github.com/ijl/orjson">orjson: Fast, correct Python JSON library supporting dataclasses, datetimes, and numpy</a></li> <li><a href="https://django-orjson.readthedocs.io/en/latest/">django-orjson documentation</a></li> </ul> <p>Additional Links:</p> <ul> <li><a href="https://realpython.com/primer-on-python-decorators/#registering-plugins">Primer on Python Decorators - Registering Plugins</a></li> <li><a href="https://realpython.com/python-built-in-functions/">Python Built-in Functions: A Complete Guide</a></li> <li><a href="https://realpython.com/cheatsheets/python/">Python Cheat Sheet – Real Python</a></li> <li><a href="https://nedbatchelder.com/text/which-py">What’s in which Python - Ned Batchelder</a></li> </ul> <p>Level up your Python skills with our expert-led courses:</p> <ul> <li><a href="https://realpython.com/courses/python-datetime-module/">Using Python's datetime Module</a></li> <li><a href="https://realpython.com/courses/basics-conditional-logic-control-flow/">Python Basics: Conditional Logic and Control Flow</a></li> <li><a href="https://realpython.com/courses/exploring-pythons-built-in-functions/">Exploring Python's Built-in Functions</a></li> </ul> <p><a rel="payment" href="https://realpython.com/join">Support the podcast & join our community of Pythonistas</a></p>
Analysis: done · source seed