The Real Python Podcast

The Real Python Podcast

By Real PythonTechnology
Download on the App Store

The Real Python Podcast episodes

  • Improving Your Git Developer Experience in Python

    Are you getting by with a few fundamental commands for Git when building your Python projects? Would you like to improve your version control techniques and become more efficient with the Git command line? This week on the show, Adam Johnson is back to talk about his new book, “Boost Your Git DX.”

    Adam brings advice about creating a Git configuration, enabling autocorrect, and customizing a global ignore file. He combed through the cryptic documentation and found the valuable developer settings, so you won’t have to.

    Adam also shares tools and settings to speed up your terminal workflows. We discuss configuring Zsh, creating aliases, and comparing diffs. We briefly dig into the most recent update to Django and his work on the project.

    This week’s episode is brought to you by Taipy.

    Course Spotlight: Introduction to Git and GitHub for Python Developers

    What is Git, what is GitHub, and what’s the difference? Learn the basics of Git and GitHub from the perspective of a Pythonista in this step-by-step video course.

    Topics:

    • 00:00:00 – Introduction
    • 00:02:13 – When did you start working on this book?
    • 00:06:11 – Git’s tendency to be inscrutable
    • 00:08:57 – Audience for the book
    • 00:09:47 – What have you learned about writing?
    • 00:13:41 – What were you most excited to share?
    • 00:14:34 – Global Git ignore
    • 00:19:53 – Sponsor: Taipy
    • 00:20:58 – Backing up configuration
    • 00:22:37 – Git autocorrect
    • 00:24:48 – Recovering from mistakes
    • 00:27:58 – Creating terminal aliases in Zsh
    • 00:31:59 – Using a Colemak keyboard layout
    • 00:34:33 – Changing the diff-options to histogram
    • 00:37:22 – Altering the global configuration file
    • 00:39:36 – Video Course Spotlight
    • 00:41:05 – Brief history of the Git project
    • 00:44:27 – delta - syntax-highlighting pager for git, diff, and grep output
    • 00:45:22 – pygments-git - Pygments lexers for Git output and files
    • 00:46:56 – What are you excited about in the world of Git?
    • 00:49:17 – What are you excited about in the world of Python?
    • 00:52:51 – What do you want to learn next?
    • 00:53:50 – How can people follow your work online?
    • 00:55:23 – Thanks and goodbye
    • Show Links:

      • Boost Your Git DX
      • “Boost Your Git DX” out now - Adam Johnson
      • Boost Your Django DX
      • Git: How to set up a global ignore file - Adam Johnson
      • Git - git-config Documentation
      • Git: How to enable autocorrect - Adam Johnson
      • New zine: Oh shit, Git!
      • Oh Shit, Git!?!
      • Git - git-reflog Documentation
      • Oh My Zsh - a delightful & open source framework for Zsh
      • Starship: Cross-Shell Prompt
      • Git - diff-options Documentation
      • Git - Git Configuration
      • Colemak - Keyboard Layout
      • delta: A syntax-highlighting pager for Git, diff, and grep output
      • pygments-git - PyPI
      • Sapling from Meta
      • Jujutsu: A Git-compatible DVCS that is both simple and powerful
      • Django 5.0 beta 1 released - Django
      • Adam Johnson’s Blog
      • Adam Johnson (@[email protected]) - Fosstodon
      • Projects - Adam Johnson
      • Level up your Python skills with our expert-led courses:

        • Introduction to Git and GitHub for Python
        • How to Set Up a Django Project
        • Building Python Project Documentation With MkDocs
        • Support the podcast & join our community of Pythonistas

          57 min
        • Guiding Scientific Python Library Development

          How do you prepare a scientific Python project for sharing with others? Could you use some best practices and guidance for packaging, documentation, and testing? Christopher Trudeau is back on the show this week, bringing another batch of PyCoder’s Weekly articles and projects.

          We talk about the creation of the Scientific Python Library Development Guide. The guide was finalized during the 2023 Scientific Python Developer Summit and is a resource for modern packaging. It includes sections of tutorials, principles, templates, and common patterns.

          Christopher shares a recent Real Python tutorial about sorting Unicode strings in Python. He covers some of the pitfalls and ways to avoid them. The tutorial includes multiple third-party libraries to assist in wrangling Unicode characters.

          We also share several other articles and projects from the Python community, including a couple of release announcements, information on namespaces and variable scope in Python, benchmark comparisons of Numba and Mojo, a discussion of recent so-called AI fails, a TUI for log files with a merged timeline, a cross-platform GUI building tool similar to HyperCard, and a project for reproducing exact argparse arguments.

          Course Spotlight: Exploring Scopes and Closures in Python

          In this Code Conversation video course, you’ll take a deep dive into how scopes and closures work in Python. To do this, you’ll use a debugger to walk through some sample code, and then you’ll take a peek under the hood to see how Python holds variables internally.

          Topics:

          • 00:00:00 – Introduction
          • 00:02:30 – Python 3.13.0 alpha 1 is now available
          • 00:03:20 – core.py - Podcast
          • 00:03:53 – PEP 730 - Adding iOS as a supported platform
          • 00:05:22 – Mojo🔥 is now available on Mac
          • 00:06:28 – How to Sort Unicode Strings Alphabetically in Python
          • 00:11:48 – Python Variables: Namespaces and Variable Scope
          • 00:18:18 – Mojo: Head-to-Head With Python and Numba
          • 00:27:25 – Video Course Spotlight
          • 00:28:50 – The Scientific Python Library Development Guide
          • 00:32:47 – I’m banned for life from advertising on Meta
          • 00:48:03 – logmerger: TUI for Log Files With Merged Timeline
          • 00:50:34 – CardStock: Cross-Platform GUI Building Tool
          • 00:54:24 – reverse_argparse: Tell the User What They Ran
          • 00:56:25 – Thanks and goodbye
          • News:

            • Python Insider: Python 3.13.0 alpha 1 is now available
            • core.py - Podcast by Pablo Galindo and Łukasz Langa
            • PEP 730 - Adding iOS as a supported platform - peps.python.org
            • Modular: Mojo🔥 is now available on Mac
            • Show Links:

              • How to Sort Unicode Strings Alphabetically in Python – In this tutorial, you’ll learn how to correctly sort Unicode strings in Python while avoiding common pitfalls. You’ll explore powerful third-party libraries implementing the complete Unicode Collation Algorithm (UCA), as well as standard library modules and a few handmade solutions.
              • Python Variables: Namespaces and Variable Scope – This post is a comprehensive guide on namespaces and variable scope. Learn about the four different namespaces and how to access each.
              • Mojo: Head-to-Head With Python and Numba – This article covers a Mandelbrot-based benchmark of Python, variations of Numba, and the newly available Mojo. Although Mojo is fast, it takes a lot more work than the author expected to translate Python to it, and with the right parameters, Numba still beats it.
              • The Scientific Python Development Guide – This article talks about the release of the Scientific Python Development Guide, which documents Python package development. It includes cookie-cutter templates and repo tools.
              • Discussion:

                • I’m banned for life from advertising on Meta. Because I teach Python. — Reuven Lerner
                • ‘Life or Death:’ AI-Generated Mushroom Foraging Books Are All Over Amazon
                • Projects:

                  • logmerger: TUI for Log Files With Merged Timeline
                  • CardStock: Cross-Platform GUI Building Tool
                  • reverse_argparse: Tell the User What They Ran
                  • Additional Links:

                    • Write once. Deploy everywhere. - BeeWare
                    • Python Scope & the LEGB Rule: Resolving Names in Your Code - Real Python
                    • Exploring Scopes and Closures in Python - Real Python
                    • Thonny, Python IDE for beginners
                    • Scikit-HEP - About
                    • Episode #39: Generators, Coroutines, and Learning Python Through Exercises - The Real Python Podcast
                    • 30-plus years of HyperCard, the missing link to the Web - Ars Technica
                    • CardStock.run - Quickly and easily build apps on the web
                    • Level up your Python skills with our expert-led courses:

                      • Unicode in Python: Working With Character Encodings
                      • Navigating Namespaces and Scope in Python
                      • Exploring Scopes and Closures in Python
                      • Support the podcast & join our community of Pythonistas

                        58 min
                      • Welcoming PyPI's Safety & Security Engineer Mike Fiedler

                        You may remember a recent Python Package Index (PyPI) announcement about hiring a full-time security engineer. We’ve also mentioned several current security initiatives from PyPI. This week on the show, we talk with Mike Fiedler about accepting this new role and securing accounts on PyPI.

                        Mike talks about how he started as a contributor to PyPI and eventually became a maintainer. We dig into why he fits this new role well and what his responsibilities are.

                        We discuss the initiative to secure accounts using two-factor authentication (2FA) methods. Mike also explains how package maintainers can adopt a new, more secure publishing method called trusted publishing that doesn’t require long-lived passwords.

                        We also discuss Mike’s recent talk called “How to Give Back to Open Source Without Losing Your Mind.” Mike shares advice and resources for finding your own contribution entry points.

                        Course Spotlight: Publishing Python Packages to PyPI

                        In this video course, you’ll learn how to create a Python package for your project and how to publish it to PyPI, the Python Package Index. Quickly get up to speed on everything from naming your package to configuring it using setup.cfg.

                        Topics:

                        • 00:00:00 – Introduction
                        • 00:02:11 – PyPI Safety and Security Engineer
                        • 00:05:21 – Why did you initially become a PyPI contributor?
                        • 00:11:26 – What are you most excited about in your new role?
                        • 00:12:02 – Current security concerns
                        • 00:15:07 – Focus on malicious package reporting
                        • 00:16:30 – 2FA enforcement and building trust
                        • 00:26:51 – Managing credentials and password managers
                        • 00:29:24 – Forms of 2FA
                        • 00:31:48 – Trusted publishers
                        • 00:38:08 – Video Course Spotlight
                        • 00:39:28 – Updating an older project
                        • 00:41:44 – Evolution of security
                        • 00:43:06 – Typosquatting and evolving security
                        • 00:49:13 – How To Give Back to Open Source Without Losing Your Mind
                        • 00:52:48 – What are you excited about in the world of Python?
                        • 00:54:45 – What do you want to learn next?
                        • 00:57:06 – How can people follow your work online?
                        • 00:57:37 – Thanks and goodbye
                        • Show Links:

                          • PyPI hires a Safety & Security Engineer - The Python Package Index
                          • Inbound Malware Volume Report - The Python Package Index
                          • 2FA Enforcement for New User Registrations - The Python Package Index
                          • PyPI 2FA Security Key Giveaway - PyPI
                          • Software Bill Of Materials - National Telecommunications and Information Administration
                          • Introducing ‘Trusted Publishers’ - The Python Package Index
                          • Trusted Publishers - Getting Started - PyPI Docs
                          • How To Give Back to Open Source Without Losing Your Mind – vBrownBag
                          • Good First Issues - OpenSauced
                          • Good First Issues
                          • Participation - Hacktoberfest 2023
                          • Python Release Python 3.12.0 - Python.org
                          • htmx - high power tools for html
                          • The web framework for perfectionists with deadlines - Django
                          • The Python Package Index - Blog
                          • Mike Fiedler, Code Gardener (@[email protected]) - Fosstodon
                          • Mike Fiedler, Code Gardener (@mikefiedler) / X
                          • Mike Fiedler’s personal website
                          • Level up your Python skills with our expert-led courses:

                            • A Beginner's Guide to pip
                            • Everyday Project Packaging With pyproject.toml
                            • Publishing Python Packages to PyPI
                            • Support the podcast & join our community of Pythonistas

                              59 min
                            • Building Python Best Practices and Fundamental Skills

                              What fundamental developer skills are new Python users missing? What best practices might developers without a computer science background be lacking? Christopher Trudeau is back on the show this week, bringing another batch of PyCoder’s Weekly articles and projects.

                              Christopher opens our discussion by sharing a recent social media thread about teaching software engineering best practices to scientists and others without a computer science background. We talk about software design philosophy and strategies for sharing knowledge within an organization.

                              We cover the results from the sixth annual official Python Developer Survey. The survey covers Python usage, language versions, frameworks, libraries, and various demographics. We dig into the details and share our insights.

                              We also share several other articles and projects from the Python community, including a couple of release announcements, so many Python dataframes, ways to speed up your code when multiple cores aren’t an option, Python’s syntactic sugar, a computer algebra system named SymPy, the process of building a blog in Django, code metrics in Python with Radon, and a TUI app for daily writing.

                              This week’s episode is brought to you by Snyk.

                              Course Spotlight: Filtering Iterables With Python

                              In this video course, you’ll learn how Python’s filter() works and how to use it effectively in your programs. You’ll also learn how to use list comprehension and generator expressions to replace filter() and make your code more Pythonic.

                              Topics:

                              • 00:00:00 – Introduction
                              • 00:02:25 – Django 5.0 Alpha 1 Released
                              • 00:03:45 – Mojo SDK Released for Linux
                              • 00:04:50 – Python Developers Survey 2022 Results
                              • 00:13:44 – Why Are There So Many Python Dataframes?
                              • 00:20:24 – Sponsor: Snyk
                              • 00:21:15 – Speeding Up Your Code When Multiple Cores Aren’t an Option
                              • 00:28:41 – Python Is (Mostly) Made of Syntactic Sugar
                              • 00:32:57 – Towards a New SymPy
                              • 00:36:48 – Video Course Spotlight
                              • 00:37:54 – Building a Blog in Django
                              • 00:41:22 – What are fundamental skills and best-practices that might be lacking?
                              • 00:55:02 – Learning About Code Metrics in Python With Radon
                              • 00:59:43 – words-tui: A TUI App for Daily Writing
                              • 01:02:34 – Thanks and goodbye
                              • News:

                                • Django 5.0 Alpha 1 Released
                                • Mojo SDK Released for Linux
                                • Show Links:

                                  • Python Developers Survey 2022 Results
                                  • Why Are There So Many Python Dataframes? – Ever wonder why there are so many ways libraries that have dataframes in Python? This article talks about the different perspectives of popular tool kits to explore why they are what they are.
                                  • Speeding Up Your Code When Multiple Cores Aren’t an Option – Parallelism isn’t the only answer: often you can optimize low-level code to get significant performance improvements.
                                  • Python Is (Mostly) Made of Syntactic Sugar – “Programming languages are often made up of a (mostly) irreducible core, with lots of sugary constructs sprinkled on top–the syntactic sugar.” This article summarizes a lot of Brett Cannon’s recent work exploring what’s sugar and what’s fundamental in Python.
                                  • Towards a New SymPy – SymPy is a computer algebra system, meaning that it does math on symbolic concepts. This can provide a lot more accuracy than typical floating-point mathematics found in numeric systems. This is part one of a multi-part article, explaining SymPy along with its recent improvements. Part two discusses how SymPy handles polynomials.
                                  • Building a Blog in Django – Very little code is needed to get a blog working using the Django framework. This post highlights what you need, including each of the key code components. There’s also an associated Hacker News discussion.
                                  • Discussion:

                                    • What are fundamental skills and best-practices that might be lacking? - Matt Harrison
                                    • A Philosophy of Software Design - Book
                                    • Episode #49: The Challenges of Developing Into a Python Professional
                                    • Projects:

                                      • Learning About Code Metrics in Python With Radon – Radon is a code metrics tool. This article introduces you to it and teaches you how you can improve your code based on its measurements.
                                      • words-tui: A TUI App for Daily Writing
                                      • Additional Links:

                                        • Episode #157: Discussing Mojo & Improving Python Object-Oriented Programming
                                        • Episode #167: Exploring pandas 2.0 & Targets for Apache Arrow
                                        • Episode #47: Unraveling Python’s Syntax to Its Core With Brett Cannon
                                        • Episode #92: Continuing to Unravel Python’s Syntactic Sugar With Brett Cannon
                                        • Episode #154: Targeting WebAssembly Platforms & Distilling a Minimum Viable Python
                                        • SymPy
                                        • Computer algebra system - Wikipedia
                                        • SimPy: Simulating Real-World Processes With Python
                                        • Episode #117: Measuring Python Code Quality, Simplicity, and Maintainability
                                        • Clean Code: Writing Clear, Readable, Understandable & Reliable Quality Code - Sonar
                                        • Anthony Shaw - Wily Python: Writing simpler and more maintainable Python - PyCon 2019 - YouTube
                                        • Textual
                                        • National Novel Writing Month
                                        • Episode #101: Tools for Setting Up Python on a New Machine
                                        • Level up your Python skills with our expert-led courses:

                                          • Simulating Real-World Processes in Python With SimPy
                                          • Defining Python Functions With Optional Arguments
                                          • Filtering Iterables With Python
                                          • Support the podcast & join our community of Pythonistas

                                            1 hr 4 min
                                          • Exploring the New Features of Python 3.12

                                            Python 3.12 is here! Our regular guests, Geir Arne Hjelle and Christopher Trudeau, return to discuss the new version. Geir Arne coordinated a series of preview articles with several members of the Real Python team this year, and his showcase tutorial, “Python 3.12: Cool New Features for You to Try,” came out on October 2. Christopher’s video course was posted the next day, covering the topics from the article with visual examples of Python 3.12 in action.

                                            Geir Arne and Christopher collaborated to create code examples of the new features. We discuss better error messaging, more intuitive f-strings, subinterpreters, the Linux perf profiler, improved typing syntax, and more.

                                            We dig into the updates and offer advice on incorporating them into your projects. We also consider when you should start running Python 3.12.

                                            Course Spotlight: What’s New in Python 3.12

                                            In this video course, you’ll explore the new features that Python 3.12 brings to the table. These include improved f-strings, better error messages, changes to CPython internals, additions to static typing, and more.

                                            Topics:

                                            • 00:00:00 – Introduction
                                            • 00:02:15 – Preview tutorials
                                            • 00:05:08 – Ever better error messages
                                            • 00:10:03 – More powerful f-strings
                                            • 00:15:46 – Comprehension inlining & additional optimizations
                                            • 00:21:24 – Support for subinterpreters
                                            • 00:27:55 – Support for the Linux perf profiler
                                            • 00:32:02 – Immortal objects
                                            • 00:35:01 – Video Course Spotlight
                                            • 00:36:03 – Calendar constants for days and months
                                            • 00:38:48 – New itertools.batched() for grouping Items
                                            • 00:40:53 – Improved type variable syntax
                                            • 00:50:51 – New Path.walk() for listing files in subdirectories
                                            • 00:53:04 – Override decorator for static typing
                                            • 00:57:36 – Advice on upgrading
                                            • 01:03:08 – Thanks to the core developer team
                                            • 01:04:39 – Thanks to the Real Python team and goodbye
                                            • Show Links:

                                              • Python 3.12: Cool New Features for You to Try
                                              • Python Release Python 3.12.0 - Python.org
                                              • Python 3.12 Preview: Ever Better Error Messages
                                              • Python 3.12 Preview: More Intuitive and Consistent F-Strings
                                              • PEP 701 – Syntactic formalization of f-strings
                                              • PEP 709 – Inlined comprehensions
                                              • Python 3.12 Preview: Subinterpreters
                                              • PEP 554 – Multiple Interpreters in the Stdlib
                                              • PEP 684 – A Per-Interpreter GIL
                                              • Python 3.12 Preview: Support For the Linux perf Profiler
                                              • PEP 683 – Immortal Objects, Using a Fixed Refcount
                                              • PEP 695 – Type Parameter Syntax
                                              • Python 3.12 Preview: Static Typing Improvements
                                              • PEP 698 – Override Decorator for Static Typing
                                              • Level up your Python skills with our expert-led courses:

                                                • Python Type Checking
                                                • Cool New Features in Python 3.11
                                                • What's New in Python 3.12
                                                • Support the podcast & join our community of Pythonistas

                                                  1 hr 7 min
                                                • Considering ChatGPT's Technical Review of a Programming Book

                                                  What can you learn from feeding an entire book on Python programming into ChatGPT-4 and asking it to provide a technical review? What are the potential pitfalls of using an LLM as a learning tool? This week on the show, author Al Sweigart talks about his recent experiments using ChatGPT and Python.

                                                  Al wanted to test how well an LLM could understand the computer science concepts covered in his recent book, The Recursive Book of Recursion. We talk about the positive and negative results of this technical review. We consider if this would be a valuable tool for technical review of your projects.

                                                  Al shares his thoughts on using ChatGPT as a learning tool and its potential pitfalls. We also cover the current strengths of this type of tool for Python developers.

                                                  Course Spotlight: Python Basics Exercises: Conditional Logic and Control Flow

                                                  In this Python Basics Exercises course, you’ll review how to use conditional logic to write programs that perform different actions based on different conditions. Paired with functions and loops, conditional logic allows you to write complex programs that can handle many different situations.

                                                  Topics:

                                                  • 00:00:00 – Introduction
                                                  • 00:01:51 – Reasons for experimenting
                                                  • 00:04:24 – Using ChatGPT to review his recursion book
                                                  • 00:10:45 – Why do this review?
                                                  • 00:11:34 – The trouble of confabulation
                                                  • 00:18:45 – Meaning of artificial intelligence over time
                                                  • 00:28:21 – Video Course Spotlight
                                                  • 00:29:54 – Detailed prompts and asking for specifics
                                                  • 00:36:44 – Potential pitfalls for learning
                                                  • 00:49:48 – Checking for flaws in generated code
                                                  • 00:54:58 – How can it be useful?
                                                  • 01:01:33 – Touching briefly on ethics
                                                  • 01:02:35 – What are you excited about in the world of Python?
                                                  • 01:05:21 – What do you want to learn next?
                                                  • 01:07:36 – Python Programming Exercises, Gently Explained
                                                  • 01:09:20 – How can people follow your work online?
                                                  • 01:09:49 – Thanks and goodbye
                                                  • Show Links:

                                                    • Al Sweigart’s Website
                                                    • Using ChatGPT-4 to Review My Recursion Programming Book - The Invent with Python Blog
                                                    • Prompt Engineering: A Practical Example – Real Python
                                                    • ChatGPT: Your Personal Python Coding Mentor – Real Python
                                                    • GitHub Copilot: Fly With Python at the Speed of Thought – Real Python
                                                    • ChatGPT: US lawyer admits using AI for case research - BBC News
                                                    • If a hammer was like AI…
                                                    • The Elements of AI Ethics
                                                    • Al Sweigart: An Overview of the Python Code Tool Landscape 2023 - YouTube
                                                    • Python Programming Exercises, Gently Explained
                                                    • Invent with Python
                                                    • Ruff, an extremely fast Python linter - Astral
                                                    • Rust Programming Language
                                                    • Command Line Applications in Rust
                                                    • Level up your Python skills with our expert-led courses:

                                                      • Python Basics: Conditional Logic and Control Flow
                                                      • Python Basics: Strings and String Methods
                                                      • Python Basics Exercises: Conditional Logic and Control Flow
                                                      • Support the podcast & join our community of Pythonistas

                                                        1 hr 11 min
                                                      • Getting Involved in Open Source & Generating QR Codes With Python

                                                        Have you thought about contributing to an open-source Python project? What are possible entry points for intermediate developers? Christopher Trudeau is back on the show this week, bringing another batch of PyCoder’s Weekly articles and projects.

                                                        We discuss a recent article by Stefanie Molin called “5 Ways to Get Started in Open Source.” Christopher shares his experience with suggesting features and potential bug fixes. We talk about common entry points for beginners and provide additional resources.

                                                        We cover a recent Real Python tutorial about creating QR codes with Python. The tutorial introduces the library Segno and tours the features. By working through the examples, you’ll be ready to build a QR code project yourself.

                                                        We also cover several other articles and projects from the Python community, including a couple of release announcements, an introduction to Python’s functools module, Hatch as an alternative for packaging, options for when NumPy is too slow, a simple diceware generator project, and a collection of machine learning recipes.

                                                        Course Spotlight: Caching in Python With lru_cache

                                                        Caching is an essential optimization technique. In this video course, you’ll learn how to use Python’s @lru_cache decorator to cache the results of your functions using the LRU cache strategy. This is a powerful technique you can use to leverage the power of caching in your implementations.

                                                        Topics:

                                                        • 00:00:00 – Introduction
                                                        • 00:02:04 – 2023 Django Developers Survey
                                                        • 00:02:36 – Python 3.12.0 Release Candidate 2 Available
                                                        • 00:03:04 – Pandas 2.1.0 Released
                                                        • 00:03:27 – PEP 713: Callable Modules - Rejected
                                                        • 00:04:52 – Generate Beautiful QR Codes With Python
                                                        • 00:10:17 – Introduction to Python’s Functools Module
                                                        • 00:14:00 – Switching to Hatch
                                                        • 00:20:08 – Video Course Spotlight
                                                        • 00:21:27 – When NumPy is too slow
                                                        • 00:26:31 – 5 Ways to Get Started in Open Source
                                                        • 00:42:28 – nodice-cli: A simple diceware generator with no dependencies
                                                        • 00:44:32 – ML-Recipes: Collection of Machine Learning Recipes
                                                        • 00:47:00 – Thanks and goodbye
                                                        • News:

                                                          • 2023 Django Developers Survey
                                                          • Python 3.12.0 Release Candidate 2 Available
                                                          • Pandas 2.1.0 Released
                                                          • PEP 713: Callable Modules - Rejected - PEPs - Discussions on Python.org
                                                          • Show Links:

                                                            • Generate Beautiful QR Codes With Python – In this tutorial, you’ll learn how to use Python to generate QR codes, from your standard black-and-white QR codes to beautiful ones with your favorite colors. You’ll learn how to format QR codes, rotate them, and even replace the static background with moving images.
                                                            • Introduction to Python’s Functools Module – This article introduces you to the functions in Python’s functools module with real-world examples to help show you how and when to use each feature.
                                                            • Switching to Hatch – Oliver used Poetry for most of his projects, but he recently tried out Hatch instead. This blog post covers what it took to get things going and what features he used, including how he ditched tox.
                                                            • When NumPy is too slow – NumPy is typically faster than plain Python for numeric calculations. What should you do when you find your NumPy-based code is too slow?
                                                            • Discussion:

                                                              • 5 Ways to Get Started in Open Source – This article shares ideas for finding and making your first open-source contribution, using examples from contributions the author has made to various projects.
                                                              • The In-Person Event Handbook
                                                              • Development Sprints - PyCon US 2023
                                                              • Hacktoberfest 2023
                                                              • Projects:

                                                                • nodice-cli: A simple diceware generator with no dependencies
                                                                • ML-Recipes: Collection of Machine Learning Recipes
                                                                • Additional Links:

                                                                  • Episode #157: Discussing Mojo & Improving Python Object-Oriented Programming
                                                                  • Segno - Python QR Code and Micro QR Code encoder — Segno documentation
                                                                  • Episode #125: Improve Matplotlib With Style Sheets & Python Async for the Web
                                                                  • functools — Higher-order functions and operations on callable objects — Python documentation
                                                                  • About - Hatch
                                                                  • tox
                                                                  • xkcd: Password Strength
                                                                  • Level up your Python skills with our expert-led courses:

                                                                    • Caching in Python With lru_cache
                                                                    • Building Python Project Documentation With MkDocs
                                                                    • Everyday Project Packaging With pyproject.toml
                                                                    • Support the podcast & join our community of Pythonistas

                                                                      48 min
                                                                    • Measuring Multiple Facets of Python Performance With Scalene

                                                                      When choosing a tool for profiling Python code performance, should it focus on the CPU, GPU, memory, or individual lines of code? What if it looked at all those factors and didn’t alter code performance while measuring it? This week on the show, we talk about Scalene with Emery Berger, Professor of Computer Science at the University of Massachusetts Amherst.

                                                                      Emery talks about his background in memory management and his collaboration on Hoard, a scalable memory manager system used in Mac OS X. We discuss the need for improving code performance on modern computer architecture. He highlights this idea by contrasting the familiar limitations of Moore’s law with the lesser-known rule of Dennard scaling.

                                                                      Working with his students in the university lab, they developed Scalene. Scalene is a high-performance CPU, GPU, and memory profiler. It can look at code from the individual function or line-by-line level and compare time spent in Python vs C code. Emery talks about the recent Scalene feature of AI-powered optimization proposals and covers a couple of examples. He also shares a collection of additional Python code-assistant tools from their lab.

                                                                      Course Spotlight: What Does if name == “main” Mean in Python?

                                                                      In this video course, you’ll learn all about Python’s name-main idiom. You’ll learn what it does in Python, how it works, when to use it, when to avoid it, and how to refer to it.

                                                                      Topics:

                                                                      • 00:00:00 – Introduction
                                                                      • 00:02:13 – College of Information and Computer Sciences
                                                                      • 00:03:25 – Memory management systems background
                                                                      • 00:05:15 – Dennard Scaling vs Moore’s Law
                                                                      • 00:10:12 – Starting work on Python profiling
                                                                      • 00:15:00 – Deciding on a statistical profiler
                                                                      • 00:17:05 – Wanting to trace memory
                                                                      • 00:21:21 – Finding memory issues
                                                                      • 00:23:59 – Line-by-line analysis
                                                                      • 00:25:56 – Video Course Spotlight
                                                                      • 00:27:14 – Measuring profiler performance
                                                                      • 00:30:30 – Memory leak detection
                                                                      • 00:34:31 – When should you run a profiler?
                                                                      • 00:37:27 – Considerations for measuring cloud performance
                                                                      • 00:39:12 – Working with Jupyter and Conda
                                                                      • 00:42:18 – Common issues and AI solutions
                                                                      • 00:45:50 – Using a profiler to learn a codebase
                                                                      • 00:50:48 – Examples of AI-powered optimizations
                                                                      • 00:55:50 – What are you excited about in the world of Python?
                                                                      • 00:58:30 – What do you want to learn next?
                                                                      • 01:01:48 – How can people follow your work online?
                                                                      • 01:02:56 – Thanks and goodbye
                                                                      • Show Links:

                                                                        • Emery Berger - Professor of Computer Science, UMass Amherst
                                                                        • Scalene: a high-performance, high-precision CPU, GPU, and memory profiler for Python with AI-powered optimization proposals
                                                                        • Hoard
                                                                        • Moore’s law - Wikipedia
                                                                        • Dennard scaling - Wikipedia
                                                                        • Scalene: A high-performance, high-precision CPU+GPU+memory profiler for Python - PyCon 2021 - YouTube
                                                                        • Python Performance Matters - Strange Loop 2022 - YouTube
                                                                        • Triangulating Python Performance Issues with Scalene
                                                                        • ChatDBG: Puts root causes analysis into your debugger, and suggests fixes
                                                                        • Commentator: Automatically writes comments and type annotations for your code
                                                                        • Pythoness: Automatically generates Python code from natural language description
                                                                        • Slipcover: Near Zero-Overhead Python Code Coverage
                                                                        • emeryberger - GitHub
                                                                        • Level up your Python skills with our expert-led courses:

                                                                          • Debugging in Python With pdb
                                                                          • Testing Your Code With pytest
                                                                          • What Does if name == "main" Mean in Python?
                                                                          • Support the podcast & join our community of Pythonistas

                                                                            1 hr 4 min
                                                                          • Making Each Line of Code Efficient & Python In Excel

                                                                            Are you writing efficient Python with as few lines of code as possible? Are you familiar with the many built-in language features that will simplify your code and make it more Pythonic? Christopher Trudeau is back on the show this week, bringing another batch of PyCoder’s Weekly articles and projects.

                                                                            We discuss a recent post from Bob Belderbos titled “Make Each Line Count, Keeping Things Simple in Python.” We provide many of our favorite Pythonic examples and the language mistakes that we’ve learned from. We also share multiple resources to add to your learning path.

                                                                            Microsoft has announced a limited beta program for Python in Excel. We dig into the current details, requirements, and potential use cases.

                                                                            We cover several other articles and projects from the Python community, including a group of announcements from the Python Software Foundation, a showcase of the Polars DataFrame library, immortal objects in Python, a code image generator Python project, an MS Paint clone in the terminal, and a Django ORM cheatsheet.

                                                                            Course Spotlight: Process Images Using the Pillow Library and Python

                                                                            In this video course, you’ll learn how to use the Python Pillow library to deal with images and perform image processing. You’ll also explore using NumPy for further processing, including to create animations.

                                                                            Topics:

                                                                            • 00:00:00 – Introduction
                                                                            • 00:02:10 – Python 3.12.0 release candidate 1 released
                                                                            • 00:02:53 – PSF Announces New PyPI Safety & Security Engineer
                                                                            • 00:03:44 – 2022 PSF Annual Report
                                                                            • 00:04:13 – Pydantic has been downloaded … 1 BILLION times!
                                                                            • 00:04:28 – Python Polars: A Lightning-Fast DataFrame Library
                                                                            • 00:12:26 – Introducing Immortal Objects for Python
                                                                            • 00:15:32 – Video Course Spotlight
                                                                            • 00:17:01 – Introducing Python in Excel
                                                                            • 00:26:34 – Build a Code Image Generator With Python
                                                                            • 00:31:49 – Make Each Line Count, Keeping Things Simple in Python
                                                                            • 00:44:08 – Textual-paint
                                                                            • 00:46:04 – Django ORM Cheatsheet
                                                                            • 00:49:48 – Thanks and goodbye
                                                                            • News:

                                                                              • Python Insider: Python 3.12.0 release candidate 1 released – “The second candidate (and the last planned release preview) is scheduled for Monday, 2023-09-04, while the official release of 3.12.0 is scheduled for Monday, 2023-10-02.”
                                                                              • Python 3.11.5, 3.10.13, 3.9.18, and 3.8.18 is now available - Python Insider
                                                                              • PSF Announces New PyPI Safety & Security Engineer
                                                                              • 2022 PSF Annual Report – The annual report from the Python Software Foundation details all the changes and events at the PSF last year.
                                                                              • Pydantic has been downloaded … 1 BILLION times! - Twitter
                                                                              • Show Links:

                                                                                • Python Polars: A Lightning-Fast DataFrame Library – Welcome to the world of Polars, a powerful DataFrame library for Python! In this showcase tutorial, you’ll get a hands-on introduction to Polars’ core features and see why this library is catching so much buzz.
                                                                                • Introducing Immortal Objects for Python – This article explains immortal objects (PEP 683), which are excluded from garbage collection. This causes performance and shared memory improvements for large architectures.
                                                                                • Introducing Python in Excel – Microsoft has announced that they’re embedding Python in Excel through a partnership with Anaconda. Read on for details.
                                                                                • Build a Code Image Generator With Python – In this step-by-step tutorial, you’ll build a code image generator that creates nice-looking images of your code snippets to share on social media. Your code image generator will be powered by the Flask web framework and include exciting packages like Pygments and Playwright.
                                                                                • Discussion:

                                                                                  • Make Each Line Count, Keeping Things Simple in Python – Simplicity is hard. This article talks briefly about how you approach coding while keeping things simple.
                                                                                  • itertools — Functions creating iterators for efficient looping — Python documentation
                                                                                  • More Itertools - more-itertools 10.1.0 documentation
                                                                                  • Python enumerate(): Simplify Loops That Need Counters – Real Python
                                                                                  • Python’s all(): Check Your Iterables for Truthiness – Real Python
                                                                                  • How to Use any() in Python – Real Python
                                                                                  • Projects:

                                                                                    • Textual-paint
                                                                                    • Django ORM Cheatsheet
                                                                                    • Additional Links:

                                                                                      • Release Python Polars 0.19.0 · pola-rs/polars
                                                                                      • Episode #140: Speeding Up Your DataFrames With Polars – The Real Python Podcast
                                                                                      • Episode #167: Exploring pandas 2.0 & Targets for Apache Arrow – The Real Python Podcast
                                                                                      • Introducing Python in Excel 😱 - YouTube
                                                                                      • Source code beautifier / syntax highlighter – convert code snippets to HTML « hilite.me
                                                                                      • Level up your Python skills with our expert-led courses:

                                                                                        • Editing Excel Spreadsheets in Python With openpyxl
                                                                                        • Building a Django User Management System
                                                                                        • Process Images Using the Pillow Library and Python
                                                                                        • Support the podcast & join our community of Pythonistas

                                                                                          51 min
                                                                                        • Finding the Right Coding Font for Programming in Python

                                                                                          What should you consider when picking a font for coding in Python? What characters and their respective glyphs should you check before making your decision? This week on the show, we talk with Real Python author and core team member Philipp Acsany about his recent article, Choosing the Best Coding Font for Programming.

                                                                                          Philipp shares some of his background as a font engineer and graphic designer. We talk about how font design tools were his introduction to programming in Python.

                                                                                          We discuss how the frequent use of underscores, at signs, parentheses, and asterisks in Python’s syntax should affect your decision. Philipp’s tutorial provides several resources to help you find a monospace font that fits your coding requirements.

                                                                                          Course Spotlight: Create a Python Wordle Clone With Rich

                                                                                          In this step-by-step project, you’ll build your own Wordle clone with Python. Your game will run in the terminal, and you’ll use Rich to ensure your word-guessing app looks good. Learn how to build a command-line application from scratch and then challenge your friends to a wordly competition!

                                                                                          Topics:

                                                                                          • 00:00:00 – Introduction
                                                                                          • 00:01:32 – Previous podcast appearances
                                                                                          • 00:03:18 – Programming-environment fussiness and monospace fonts
                                                                                          • 00:07:29 – Researching the tutorial and curating the collection
                                                                                          • 00:10:51 – Philipp’s background
                                                                                          • 00:18:07 – Differentiating characters
                                                                                          • 00:21:37 – Monospace, typewriters, and alignment
                                                                                          • 00:25:08 – Character sets to study
                                                                                          • 00:32:38 – The comma and the period
                                                                                          • 00:37:04 – Video Course Spotlight
                                                                                          • 00:38:30 – Python’s use in font development
                                                                                          • 00:42:48 – Different fonts for different languages
                                                                                          • 00:49:27 – Non-English comments
                                                                                          • 00:55:40 – Our font choices
                                                                                          • 00:59:00 – What are you excited about in the world of Python?
                                                                                          • 01:01:35 – What do you want to learn next?
                                                                                          • 01:03:41 – Where can people follow your work online?
                                                                                          • 01:04:38 – Thanks and goodbye
                                                                                          • Show Links:

                                                                                            • Choosing the Best Coding Font for Programming - Real Python
                                                                                            • #79 Font-Engineering und Schriftarten fürs Programmieren mit Philipp Acsany - Engineering Kiosk
                                                                                            • Episode #134: Building Python REST APIs With Flask & Structuring Pull Requests – The Real Python Podcast
                                                                                            • Input: Fonts for Code — Info
                                                                                            • Slashed zero - Wikipedia
                                                                                            • Papyrus - SNL - YouTube
                                                                                            • FontLab - Font editors and converters for Mac and Windows
                                                                                            • RoboFont
                                                                                            • Hedy - Textual programming made easy
                                                                                            • Typing Practice - keybr.com
                                                                                            • Monkeytype - A minimalistic, customizable typing test
                                                                                            • Homerow — Keyboard shortcuts for every button in macOS
                                                                                            • About Philipp Acsany – Real Python
                                                                                            • Philipp Acsany - LinkedIn
                                                                                            • Filip Axani (axani) - Chess Profile - Chess.com
                                                                                            • Level up your Python skills with our expert-led courses:

                                                                                              • Building Command Line Interfaces With argparse
                                                                                              • Building Python Project Documentation With MkDocs
                                                                                              • Create a Python Wordle Clone With Rich
                                                                                              • Support the podcast & join our community of Pythonistas

                                                                                                1 hr 6 min

                                                                                              About The Real Python Podcast

                                                                                              From the publisher's feed

                                                                                              A weekly Python podcast hosted by Christopher Bailey with interviews, coding tips, and conversation with guests from the Python community.

                                                                                              More shows like The Real Python Podcast

                                                                                              The Changelog: Software Development, Open Source by Changelog Media

                                                                                              The Changelog: Software Development, Open Source

                                                                                              290 Listeners

                                                                                              Software Engineering Daily by Software Engineering Daily

                                                                                              Software Engineering Daily

                                                                                              624 Listeners

                                                                                              Talk Python To Me by Michael Kennedy

                                                                                              Talk Python To Me

                                                                                              582 Listeners

                                                                                              Soft Skills Engineering by Jamison Dance and Dave Smith

                                                                                              Soft Skills Engineering

                                                                                              296 Listeners

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

                                                                                              Super Data Science: ML & AI Podcast with Jon Krohn

                                                                                              301 Listeners

                                                                                              Python Bytes by Michael Kennedy and Calvin Hendryx-Parker

                                                                                              Python Bytes

                                                                                              212 Listeners

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

                                                                                              Syntax - Tasty Web Development Treats

                                                                                              983 Listeners

                                                                                              Darknet Diaries by Jack Rhysider

                                                                                              Darknet Diaries

                                                                                              8,075 Listeners

                                                                                              Tech Brew Ride Home by Morning Brew

                                                                                              Tech Brew Ride Home

                                                                                              961 Listeners

                                                                                              Practical AI by Daniel Whitenack and Chris Benson

                                                                                              Practical AI

                                                                                              203 Listeners

                                                                                              AWS Podcast by Amazon Web Services

                                                                                              AWS Podcast

                                                                                              202 Listeners

                                                                                              Django Chat by William Vincent and Carlton Gibson

                                                                                              Django Chat

                                                                                              75 Listeners

                                                                                              Last Week in AI by Skynet Today

                                                                                              Last Week in AI

                                                                                              311 Listeners

                                                                                              Machine Learning Street Talk (MLST) by Machine Learning Street Talk (MLST)

                                                                                              Machine Learning Street Talk (MLST)

                                                                                              98 Listeners

                                                                                              The Pragmatic Engineer by Gergely Orosz

                                                                                              The Pragmatic Engineer

                                                                                              74 Listeners