The Real Python Podcast

The Real Python Podcast

By Real PythonTechnology
Download on the App Store

The Real Python Podcast episodes

  • Building a Python Debugger & Preparing for NumPy 2.0

    How does a debugger work? What can you learn about Python by building one from scratch? Christopher Trudeau is back on the show this week, bringing another batch of PyCoder’s Weekly articles and projects.

    Christopher shares a two-part tutorial on building a debugger in Python? Creating a simple one requires less code than you might think.

    We also talk about an article from Itamar Turner-Trauring about how to prepare for the upcoming changes to NumPy. The new version is not backward compatible and will require some inspection of your project dependencies. Itamar includes advice, techniques, and tools for updating your code.

    We also share several other articles and projects from the Python community, including a couple of news items, a discussion about managing advice as a new developer, moving to Python as a former R developer, building a Markov chain to generate readable nonsense, optimizing fonts to individual glyphs on your website, and a project for working with units of measurement in Python.

    This week’s episode is brought to you by Posit Connect.

    Course Spotlight: Create a Tic-Tac-Toe Python Game Engine With an AI Player

    In this video course, you’ll create a universal game engine in Python for tic-tac-toe with two computer players, one of which will be an AI player using the powerful minimax algorithm. You’ll give your game library a text-based graphical interface and explore two front ends.

    Topics:

    • 00:00:00 – Introduction
    • 00:02:18 – DjangoCon Europe 2024 CFP Now Open
    • 00:02:38 – Python Insider: Python 3.13.0 alpha 3 is now available
    • 00:03:04 – NumPy 2 Is Coming: Preventing Breakage, Updating Your Code
    • 00:07:37 – Using a Markov Chain to Generate Readable Nonsense
    • 00:12:53 – Sponsor: Posit Connect
    • 00:13:43 – Python Rgonomics
    • 00:20:10 – Let’s Create a Python Debugger Together
    • 00:23:49 – Video Course Spotlight
    • 00:25:08 – Advice for New Devs Who’ve Read Other Advice Essays
    • 00:42:44 – Fontimize: Optimize Fonts to the Glyphs on Your Site
    • 00:44:57 – Pint: Units for Python
    • 00:46:55 – Thanks and Goodbye
    • News:

      • DjangoCon Europe 2024 CFP Now Open
      • Python Insider: Python 3.13.0 alpha 3 is now available
      • Show Links:

        • NumPy 2 Is Coming: Preventing Breakage, Updating Your Code – NumPy 2 is coming, and it’s backwards incompatible. Learn how to keep your code from breaking, and how to upgrade.
        • Using a Markov Chain to Generate Readable Nonsense – Describes a simple Markov chain algorithm to generate reasonable-sounding but utterly nonsensical text, and presents some example outputs as well as a Python implementation in only 20 lines of code.
        • Python Rgonomics – If you’re coming to Python from R, this article outlines some libraries that have an R-like feel, helping you make the transition to Pythonic workflows.
        • Let’s Create a Python Debugger Together – Ever wondered how a debugger works? Implementing a simple one requires less code than you might think. Read on to find out how.
        • Discussion:

          • Advice for New Devs Who’ve Read Other Advice Essays – After reading some programming advice posts, this author decided a lot of them concentrated on the wrong things. Here is his own take.
          • Associated Hacker News Discussion
          • Projects:

            • Fontimize: Optimize Fonts to the Glyphs on Your Site
            • Pint: Units for Python
            • Additional Links:

              • Let’s create a Python Debugger together: Part 2 - Mostly nerdless
              • “Making Hard Things Easy” by Julia Evans (Strange Loop 2023) - YouTube
              • Episode #71: Start Using a Debugger With Your Python Code – The Real Python Podcast
              • Debugging Rules! – Find out what’s wrong with anything, fast.
              • Level up your Python skills with our expert-led courses:

                • Debugging in Python With pdb
                • Using Python's assert to Debug and Test Your Code
                • Create a Tic-Tac-Toe Python Game Engine With an AI Player
                • Support the podcast & join our community of Pythonistas

                  48 min
                • Measuring Bias, Toxicity, and Truthfulness in LLMs With Python

                  How can you measure the quality of a large language model? What tools can measure bias, toxicity, and truthfulness levels in a model using Python? This week on the show, Jodie Burchell, developer advocate for data science at JetBrains, returns to discuss techniques and tools for evaluating LLMs With Python.

                  Jodie provides some background on large language models and how they can absorb vast amounts of information about the relationship between words using a type of neural network called a transformer. We discuss training datasets and the potential quality issues with crawling uncurated sources.

                  We dig into ways to measure levels of bias, toxicity, and hallucinations using Python. Jodie shares three benchmarking datasets and links to resources to get you started. We also discuss ways to augment models using agents or plugins, which can access search engine results or other authoritative sources.

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

                  Course Spotlight: Learn Text Classification With Python and Keras

                  In this course, you’ll learn about Python text classification with Keras, working your way from a bag-of-words model with logistic regression to more advanced methods, such as convolutional neural networks. You’ll see how you can use pretrained word embeddings, and you’ll squeeze more performance out of your model through hyperparameter optimization.

                  Topics:

                  • 00:00:00 – Introduction
                  • 00:02:19 – Testing characteristics of LLMs with Python
                  • 00:04:18 – Background on LLMs
                  • 00:08:35 – Training of models
                  • 00:14:23 – Uncurated sources of training
                  • 00:16:12 – Safeguards and prompt engineering
                  • 00:21:19 – TruthfulQA and creating a more strict prompt
                  • 00:23:20 – Information that is out of date
                  • 00:26:07 – WinoBias for evaluating gender stereotypes
                  • 00:28:30 – BOLD dataset for evaluating bias
                  • 00:30:28 – Sponsor: Intel
                  • 00:31:18 – Using Hugging Face to start testing with Python
                  • 00:35:25 – Using the transformers package
                  • 00:37:34 – Using langchain for proprietary models
                  • 00:43:04 – Putting the tools together and evaluating
                  • 00:47:19 – Video Course Spotlight
                  • 00:48:29 – Assessing toxicity
                  • 00:50:21 – Measuring bias
                  • 00:54:40 – Checking the hallucination rate
                  • 00:56:22 – LLM leaderboards
                  • 00:58:17 – What helped ChatGPT leap forward?
                  • 01:06:01 – Improvements of what is being crawled
                  • 01:07:32 – Revisiting agents and RAG
                  • 01:11:03 – ChatGPT plugins and Wolfram-Alpha
                  • 01:13:06 – How can people follow your work online?
                  • 01:14:33 – Thanks and goodbye
                  • Background Links:

                    • A Beginner’s Guide to Language Models - Built In
                    • ChatGPT - Explained! - YouTube
                    • Dataset Links:

                      • truthful_qa - Datasets at Hugging Face
                      • wino_bias - Datasets at Hugging Face
                      • bold - Datasets at Hugging Face
                      • Tutorials and Documentation for Python Packages:

                        • Evaluating Language Model Bias with 🤗 Evaluate
                        • Hugging Face - HF_bias_evaluation - Google Colab
                        • General Usage - Load a Dataset - Hugging Face
                        • What is Text Generation? - Hugging Face
                        • 🤗 Evaluate - Library Evaluating ML Models
                        • Python Quickstart - 🦜️🔗 Langchain
                        • Measurement Links:

                          • Toxicity - a Hugging Face Space by evaluate-measurement
                          • Regard - a Hugging Face Space by evaluate-measurement
                          • Open LLM Leaderboard - a Hugging Face Space
                          • Training Data for LLMs:

                            • Common Crawl - Open Repository of Web Crawl Data
                            • The Pile
                            • The RefinedWeb Dataset for Falcon LLM: Outperforming Curated Corpora
                            • Agents and Plugin Links:

                              • Transformers Agents - Hugging Face
                              • Agents - 🦜️🔗 Langchain
                              • ChatGPT Gets Its “Wolfram Superpowers”! - Stephen Wolfram
                              • Additional Links:

                                • Inside the AI Factory: The Humans that Make Tech Seem Human - The Verge
                                • Jodie Burchell - The JetBrains Blog
                                • Jodie Burchell’s Blog - Standard error
                                • Jodie Burchell 🇦🇺🇩🇪 (@t_redactyl) - Twitter
                                • Jodie Burchell 🇦🇺🇩🇪 (@[email protected]) - Fosstodon
                                • JetBrains: Essential tools for software developers and teams
                                • Level up your Python skills with our expert-led courses:

                                  • Learn Text Classification With Python and Keras
                                  • Data Cleaning With pandas and NumPy
                                  • Creating Web Maps From Your Data With Python Folium
                                  • Support the podcast & join our community of Pythonistas

                                    1 hr 16 min
                                  • Serializing Data With Python & Underscore Naming Conventions

                                    Do you need to transfer an extensive data collection for a science project? What’s the best way to send executable code over the wire for distributed processing? What are the different ways to serialize data in Python? Christopher Trudeau is back on the show this week, bringing another batch of PyCoder’s Weekly articles and projects.

                                    Christopher shares a tutorial by Real Python author Bartosz Zaczyński called “Serialize Your Data With Python.” This comprehensive guide moves beyond XML and JSON to explore multiple data formats and their potential use cases. It’s a deep dive into the topic and provides a thorough resource for future reference.

                                    We also discuss a Real Python tutorial about naming conventions in Python that use single and double underscores. The piece covers differentiating between public and non-public names in APIs, writing safe classes for subclassing purposes, and avoiding name clashes with keywords.

                                    We also share several other articles and projects from the Python community, including a couple of release announcements and news items, a discussion about never being taught how to construct quality software, building a small REPL in Python, using the key parameter in Python functions and methods, a framework for RESTful APIs using Flask and SQLAlchemy, and a Rust-based HTML sanitizer for your Python projects.

                                    Course Spotlight: Writing Beautiful Pythonic Code With PEP 8

                                    Learn how to write high-quality, readable code by using the Python style guidelines laid out in PEP 8. Following these guidelines helps you make a great impression when sharing your work with potential employers and collaborators. This course outlines the key guidelines laid out in PEP 8. It’s aimed at beginner to intermediate programmers.

                                    Topics:

                                    • 00:00:00 – Introduction
                                    • 00:02:47 – JIT Coming to Python 3.13
                                    • 00:03:13 – A copy-and-patch JIT compiler - Pull Request #113465
                                    • 00:03:54 – Django bugfix releases issued: 4.2.9 and 5.0.1
                                    • 00:04:24 – Single and Double Underscores in Python Names
                                    • 00:16:42 – Building a Small REPL in Python
                                    • 00:20:07 – The Key to the key Parameter in Python
                                    • 00:25:23 – Video Course Spotlight
                                    • 00:26:44 – Serialize Your Data With Python
                                    • 00:30:23 – You Are Never Taught How to Build Quality Software
                                    • 00:48:43 – flask-muck: RESTful APIs Using Flask and SQLAlchemy
                                    • 00:51:26 – nh3: Python binding to Ammonia HTML sanitizer Rust crate
                                    • 00:53:33 – Thanks and goodbye
                                    • News:

                                      • JIT Coming to Python 3.13 – Slides related to the upcoming JIT commit for Python 3.13. Note that GitHub paginates the slides if you don’t download them, so click the More Pages button to keep reading.
                                      • A copy-and-patch JIT compiler by brandtbucher - Pull Request #113465
                                      • Django bugfix releases issued: 4.2.9 and 5.0.1 - Weblog Django
                                      • Show Links:

                                        • Single and Double Underscores in Python Names – In this tutorial, you’ll learn a few Python naming conventions involving single and double underscores (_). You’ll learn how to use this character to differentiate between public and non-public names in APIs, write safe classes for subclassing purposes, avoid name clashes, and more.
                                        • Building a Small REPL in Python – Learn how to write your own REPL by building on top of the one that comes with Python. With a few lines of code, you can customize Python’s REPL environment as your own.
                                        • The Key to the key Parameter in Python – A parameter named key is present in several Python functions, such as sorted(). This article explores what it is and how to use it.
                                        • Serialize Your Data With Python – In this in-depth tutorial, you’ll explore the world of data serialization in Python. You’ll compare and use different data serialization formats, serialize Python objects and executable code, and handle HTTP message payloads.
                                        • Discussion:

                                          • You Are Never Taught How to Build Quality Software – Learning how to build quality software isn’t part of computer science education. How do we learn it?
                                          • Hacker News discussion about the article
                                          • Projects:

                                            • flask-muck: RESTful APIs Using Flask and SqlAlchemy
                                            • nh3: Python binding to Ammonia HTML sanitizer Rust crate
                                            • Additional Links:

                                              • PEP 8: The Style Guide for Python Code
                                              • Python’s Magic Methods: Leverage Their Power in Your Classes – Real Python
                                              • A Philosophy of Software Design Book - John Ousterhout
                                              • A Philosophy of Software Design - John Ousterhout - Talks at Google - YouTube
                                              • Episode #49: The Challenges of Developing Into a Python Professional – The Real Python Podcast
                                              • Django: Sanitize Incoming HTML Fragments With nh3 – Allowing users to input HTML in comments or blog posts is problematic and can lead to exploits on your site. For years, the Django community used django-bleach, but since its deprecation, Adam has been using nh3, a Rust-based HTML sanitizer.
                                              • nh3 · PyPI
                                              • Level up your Python skills with our expert-led courses:

                                                • Writing Beautiful Pythonic Code With PEP 8
                                                • Working With JSON in Python
                                                • Serializing Objects With the Python pickle Module
                                                • Support the podcast & join our community of Pythonistas

                                                  55 min
                                                • Exploring Python in Excel

                                                  Are you interested in using your Python skills within Excel? Would you like to share a data science project or visualization as a single Office file? This week on the show, we speak with Principal Architect John Lam and Sr. Cloud Developer Advocate Sarah Kaiser from Microsoft about Python in Excel.

                                                  John shares the multi-year journey of adding Python to Excel. He describes how the project moved beyond writing user functions in Python to something much more elaborate. He details assembling a team with diverse skills in interface design, languages, and security.

                                                  Sarah discusses the instant convenience of having familiar Python and pandas techniques at your fingertips inside Excel. We cover typical data science workflows and the potential of interactive visualizations within a spreadsheet. We also share multiple resources for you to learn more.

                                                  Note: Python in Excel is currently a preview accessible by joining the Microsoft 365 Insider Program and selecting the Beta Channel.

                                                  Course Spotlight: Data Cleaning With pandas and NumPy

                                                  In this video course, you’ll learn how to clean up messy data using pandas and NumPy. You’ll become equipped to deal with a range of problems, such as missing values, inconsistent formatting, malformed records, and nonsensical outliers.

                                                  Topics:

                                                  • 00:00:00 – Introduction
                                                  • 00:01:53 – Sr. Cloud Developer Advocate Sarah Kaiser
                                                  • 00:02:46 – Principal Architect John Lam
                                                  • 00:04:08 – What is Dev Div?
                                                  • 00:04:33 – Python data science inside Excel
                                                  • 00:09:05 – Designing features with a focus on sharing
                                                  • 00:14:28 – Moving between Excel and Python objects
                                                  • 00:18:20 – What libraries are imported by default?
                                                  • 00:23:11 – Sharing a workbook with others
                                                  • 00:26:12 – Recalculating data workflow
                                                  • 00:30:07 – Working in Jupyter Notebook vs Excel
                                                  • 00:33:03 – Creating a Python object
                                                  • 00:33:38 – Video Course Spotlight
                                                  • 00:35:02 – More history and project team
                                                  • 00:40:19 – Immediate wins of having Python in Excel
                                                  • 00:42:28 – Interactive visualizations
                                                  • 00:44:34 – Answering security concerns
                                                  • 00:49:17 – Limitations and potential
                                                  • 00:54:34 – Creating demo projects
                                                  • 01:00:25 – Resources to learn more
                                                  • 01:02:59 – What are you excited about in the world of Python?
                                                  • 01:10:41 – What do you want to learn next?
                                                  • 01:12:09 – How can people follow your work online?
                                                  • 01:13:26 – Thanks and goodbye
                                                  • Show Links:

                                                    • Python in Excel – Python to Excel - Microsoft 365
                                                    • Get started with Python in Excel - Microsoft Support
                                                    • Python in Excel DataFrames - Microsoft Support
                                                    • Open-source libraries and Python in Excel - Microsoft Support
                                                    • User guide and tutorial - seaborn 0.13.1 documentation
                                                    • Assessing and Restoring Reproducibility of Jupyter Notebooks - IEEE Conference Publication - IEEE Xplore
                                                    • Book of Python in Excel - John Lam’s Website
                                                    • GitHub - microsoft/python-in-excel - Python in Microsoft Excel
                                                    • Use Python in Excel to enhance your data science - Python Day - YouTube
                                                    • Introducing Python in Excel: The Best of Both Worlds for Data Analysis and Visualization - Microsoft Community Hub
                                                    • PEP 703 – Making the Global Interpreter Lock Optional in CPython - peps.python.org
                                                    • Dr. Sarah Kaiser (@[email protected]) - Fosstodon
                                                    • John Lam (@john_lam) - X
                                                    • Level up your Python skills with our expert-led courses:

                                                      • Histogram Plotting in Python: NumPy, Matplotlib, Pandas & Seaborn
                                                      • The pandas DataFrame: Working With Data Efficiently
                                                      • Data Cleaning With pandas and NumPy
                                                      • Support the podcast & join our community of Pythonistas

                                                        1 hr 15 min
                                                      • 2023 Real Python Tutorial & Video Course Wrap-Up

                                                        Three members of the Real Python team are joining us this week: Kate Finegan, Tappan Moore, and Philipp Acsany. We wanted to share a year-end wrap-up with tutorials, step-by-step projects, code conversations, and video courses that showcase what our team created this year.

                                                        Kate helps to shepherd articles through the multi-stage editing process. She and the rest of the team ensure these resources impart crucial Python knowledge and provide a thorough didactic experience. Kate was also instrumental in helping introduce a new group of tutorial authors to the Real Python editorial process and house style.

                                                        Philipp returns to the podcast after our conversation earlier this year, and it was great to talk to him about onboarding new video instructors. Tappan edits all our video courses and ensures that the sound, picture, and animations are just right. He also helped provide feedback to the new instructors on our video creation process.

                                                        We hope you enjoy this review! We look forward to bringing you another year full of great guests, articles, and topics.

                                                        Course Spotlight: Recursion in Python

                                                        A recursive function is one that calls itself. In this video course, you’ll see what recursion is, how it works in Python, and under what circumstances you should use it.

                                                        Topics:

                                                        • 00:00:00 – Introduction
                                                        • 00:02:50 – New Video Instructors
                                                        • 00:05:31 – New Tutorial Authors
                                                        • 00:07:37 – Shout-out to Aldren Santos
                                                        • 00:09:27 – Build a Wordle Clone With Python and Rich
                                                        • 00:11:37 – Python Classes: The Power of Object-Oriented Programming
                                                        • 00:13:43 – SOLID Principles: Improve Object-Oriented Design in Python
                                                        • 00:14:47 – Using the NumPy Random Number Generator
                                                        • 00:17:58 – Recursion in Python
                                                        • 00:19:44 – Filtering Iterables With Python
                                                        • 00:21:04 – Creating Web Maps From Your Data With Python Folium
                                                        • 00:24:51 – Video Course Spotlight
                                                        • 00:26:13 – Python Basics Exercises: Building Systems With Classes
                                                        • 00:31:00 – Real Python Quizzes
                                                        • 00:33:53 – Process Images Using the Pillow Library and Python
                                                        • 00:36:00 – How to Sort Unicode Strings Alphabetically in Python
                                                        • 00:38:36 – The Python Rich Package: Unleash the Power of Console Text
                                                        • 00:42:31 – Embeddings and Vector Databases With ChromaDB
                                                        • 00:46:41 – Advent of Code: Solving Puzzles With Python
                                                        • 00:51:07 – Thanks and goodbye
                                                        • Show Links:

                                                          • Build a Wordle Clone With Python and Rich – Step-by-Step Project
                                                          • Python Classes: The Power of Object-Oriented Programming – Tutorial
                                                          • SOLID Principles: Improve Object-Oriented Design in Python – Tutorial
                                                          • Using the NumPy Random Number Generator – Tutorial
                                                          • Recursion in Python – Video Course
                                                          • Filtering Iterables With Python – Video Course
                                                          • Creating Web Maps From Your Data With Python Folium – Video Course
                                                          • Python Basics Exercises: Building Systems With Classes – Video Course
                                                          • Process Images Using the Pillow Library and Python – Video Course
                                                          • How to Sort Unicode Strings Alphabetically in Python – Tutorial
                                                          • The Python Rich Package: Unleash the Power of Console Text – Showcase
                                                          • Embeddings and Vector Databases With ChromaDB – Tutorial
                                                          • Advent of Code: Solving Puzzles With Python – Code Conversation
                                                          • Additional Links:

                                                            • Create a Python Wordle Clone With Rich – Video Course
                                                            • Class Concepts: Object-Oriented Programming in Python – Video Course
                                                            • Inheritance and Internals: Object-Oriented Programming in Python – Video Course
                                                            • Design and Guidance: Object-Oriented Programming in Python – Video Course
                                                            • FTX Python code ‘allowed’ Alameda Research to spend deposits - The Register
                                                            • Recursion in Python: An Introduction – Tutorial
                                                            • Python’s filter(): Extract Values From Iterables – Tutorial
                                                            • Python Folium: Create Web Maps From Your Data – Step-by-Step Project
                                                            • Episode #12: Web Scraping in Python: Tools, Techniques, and Legality – The Real Python Podcast
                                                            • Python Basics: Building Systems With Classes – Video Course
                                                            • Image Processing With the Python Pillow Library – Tutorial
                                                            • Episode #80: Make Your Python App Interactive With a Text User Interface (TUI) – The Real Python Podcast
                                                            • Level up your Python skills with our expert-led courses:

                                                              • Recursion in Python
                                                              • Process Images Using the Pillow Library and Python
                                                              • Python Basics Exercises: Building Systems With Classes
                                                              • Support the podcast & join our community of Pythonistas

                                                                53 min
                                                              • PyCoder's Weekly 2023 Wrap Up

                                                                It’s been a fascinating year for the Python language and community. PyCoder’s Weekly included over 1,500 links to articles, blog posts, tutorials, and projects in 2023. Christopher Trudeau is back on the show this week to help wrap up everything by sharing some highlights and Python trends from across the year.

                                                                Christopher shares the top five links explored by PyCoder’s readers. We also dig into trends we noticed across all the articles and stories this year, including removing dead batteries from the standard library, continuing the effort to speed up Python, using Rust code in libraries, and moving away from microservices.

                                                                We hope you enjoy this review! We look forward to bringing you an upcoming year full of great Python news, articles, topics, and projects.

                                                                Course Spotlight: Python Basics: Building Systems With Classes

                                                                In this video course, you’ll learn how to work with classes to build complex systems in Python. By composing classes, inheriting from other classes, and overriding class behavior, you’ll harness the power of object-oriented programming (OOP).

                                                                Topics:

                                                                • 00:00:00 – Introduction
                                                                • 00:02:21 – Python 3.13.0 Alpha 2 Is Now Available
                                                                • 00:02:46 – Welcoming the Supporting Developer in Residence
                                                                • 00:03:25 – Django 5.0 Released
                                                                • 00:03:34 – Django Ninja 1.0 Released
                                                                • 00:04:11 – Top Five PyCoder Links
                                                                • 00:05:00 – Python 3.12: Cool New Features for You to Try
                                                                • 00:05:27 – Speeding Up Your Code When Multiple Cores Aren’t an Option
                                                                • 00:05:46 – Learning About Code Metrics in Python With Radon
                                                                • 00:06:07 – Python 3.12 Preview: More Intuitive and Consistent F-Strings
                                                                • 00:06:28 – Design and Guidance: Object-Oriented Programming in Python
                                                                • 00:07:49 – Python 3.12: What Didn’t Make the Headlines
                                                                • 00:11:34 – Python 3.13 Removes 20 Stdlib Modules
                                                                • 00:13:32 – Missing Batteries: Essential Libraries You’re Missing Out On
                                                                • 00:16:21 – More Batteries Please
                                                                • 00:19:19 – Three Python Trends in 2023
                                                                • 00:24:36 – Video Course Spotlight
                                                                • 00:26:23 – Mojo, a Superset of Python
                                                                • 00:27:54 – Why Mojo?
                                                                • 00:28:14 – Mojo SDK Released for Linux
                                                                • 00:28:19 – Mojo: Head-to-Head With Python and Numba
                                                                • 00:29:22 – How We Organize Our Very Large Python Monolith
                                                                • 00:34:11 – Python and Folium to Visualize My Outdoor Activities
                                                                • 00:37:13 – Thanks and goodbye
                                                                • News:

                                                                  • Python 3.13.0 Alpha 2 Is Now Available
                                                                  • Welcoming the Supporting Developer in Residence
                                                                  • Django 5.0 Released
                                                                  • Django Ninja 1.0 Released
                                                                  • Top Five PyCoder Links:

                                                                    • Python 3.12: Cool New Features for You to Try – In this tutorial, you’ll learn about the new features in Python 3.12. You’ll explore how the new release extends the better error messages and faster code execution found in the previous version, and you’ll try out the improvements to f-strings and type variable syntax.
                                                                    • 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.
                                                                    • Learning About Code Metrics in Python With Radon – Radon is a code metrics tool. This article introduces you to it and explains how you can improve your code based on its measurements.
                                                                    • Python 3.12 Preview: More Intuitive and Consistent F-Strings – In this tutorial, you’ll preview one of the upcoming features of Python 3.12, which introduces a new f-string syntax formalization and implementation. The new implementation lifts some restrictions and limitations that affect f-string literals in Python versions lower than 3.12.
                                                                    • Design and Guidance: Object-Oriented Programming in Python – In this video course, you’ll learn about the SOLID principles, which are five well-established standards for improving your object-oriented design in Python. By applying these principles, you can create object-oriented code that is more maintainable, extensible, scalable, and testable.
                                                                    • Topics and 2023 Trends:

                                                                      • Python 3.12: What Didn’t Make the Headlines – There’s been plenty of coverage about the changes in Python 3.12. This article highlights what fell through the cracks. It talks about performance, pathlib improvements, and a few other changes.
                                                                      • Python 3.13 Removes 20 Stdlib Modules – Core developers are busy working on PEP 594, removing dead batteries from Python 3.13. This long post in the discussion forum highlights what work has been completed so far.
                                                                      • Missing Batteries: Essential Libraries You’re Missing Out On – Even though Python’s standard library comes with batteries included, it’s still missing some essentials. This article covers libraries for debugging, testing, CLI, and more.
                                                                      • More Batteries Please – This brief opinion piece from Carlton Gibson states why he thinks we need more functionality in the Python standard library rather than less.
                                                                      • Three Python Trends in 2023 – An opinion piece on three trends likely to attract attention in the Python world in 2023: Python/Rust co-projects, web apps, and more typing. Read on for examples in each category.
                                                                      • Mojo, a Superset of Python – Mojo is a new programming language that’s a superset of Python. It aims to fix Python’s performance and deployment problems. Jeremy Howard - from fast.ai.
                                                                      • Why Mojo? – “A backstory and rationale for why we created the Mojo language.” Chris Lattner - from Modular.
                                                                      • Mojo SDK Released for Linux
                                                                      • 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.
                                                                      • How We Organize Our Very Large Python Monolith – Kraken Technologies is an environmental tech company that does a lot of Python development. One of their applications is a monolith with over 27,000 modules. This article outlines how they keep all of this organized and running.
                                                                      • Project:

                                                                        • Python and Folium to Visualize My Outdoor Activities – Embark on an expedition of exploration and mapping! Learn how to breathe life into your GPX files and create interactive maps using Python and Folium.
                                                                        • Python Folium: Create Web Maps From Your Data – Real Python
                                                                        • Creating Web Maps From Your Data With Python Folium – Real Python
                                                                        • Additional Links:

                                                                          • Sneaky REST APIs With Django Ninja – Real Python Video Course
                                                                          • Episode #175: Exploring the New Features of Python 3.12 – The Real Python Podcast
                                                                          • Python 3 Module of the Week - PyMOTW 3
                                                                          • Episode #171: Making Each Line of Code Efficient & Python In Excel – The Real Python Podcast
                                                                          • psf/requests: A simple, yet elegant, HTTP library.
                                                                          • htmx - high power tools for html
                                                                          • Level up your Python skills with our expert-led courses:

                                                                            • Python Basics: Building Systems With Classes
                                                                            • Creating Web Maps From Your Data With Python Folium
                                                                            • Python Basics Exercises: Building Systems With Classes
                                                                            • Support the podcast & join our community of Pythonistas

                                                                              39 min
                                                                            • Exploring Code Reviews in Python and Automating the Process

                                                                              What goes into a code review in Python? Is there a difference in how a large organization practices code review compared to a smaller one? What do you do if you’re a solo developer? This week on the show, Brendan Maginnis and Nick Thapen from Sourcery return to talk about code review and automated code assistance.

                                                                              Nick and Brendan discuss their personal experiences with code reviews. From working together at a large company to starting Sourcery as a pair of developers to growing a team, they’ve experienced how various organizations review code.

                                                                              We discuss the importance of keeping code reviews positive and maintaining developer momentum. Nick and Brendan share techniques for automating organizational code rules and retaining institutional developer knowledge.

                                                                              They’ve been busy developing new features for Sourcery, moving beyond the current refactoring features. Their team is leveraging LLMs to build an automated code assistant that can perform code reviews, write tests, and answer questions about your codebase. The goal is for it to act as a personalized computer pair programmer.

                                                                              Course Spotlight: Using the bpython Enhanced REPL

                                                                              In this video course, you’ll learn about bpython, an alternative Python REPL that brings code suggestions and many other IDE-like features to the terminal. Once you discover how much bpython can improve your productivity, you’ll never want to return to using the vanilla Python REPL again.

                                                                              Topics:

                                                                              • 00:00:00 – Introduction
                                                                              • 00:02:41 – Why discuss code reviewing?
                                                                              • 00:04:16 – What were your first code reviews like?
                                                                              • 00:06:31 – Developing positive techniques as a team
                                                                              • 00:14:07 – Time between reviews
                                                                              • 00:17:04 – Will the techniques vary based on the organization size?
                                                                              • 00:18:43 – Things to standardize and remove from code review
                                                                              • 00:20:06 – Video Course Spotlight
                                                                              • 00:22:06 – Creating a tool that goes beyond refactoring
                                                                              • 00:23:42 – Do newer models provide better context for code review?
                                                                              • 00:25:52 – Working toward an automated pair programmer
                                                                              • 00:33:42 – Creating rules for an organization’s code standards
                                                                              • 00:42:55 – Comparing completion tools with code assistance
                                                                              • 00:48:18 – Working on an existing codebase vs a new project
                                                                              • 00:52:11 – Current state of Sourcery
                                                                              • 00:56:19 – What are you excited about in the world of Python?
                                                                              • 01:00:12 – What do you want to learn next?
                                                                              • 01:03:41 – How can people follow your work online?
                                                                              • 01:05:17 – Thanks and goodbye
                                                                              • Show Links:

                                                                                • Sourcery 1000x Faster Code Review
                                                                                • Sourcery - GitHub Bot Install
                                                                                • Sourcery - VSCode Extension - Visual Studio Marketplace
                                                                                • Sourcery - IntelliJ IDEs Plugin
                                                                                • Episode #55: Getting Started With Refactoring Your Python Code – The Real Python Podcast
                                                                                • How to do a code review - eng-practices - Google GitHub
                                                                                • Generating Code without Generating Technical Debt?
                                                                                • Episode #117: Measuring Python Code Quality, Simplicity, and Maintainability – The Real Python Podcast
                                                                                • Writing Custom Rules - Sourcery Documentation
                                                                                • Nuitka the Python Compiler - Documentation
                                                                                • Episode #154: Targeting WebAssembly Platforms & Distilling a Minimum Viable Python – The Real Python Podcast
                                                                                • Rust Programming Language
                                                                                • Speedsolving the cube : easy-to-follow, step-by-step instructions for many popular 3-D puzzles in SearchWorks catalog
                                                                                • My Arcade Releases the Atari Gamestation Pro with 200+ Games
                                                                                • Level up your Python skills with our expert-led courses:

                                                                                  • Testing Your Code With pytest
                                                                                  • Using the bpython Enhanced REPL
                                                                                  • Python Basics Exercises: Strings and String Methods
                                                                                  • Support the podcast & join our community of Pythonistas

                                                                                    1 hr 7 min
                                                                                  • Building a Python JSON Parser & Discussing Ideas for PEPs

                                                                                    Have you thought of a way to improve the Python language? How do you share your idea with core developers and start a discussion in the Python community? Christopher Trudeau is back on the show this week, bringing another batch of PyCoder’s Weekly articles and projects.

                                                                                    We consider a couple of Python syntax and functional ideas posted to the discussions on python.org. The first idea is for simplifying the syntax of a function’s keyword arguments, and the second is for the ability to return a NamedTuple from a function. The threads reveal steps within the Python Enhancement Proposal (PEP) process and the goal of finding a sponsor.

                                                                                    Christopher covers a tutorial on building a JSON-like parser in Python. The project is a solid place to start if you want to learn about parsing and developing rules for recognizing syntax and extracting data.

                                                                                    We also share several other articles and projects from the Python community, including a couple of release announcements and news items, a step-by-step guide to building a hangman game for the command line in Python, the reasons why the Django admin is supposedly ugly and ways to customize it to differentiate admin environments, an explanation of confusing git terminology, a project to extract links from a remote HTML resource, and a regex crossword game.

                                                                                    Course Spotlight: Advent of Code: Solving Puzzles With Python

                                                                                    Advent of Code is an online advent calendar that shares new programming puzzles each day from December 1 to the 25. In this Code Conversation, you’ll learn why solving programming puzzles can be beneficial and how you can get started with Advent of Code using Python.

                                                                                    Topics:

                                                                                    • 00:00:00 – Introduction
                                                                                    • 00:02:46 – PyPI has completed its first security audit
                                                                                    • 00:03:55 – Python Developers Survey 2023
                                                                                    • 00:04:45 – Wagtail 5.2 (LTS) Released
                                                                                    • 00:05:02 – How many Python core devs use typing?
                                                                                    • 00:07:51 – Build a Hangman Game for the Command Line in Python
                                                                                    • 00:17:30 – Why Is the Django Admin “Ugly”?
                                                                                    • 00:20:37 – Customize the Django Admin to Differentiate Environments
                                                                                    • 00:22:48 – Confusing git Terminology
                                                                                    • 00:30:01 – Video Course Spotlight
                                                                                    • 00:31:31 – Let’s Make a Silly JSON-like Parser
                                                                                    • 00:34:31 – Idea: Return a NamedTuple
                                                                                    • 00:45:08 – Idea: Syntactic Sugar to Encourage Use of Named Arguments
                                                                                    • 00:50:31 – grablinks: Extract Links From a Remote HTML Resource
                                                                                    • 00:52:43 – Regex Crossword
                                                                                    • 00:55:46 – Thanks and goodbye
                                                                                    • News:

                                                                                      • PyPI has completed its first security audit - The Python Package Index
                                                                                      • Python Developers Survey 2023
                                                                                      • Wagtail 5.2 (LTS) Released
                                                                                      • How many Python core devs use typing? - Gram Publishing v2
                                                                                      • Show Links:

                                                                                        • Build a Hangman Game for the Command Line in Python – In this step-by-step project, you’ll learn how to write the game of hangman in Python for the command line. You’ll learn how to structure the game as a text-based interface (TUI) application.
                                                                                        • Why Is the Django Admin “Ugly”? – When Vince was talking with people at DjangoCon US, one question kept coming up: Why is the Django admin so “ugly”?
                                                                                        • Customize the Django Admin to Differentiate Environments – A quick post about changing the color scheme of the Django admin depending on what environment the code is deployed within. Although Django specific, this is a great idea—visually reminding your admins and developers whether they’re in dev, staging, or production.
                                                                                        • Confusing git Terminology – Julia is working on a doc that explains git and, in doing so, polled some people about what git terminology they found confusing. This post covers the most common responses and attempts to clear up the confusion.
                                                                                        • Let’s Make a Silly JSON-like Parser – This article goes into deep detail on how you would construct a JSON parser in Python. If you’re new to parsing, then this is a great place to start.
                                                                                        • Discussion:

                                                                                          • Idea: Return a NamedTuple
                                                                                          • Idea: Syntactic Sugar to Encourage Use of Named Arguments
                                                                                          • Projects:

                                                                                            • grablinks: Extract Links From a Remote HTML Resource
                                                                                            • Regex Crossword
                                                                                            • Regex Crossword Mobile
                                                                                            • Additional Links:

                                                                                              • Episode #2: Learn Python Skills While Creating Games – The Real Python Podcast
                                                                                              • Episode #179: Improving Your Git Developer Experience in Python – The Real Python Podcast
                                                                                              • Write Pythonic and Clean Code With namedtuple – Real Python
                                                                                              • Level up your Python skills with our expert-led courses:

                                                                                                • Everyday Project Packaging With pyproject.toml
                                                                                                • Writing Clean, Pythonic Code With namedtuple
                                                                                                • Advent of Code: Solving Puzzles With Python
                                                                                                • Support the podcast & join our community of Pythonistas

                                                                                                  57 min
                                                                                                • Computational Thinking & Learning Python During an AI Revolution

                                                                                                  Has the current growth of artificial intelligence (AI) systems made you wonder what the future holds for Python developers? What are the hidden benefits of learning to program in Python and practicing computational thinking? This week on the show, we speak with author Lawrence Gray about his upcoming book “Mastering Python: A Problem Solving Approach.”

                                                                                                  Lawrence shares how learning Python helped him through a dark and trying time. He developed lifelong skills that he wants to pass along through teaching and authoring a book.

                                                                                                  We discuss what you can do to prepare for a future where coding jobs are automated through AI. He shares ways that Python can help build the higher-order thinking skills required by future careers. We also talk about how Python can help with computational thinking and promote cognitive development.

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

                                                                                                  Course Spotlight: Looping With Python enumerate()

                                                                                                  Once you learn about for loops in Python, you know that using an index to access items in a sequence isn’t very Pythonic. So what do you do when you need that index value? In this course, you’ll learn all about Python’s built-in enumerate(), where it’s used, and how you can emulate its behavior.

                                                                                                  Topics:

                                                                                                  • 00:00:00 – Introduction
                                                                                                  • 00:02:29 – Learning Python and changing how you think
                                                                                                  • 00:05:07 – What is the goal of the book?
                                                                                                  • 00:05:59 – Discovering Python during a dark period
                                                                                                  • 00:10:32 – What is unique to Python that helped you?
                                                                                                  • 00:12:43 – How did you start teaching Python?
                                                                                                  • 00:14:40 – Teaching Python to art students
                                                                                                  • 00:18:52 – Sponsor: Site24x7.com
                                                                                                  • 00:19:48 – Why write about computational thinking?
                                                                                                  • 00:21:55 – Why learn Python now?
                                                                                                  • 00:25:18 – Multiple modalities for Python
                                                                                                  • 00:29:32 – Other optimistic thoughts on the future
                                                                                                  • 00:34:15 – Reskilling a workforce
                                                                                                  • 00:37:16 – What skills can be developed?
                                                                                                  • 00:41:13 – Video Course Spotlight
                                                                                                  • 00:42:40 – Bloom’s taxonomy
                                                                                                  • 00:48:00 – Sharing the positive impact of Python
                                                                                                  • 00:50:26 – What are you excited about in the world of Python?
                                                                                                  • 00:51:32 – What do you want to learn next?
                                                                                                  • 00:52:45 – How can people follow your work online?
                                                                                                  • 00:52:47 – Thanks and goodbye
                                                                                                  • Show Links:

                                                                                                    • The Future of Jobs Report 2023 - World Economic Forum
                                                                                                    • Mastering Python: Get Access to Chapter 1
                                                                                                    • Computational thinking - Wikipedia
                                                                                                    • Bloom’s taxonomy - Wikipedia
                                                                                                    • Probably Overthinking It – Data science, Bayesian Statistics, and other ideas
                                                                                                    • scikit-learn: machine learning in Python - documentation
                                                                                                    • Yellowbrick: Machine Learning Visualization - documentation
                                                                                                    • PyCon US 2024 - PyCon US 2024
                                                                                                    • Education Summit - PyCon US 2023
                                                                                                    • PyTorch - Get Started
                                                                                                    • Lawrence Gray Personal Site
                                                                                                    • Level up your Python skills with our expert-led courses:

                                                                                                      • How to Write Pythonic Loops
                                                                                                      • Looping With Python enumerate()
                                                                                                      • Using k-Nearest Neighbors (kNN) in Python
                                                                                                      • Support the podcast & join our community of Pythonistas

                                                                                                        55 min
                                                                                                      • Studying Python Software Architecture & Creating Lambda Expressions

                                                                                                        Have you moved through the fundamentals of Python, and are you now considering building a more extensive project or complete application? Where can you study the architecture of existing Python projects and learn best practices? Christopher Trudeau is back on the show this week, bringing another batch of PyCoder’s Weekly articles and projects.

                                                                                                        We discuss a set of resources that developers can study to learn how to structure projects. The collection was shared in a blog post titled “Great Resources a Beginner Might Not Find So Easily.” It includes a pair of books on the architecture of large software applications and another aimed at more modest projects.

                                                                                                        We consider when you should use lambda expressions in your Python code. These one-line expressions create anonymous functions. How do they differ from standard functions, and where is it appropriate to use them?

                                                                                                        We also share several other articles and projects from the Python community, including a couple of release announcements, an explanation of Python as a compiled language, a discussion covering the controversy about the recent Flask release, a project for writing less Selenium code, and a project to create ASCII art with Python.

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

                                                                                                        Course Spotlight: Design and Guidance: Object-Oriented Programming in Python

                                                                                                        In this video course, you’ll learn about the SOLID principles, which are five well-established standards for improving your object-oriented design in Python. By applying these principles, you can create object-oriented code that is more maintainable, extensible, scalable, and testable.

                                                                                                        Topics:

                                                                                                        • 00:00:00 – Introduction
                                                                                                        • 00:02:50 – PyCon US 2024 Call for Proposals
                                                                                                        • 00:03:18 – Django 5.0 Beta 1 Released
                                                                                                        • 00:03:29 – Django security releases issued: 4.2.7, 4.1.13, and 3.2.23
                                                                                                        • 00:03:51 – The Ruff Formatter: Python’s Fastest Formatter
                                                                                                        • 00:04:50 – What Are Lambda Expressions?
                                                                                                        • 00:12:01 – Sponsor: Site24x7.com
                                                                                                        • 00:12:56 – Python Is a Compiled Language
                                                                                                        • 00:16:01 – Great Resources a Beginner Might Not Find So Easily
                                                                                                        • 00:27:01 – Video Course Spotlight
                                                                                                        • 00:28:32 – We Have to Talk About Flask
                                                                                                        • 00:41:46 – selenium-python-helium: Write Less Selenium Code
                                                                                                        • 00:45:23 – pyfiglet: An implementation of figlet written in Python
                                                                                                        • 00:47:17 – Thanks and goodbye
                                                                                                        • News:

                                                                                                          • PyCon US 2024 Call for Proposals
                                                                                                          • Django 5.0 Beta 1 Released
                                                                                                          • Django security releases issued: 4.2.7, 4.1.13, and 3.2.23 | Weblog | Django
                                                                                                          • The Ruff Formatter: Python’s Fastest Formatter – You may have come across Ruff, a linter that’s been on the scene for about a year. Well, it recently added formatting to its features. This article shows you how, including the configuration option to allow single-quote style.
                                                                                                          • Show Links:

                                                                                                            • What Are Lambda Expressions? – This post teaches you what lambda expressions are and how they get used in Python. It shows several examples and also covers when to avoid lambda expressions.
                                                                                                            • Python Is a Compiled Language – Python is interpreted, but it interprets compiled code. This distinction can be confusing to students, and this instructor does a deep dive on where the line between the concepts sits.
                                                                                                            • Great Resources a Beginner Might Not Find So Easily – Are you having trouble making the modules work together in a larger project? Have you tried looking at popular projects as models, but did their size and scope put you off? Did you find it hard to see why they did what they did? Resources about this do exist, but they’re scattered all over…unless you know where to look.
                                                                                                            • We Have to Talk About Flask – The most recent release of Flask and Werkzeug have introduced backward incompatible changes that are affecting popular add-ons. Miguel writes about how this is a common occurrence and why it keeps happening.
                                                                                                            • Discussion:

                                                                                                              • Armin Ronacher on X: Flask today is a different framework than the one I have created
                                                                                                              • Some More To Talk About Flask - miguelgrinberg.com
                                                                                                              • We Have to Talk About Flask - Hacker News
                                                                                                              • Episode #18: Ten Years of Flask: Conversation With Creator Armin Ronacher - The Real Python Podcast
                                                                                                              • Projects:

                                                                                                                • selenium-python-helium: Write Less Selenium Code
                                                                                                                • pyfiglet: An implementation of figlet written in Python - PyPI
                                                                                                                • Additional Links:

                                                                                                                  • Lambdas - Expressions - Python 3.12.0 documentation
                                                                                                                  • How to Use Python Lambda Functions - Real Python
                                                                                                                  • The Architecture of Open Source Applications
                                                                                                                  • Episode #9: Leveling Up Your Python Literacy and Finding Python Projects to Study - The Real Python Podcast
                                                                                                                  • Episode #62: Selecting the Ideal Data Structure & Unravelling Python’s “pass” and “with” - The Real Python Podcast
                                                                                                                  • asciimatics - PyPI
                                                                                                                  • Level up your Python skills with our expert-led courses:

                                                                                                                    • Class Concepts: Object-Oriented Programming in Python
                                                                                                                    • Inheritance and Internals: Object-Oriented Programming in Python
                                                                                                                    • Design and Guidance: Object-Oriented Programming in Python
                                                                                                                    • Support the podcast & join our community of Pythonistas

                                                                                                                      49 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