#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.
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 →
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.
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 →
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.”
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
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
Events
Weekly Real Python Office Hours Q&A (Virtual)
October 4, 2023
REALPYTHON.COM
PyConZA 2023
October 5 to October 7, 2023
PYCON.ORG
Canberra Python Meetup
October 5, 2023
MEETUP.COM
Sydney Python User Group (SyPy)
October 5, 2023
SYPY.ORG
PyCon ES Canarias 2023
October 6 to October 9, 2023
PYCON.ORG
Django Day Copenhagen 2023
October 6 to October 7, 2023
DJANGODAY.DK
DjangoCongress JP 2023
October 7 to October 8, 2023
DJANGOCONGRESS.JP
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