The Real Python Podcast

Discussing Mojo & Improving Python Object-Oriented Programming


Listen Later

Would you like to speed up your Python machine-learning code dramatically? What if you only had to change a few keywords and add a couple of type hints on portions of your code? This week on the show, Christopher Trudeau is here, bringing another batch of PyCoder’s Weekly articles and projects.

We discuss a new programming language named Mojo, which is a superset of Python. It aims to fix Python’s performance and deployment problems. The project has many interesting ideas and a leader who has helped to shape modern compiler technology.

We also share a pair of Real Python tutorials from Leodanis Pozo Ramos about object-oriented programming in Python. The first one is a deep dive into the creation of classes. It’s an excellent refresher for anyone looking to hone their OOP skills in Python.

The second tutorial covers the SOLID principles, which are five well-established standards for improving your object-oriented design. These principles guide you to create object-oriented code that is more maintainable, extensible, scalable, and testable.

We cover several other articles and projects from the Python community, including a news update, showing warnings when running Django, tracking the progress of your Python program, and a Markdown browser for your terminal.

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

Course Spotlight: Using k-Nearest Neighbors (kNN) in Python

In this video course, you’ll learn all about the k-nearest neighbors (kNN) algorithm in Python, including how to implement kNN from scratch. Once you understand how kNN works, you’ll use scikit-learn to facilitate your coding process.

Topics:

  • 00:00:00 – Introduction
  • 00:02:39 – PEP 713: Callable Modules
  • 00:04:22 – PEP 712: “Converter” Parameter for dataclasses.field
  • 00:06:49 – Python Classes: The Power of Object-Oriented Programming
  • 00:16:44 – Sponsor: Koyeb
  • 00:17:33 – SOLID Principles: Improve Object-Oriented Design in Python
  • 00:22:00 – Mojo, a Superset of Python
  • 00:34:31 – Mojo might be the biggest thing to happen in programming for decades
  • 00:41:48 – Mojo – a new programming language for AI developers
  • 00:44:03 – Video Course Spotlight
  • 00:45:23 – Have Python Show Warnings When Running Django
  • 00:47:52 – TQDM: Tracking the Progress of Your Python Program
  • 00:50:34 – frogmouth: A Markdown Browser for Your Terminal
  • 00:53:59 – Thanks and goodbye
  • News:

    • PEP 713: Callable Modules
    • PEP 712: “Converter” Parameter for dataclasses.field
    • Show Links:

      • Python Classes: The Power of Object-Oriented Programming – In this tutorial, you’ll learn how to create and use full-featured classes in your Python code. Classes provide a great way to solve complex programming problems by approaching them through models that represent real-world objects.
      • SOLID Principles: Improve Object-Oriented Design in Python – In this tutorial, 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.
      • Mojo, a Superset of PythonMojo is a new programming language, which is a superset of Python. It aims to fix Python’s performance and deployment problems.
      • Have Python Show Warnings When Running Django – How to show warnings when running Python, and Django, during local development. The easy, yet not well-known, way.
      • Discussion:

        • Mojo might be the biggest thing to happen in programming for decades - Hacker News
        • Mojo, a new programming language for AI developers - Hacker News
        • Projects:

          • TQDM: Tracking the Progress of Your Python Program
          • frogmouth: A Markdown Browser for Your Terminal
          • Additional Links:

            • Video - tqdm documentation
            • tqdm documentation
            • pipx
            • Episode #101: Tools for Setting Up Python on a New Machine – The Real Python Podcast
            • Level up your Python skills with our expert-led courses:

              • Using Jupyter Notebooks
              • Using k-Nearest Neighbors (kNN) in Python
              • Using Multiple Constructors in Your Python Classes
              • Support the podcast & join our community of Pythonistas

                ...more
                View all episodesView all episodes
                Download on the App Store

                The Real Python PodcastBy Real Python

                • 4.7
                • 4.7
                • 4.7
                • 4.7
                • 4.7

                4.7

                134 ratings


                More shows like The Real Python Podcast

                View all
                Hanselminutes with Scott Hanselman by Scott Hanselman

                Hanselminutes with Scott Hanselman

                377 Listeners

                Software Engineering Radio - the podcast for professional software developers by se-radio@computer.org

                Software Engineering Radio - the podcast for professional software developers

                265 Listeners

                The Changelog: Software Development, Open Source by Changelog Media

                The Changelog: Software Development, Open Source

                287 Listeners

                LINUX Unplugged by Jupiter Broadcasting

                LINUX Unplugged

                262 Listeners

                Thoughtworks Technology Podcast by Thoughtworks

                Thoughtworks Technology Podcast

                41 Listeners

                Talk Python To Me by Michael Kennedy

                Talk Python To Me

                585 Listeners

                Software Engineering Daily by Software Engineering Daily

                Software Engineering Daily

                628 Listeners

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

                Super Data Science: ML & AI Podcast with Jon Krohn

                295 Listeners

                Python Bytes by Michael Kennedy and Brian Okken

                Python Bytes

                213 Listeners

                Data Engineering Podcast by Tobias Macey

                Data Engineering Podcast

                140 Listeners

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

                Syntax - Tasty Web Development Treats

                987 Listeners

                CoRecursive: Coding Stories by Adam Gordon Bell - Software Developer

                CoRecursive: Coding Stories

                186 Listeners

                DataFramed by DataCamp

                DataFramed

                269 Listeners

                Practical AI by Practical AI LLC

                Practical AI

                190 Listeners

                The Stack Overflow Podcast by The Stack Overflow Podcast

                The Stack Overflow Podcast

                63 Listeners