
The Real Python Podcast· Folge 315
Python Pitfalls: Common Mistakes and How to Avoid Them
Freitag, 16. Oktober 2026 · 46 min
Kapitelklicken springt direkt hin
Shownotes
<p>What are common mistakes that Python beginners make, and how do you avoid them? Christopher Trudeau is back on the show this week with another batch of PyCoder’s Weekly articles and projects.</p>
<p>We dig into an article about common pitfalls and mistakes new Python developers make. Some of the mistakes are due to Python doing exactly what you asked it to do. We also talk about Real Python resources for getting started with the language and building your development environment.</p>
<p>We also share other articles and projects from the Python community, including recent releases, a collection of new PEPs, and the results of two recent Python elections. We cover creating temporary files in Python, decoupling pure logic from Django’s ORM, a Python functions reference, a lightning-fast logger, and an online development environment for creating games.</p>
<div class="alert alert-primary" role="alert">
<p><strong>Course Spotlight:</strong> <a href="realpython.com/courses/python-first-steps/&quo… to Use Python: Taking Your First Steps</a></p>
<p>Take your first steps with Python. Install it, run your first program, and work with variables, data types, loops, functions, and errors.</p>
</div>
<div class="alert alert-primary" role="alert">
<p><strong>Live Course Spotlight:</strong> <a href="realpython.com/workshops/python-for-beginners/… for Beginners: Code With Confidence</a></p>
<p>Learn the fundamentals of Python step-by-step in a friendly, interactive cohort. Build confidence writing code and understand the “why” behind Python’s core concepts.</p>
</div>
<div class="alert alert-primary" role="alert">
<p><strong>Free Kit:</strong> Get the <a href="realpython.com/kits/python-beginner/">… Beginner Starter Kit</a> with a cheat sheet, a sample book chapter, a course, and a quiz. You only need a free Real Python account.</p>
</div>
<p>Topics:</p>
<ul>
<li>00:00:00 – Introduction</li>
<li>00:02:05 – After a delay - Python 3.15.0 (final) is here!</li>
<li>00:02:41 – Python 3.10.22, 3.11.17, 3.12.15, 3.13.16 and 3.14.8 are now available!</li>
<li>00:03:30 – PEP 823 – None-aware access operators</li>
<li>00:04:40 – PEP 845: Leading-Dot Value Patterns</li>
<li>00:05:04 – PEP 846: Docstrings for Type Aliases</li>
<li>00:05:21 – PEP 848: Generational Incremental Garbage Collection</li>
<li>00:06:12 – 2026 PSF Board Election Results</li>
<li>00:06:31 – 2026 Python Packaging Council Election Results!</li>
<li>00:07:23 – 7 Python Mistakes Beginners Make</li>
<li>00:18:03 – An Effective Python Development Environment</li>
<li>00:21:37 – Creating Temporary Files in Python</li>
<li>00:24:30 – Video Course Spotlight</li>
<li>00:26:02 – 5 Design Patterns Used in My New Habit Tracker App</li>
<li>00:33:43 – Functions: A Complete Reference</li>
<li>00:36:50 – PYXEL STUDIO</li>
<li>00:39:38 – pyfastlogging: A Lightning Fast Logger, Written in Rust</li>
<li>00:41:54 – How Libraries Run Rust Inside Python (with PyO3)</li>
<li>00:44:43 – Thanks and goodbye</li>
</ul>
<p>News:</p>
<ul>
<li><a href="blog.python.org/2026/10/python-3150-final-is-h… 3.15.0 (final) is here!</a></li>
<li><a href="blog.python.org/2026/10/python-31022-31117/&qu… 3.10.22, 3.11.17, 3.12.15, 3.13.16 and 3.14.8 are now available!</a></li>
<li><a href="peps.python.org/pep-0823/">PEP 823 – None-aware access operators</a></li>
<li><a href="peps.python.org/pep-0824/">PEP 824 – None-coalescing operators</a></li>
<li><a href="peps.python.org/pep-0845/">PEP 845: Leading-Dot Value Patterns (Draft)</a></li>
<li><a href="peps.python.org/pep-0846/">PEP 846: Docstrings for Type Aliases (Draft)</a></li>
<li><a href="peps.python.org/pep-0848/">PEP 848: Generational Incremental Garbage Collection (Draft)</a></li>
<li><a href="pyfound.blogspot.com/2026/09/announcing-2026-p… PSF Board Election Results</a></li>
<li><a href="pyfound.blogspot.com/2026/09/announcing-2026-p… Python Packaging Council Election Results!</a></li>
</ul>
<p>Show Links:</p>
<ul>
<li><a href="kdnuggets.com/7-python-mistakes-beginners-make… Python Mistakes Beginners Make</a> – Some mistakes are because Python did exactly what you asked it to do. This article covers seven of them. For each one, you get the hidden cause, plus the first thing worth checking.</li>
<li><a href="realpython.com/effective-python-environment/&q… Effective Python Development Environment</a> – Choose a Python development environment that helps you get coding. Find tutorials and courses on editors, uv, virtual environments, and useful tools.</li>
<li><a href="pythonmorsels.com/temporary-files/">Cr… Temporary Files in Python</a> – How to create temporary files and directories in Python using the <code>tempfile</code> module’s <code>NamedTemporaryFile</code> and <code>TemporaryDirectory</code>.</li>
<li><a href="belderbos.dev/blog/python-patterns-django-habi… Design Patterns Used in My New Habit Tracker App</a> – Bob has built a Django + HTMX-based habit tracker. This article covers five small Python and design patterns used in his code.</li>
<li><a href="mathspp.com/blog/pydonts/functions-a-complete-…: A Complete Reference</a> – This article is a complete reference for all things related to functions in Python, including structure, signatures, <code>*args</code>, <code>**kwargs</code>, using functions as objects, and more.</li>
</ul>
<p>Projects:</p>
<ul>
<li><a href="pyxelstudio.net/">PYXEL STUDIO</a></li>
<li><a href="pypi.org/project/pyfastlogging/">pyfas…: A Lightning Fast Logger, Written in Rust</a></li>
</ul>
<p>Additional Links:</p>
<ul>
<li><a href="packaging.python.org/en/latest/guides/installi… packages in a virtual environment using pip and venv - Python Packaging User Guide</a></li>
<li><a href="realpython.com/python-virtual-environments-a-p… Virtual Environments: A Primer – Real Python</a></li>
<li><a href="pydevtools.com/handbook/how-to/how-to-require-… a Virtualenv for pip Installs - pydevtools</a></li>
<li><a href="blog.python.org/2026/09/language-summit-2026-n… namespace to namespace them all (Python Language Summit 2026) - Python Insider</a></li>
<li><a href="commitgraph.app/">commitgraph - Commit to what matters. Every day.</a></li>
<li><a href="talkpython.fm/episodes/show/563/getting-starte… Started with Rust as Python Devs - Talk Python To Me Podcast</a></li>
<li><a href="belderbos.dev/blog/how-libraries-run-rust-insi… Libraries Run Rust Inside Python (with PyO3) - Bob Belderbos</a></li>
</ul>
<p>Level up your Python skills with our expert-led courses:</p>
<ul>
<li><a href="realpython.com/courses/setting-up-python/"… Basics: Setting Up Python</a></li>
<li><a href="realpython.com/courses/python-basics-first-pro… Basics: Code Your First Python Program</a></li>
<li><a href="realpython.com/courses/python-first-steps/&quo… to Use Python: Taking Your First Steps</a></li>
</ul> <p><a rel="payment" href="realpython.com/join">Support the podcast & join our community of Pythonistas</a></p>