Issue #597 (Oct. 3, 2023)

#597 – OCTOBER 3, 2023

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.

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.

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 →
TEMPORAL sponsor

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.

Python 3.12.0 Released


Python Developers Survey 2022 Results



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.

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.

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.

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.

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 →
TAIPY sponsor

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.”

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.

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.

AB Testing 101

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

In a Git Repository, Where Do Your Files Live?

Write some Python to explore the data objects Git uses to store your content.

Projects & Code

Concourse Tools: Custom Resource Types for Concourse CI


Baserow: OSS Airtable Alternative


pyobd: Open Source Obd2 Auto Diagnostics Program


upiano: A Piano in Your Terminal


PyWa: Building Bots Using the WhatsApp Cloud API

GITHUB.COM/DAVID-LEV • Shared by David Lev


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!
This was PyCoder’s Weekly Issue #597.
View in Browser »

[ Subscribe to 🐍 PyCoder’s Weekly 💌 – Get the best Python news, articles, and tutorials delivered to your inbox once a week >> Click here to learn more ]

Source:: PyCoder’s