Where should you use an ellipsis in Python? How does it behave as a placeholder in a script, project, or stub file? What are the next goals for the Faster CPython project? This week on the show, Christopher Trudeau is here, bringing another batch of PyCoder’s Weekly articles and projects.

We talk about a Real Python article that covers when you should use an ellipsis in Python. We discuss the similarities with the pass keyword and how it’s used for type hints within stub files.

Christopher shares resources covering the goals of the Faster CPython project. We’re on the cusp of the release of Python 3.11, but the project keeps moving forward as they look at ways to continue speeding up Python.

We share several other articles and projects from the Python community, including a news roundup, alternatives for hosting Python-based applications, ways to create custom Python strings, a discussion about aging programmers, a structural diff that understands syntax, and a project for refurbishing and modernizing Python codebases.

Course Spotlight: Providing Multiple Constructors in Your Python Classes

In this video course, you’ll learn how to provide multiple constructors in your Python classes. To this end, you’ll learn different techniques, such as checking argument types, using default argument values, writing class methods, and implementing single-dispatch methods.

Topics:

  • 00:00:00 – Introduction
  • 00:02:26 – Django security releases issued
  • 00:02:44 – PEP 698: Override Decorator for Static Typing
  • 00:03:37 – Heroku Alternatives for Python-Based Applications
  • 00:14:34 – Python 3.12 Goals: Faster-CPython Ideas Wiki
  • 00:20:29 – Sponsor: InfluxDB
  • 00:21:19 – When Do You Use an Ellipsis in Python?
  • 00:28:18 – Custom Python Strings: Inheriting From str vs UserString
  • 00:32:52 – Aging Programmer
  • 00:46:32 – Video Course Spotlight
  • 00:47:48 – difftastic: A Structural Diff That Understands Syntax
  • 00:50:44 – refurb: Refurbish and Modernize Python Codebases
  • 00:55:44 – Thanks and goodbye

News:

Show Links:

Discussion:

Projects:

Additional Links:

Level up your Python skills with our expert-led courses:

Support the podcast & join our community of Pythonistas