Issue #597

Special Python 3.12 Release Edition!

Oct. 3, 2023

Special Python 3.12 Release Edition!
#597 – OCTOBER 3, 2023 VIEW IN BROWSER
The PyCoder’s Weekly Logo
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.
REAL PYTHON

Python 3.12: Static Typing Improvements
In this tutorial, you’ll see the new static typing features in Python 3.12. You’ll learn about the new syntax for type variables, making generics simpler to define. You’ll also see how @override lets you model inheritance and how you use typed dictionaries to annotate variable keyword arguments.
REAL PYTHON

Write Code as if Failure Doesn’t Exist
Temporal is an open source programming model that can simplify your code, make your applications more reliable, and allow you to deliver more features, faster. Check out the Temporal Python SDK Developer’s Guide to learn more and get started →
TEMPORALsponsor

Python 3.12: Subinterpreters
In this tutorial, you’ll see one of the new features of Python 3.12 and a proposed change to Python 3.13, addressing how subinterpreters work in the CPython program. The changes are described in PEP 684 and PEP 554.
REAL PYTHON

Python 3.12.0 Released
PYTHON.ORG

Python Developers Survey 2022 Results
JETBRAINS.COM


Discussions


AMA for Python in Excel
Folks at Microsoft participated in an Ask-Me-Anything session on the new Python in Excel over Azure feature. See also the Slashdot post which has a good summary.
REDDIT

PEP 722 and PEP 723 User Study Discussion
User studies were conducted on on PEP 722 – Dependency specification for single-file scripts and PEP 723 – Embedding pyproject.toml in single-file scripts , this discussion summarizes the results.
PYTHON.ORG


Articles & Tutorials


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

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.
MAXIM SAPLIN

Host Your Web Application With Ease With Taipy Cloud
Taipy, the open-source Python web application builder, provides the most suitable cloud tool to host, deploy, and share your Taipy applications easily. In addition, this platform provides the ability to manage, store, and maintain the various states of your backend →
TAIPYsponsor

Exploring Wordle
Explores how to programmatically find eligible answers for a Wordle game using Python, based on some guess-score pairs. Works through various bugs and subtleties, showing how to infer tighter constraints and explain why words were rejected.
GEORGE REILLY • Shared by George Reilly

Most Copied StackOverflow Snippet Is Flawed!
“In a recent study titled Usage and Attribution of Stack Overflow Code Snippets in GitHub Projects, an answer I wrote almost a decade ago was found to be the most copied snippet on Stack Overflow. Ironically it happens to be buggy.”
ANDREAS LUNDBLAD

The Scientific-Python Development Guide
This article talks about the release of the “Scientific-Python Development Guide” which documents Python package development. It includes cookie-cutter templates and repo tools.
SCIENTIFIC-PYTHON.ORG • Shared by Henry Schreiner

3 IRL Use Cases for Python and HTMX
This blog post summarizes three recent uses where the author has applied HTMX to his websites, and how they simplified his process.
BITE CODE

Fighting With Python Type Hints
Miloslav wanted to properly type-hint a decorator. Turns out, it wasn’t the easiest thing to do. Read on for his solution.
MILOSLAV POJMAN

AB Testing 101
A comprehensive deep dive on AB Testing including the math behind knowing whether your tests are significant.
JONATHAN FULTON

In a Git Repository, Where Do Your Files Live?
Write some Python to explore the data objects Git uses to store your content.
JULIA EVANS


Projects & Code


Brought to you by Real Python for Teamssponsor
Online Python training created by a community of experts. Give your team the real-world Python skills they need to succeed →

Concourse Tools: Custom Resource Types for Concourse CI
GITHUB.COM/GCHQ • Shared by GCHQ

Baserow: OSS Airtable Alternative
GITLAB.COM/BASEROW

pyobd: Open Source Obd2 Auto Diagnostics Program
GITHUB.COM/BARRACUDA-FSH

upiano: A Piano in Your Terminal
GITHUB.COM/ELIASDORNELES

PyWa: Building Bots Using the WhatsApp Cloud API
GITHUB.COM/DAVID-LEV • Shared by David Lev

📆🐍 Upcoming Python Events


Weekly Real Python Office Hours Q&A (Virtual)
October 4, 2023

PyConZA 2023
October 5 to October 7, 2023

Canberra Python Meetup
October 5, 2023

Sydney Python User Group (SyPy)
October 5, 2023

PyCon ES Canarias 2023
October 6 to October 9, 2023

Django Day Copenhagen 2023
October 6 to October 7, 2023

DjangoCongress JP 2023
October 7 to October 8, 2023
Happy Pythoning!
Copyright © 2023 PyCoder’s Weekly, All rights reserved.