F-Strings in Py3.12, Profiling, Quirks, No-GIL, and More

#588 – AUGUST 1, 2023 VIEW IN BROWSER
The PyCoder’s Weekly Logo
Python 3.12 Preview: More Intuitive and Consistent F-Strings
In this tutorial, you’ll preview one of the upcoming features of Python 3.12, which introduces a new f-string syntax formalization and implementation. The new implementation lifts some restrictions and limitations that affect f-string literals in Python versions lower than 3.12.
REAL PYTHON

Python: Profile a Section of Code With cProfile
“When trying to improve a slow function or module, it’s always a good idea to profile it. Here’s a snippet for quickly profiling a section of code with Python’s cProfile module.”
ADAM JOHNSON

AI/ML and Your Tech Career: Get the Answers You Need With Interview Kickstart
Will AI replace tech jobs or will your job evolve? Is it too late to switch to a career in AI/ML? Attend Interview Kickstart’s free session with Co-founder Soham Mehta (ex-Engineering Head @Box) to explore your AI career path, gain insights from FAANG AI/ML engineers, and find answers. Register now →
INTERVIEW KICKSTARTsponsor

Python Quirks
A straight-out list of code snippets showing off some of the weird and unexpected behavior of your favorite language.
NATHAN

Steering Council Announces Optional GIL
PYTHON.ORG


Articles & Tutorials


Getting Started With Vector DBs in Python
Vector databases are all the rage today, with LLMs driving their popularity. This article breaks down nine different choices in details including how you connect to them in Python. It even points you at a few others in case you need more.
DANIEL DOUBROVKINE

Socket Programming in Python Part 1: Handling Connections
In this video course, you’ll learn how to build a socket server and client with Python. Along the way, you’ll get to know the main functions and methods in Python’s socket module, and you’ll implement a multi-connection server and client.
REAL PYTHON course

CTF 101 Workshop | Aug 3 @ 11am EDT | Register for Free
Did you know Snyk can be used to solve CTF challenges? Join Snyk’s CTF 101 Workshop to learn how, and get live support from CTF experts in the virtual hands-on lab as you solve your first challenge. Plus, (ISC)2 members will get 1 credit. Save your spot →
SNYK.IOsponsor

Leveraging Your Database With Postgres and Python
Are you getting the most out of your Postgres database? What features could you leverage to improve your Python project? This week on the show, Craig Kerstiens from Crunchy Data is here to discuss getting the most out of Postgres.
REAL PYTHON podcast

Using Rich Inspect to Interrogate Python Objects
You might know the Rich library as the terminal color tool, but it has a few utilities in it that are generally helpful in your code. This article shows you the inspect feature that gives you loads of info on an object.
WILL MCGUGAN

End to End Data Applications With SQL and Jupyter
This comprehensive course gives you a step-by-step introduction to building data applications using Python, SQL, and Jupyter notebooks. It even includes an introduction to visualization using plotly and others.
PLOOMBER

Flood Fill Mazes
This article shows you how to generate mazes using jupyter notebooks, numpy, matplotlib, and the scikit-image flood_fill function. It shows both a traditional square-cornered maze as well as a bendy labyrinth.
IAN WARD

Text Editor Data Structures
This article details the different ways a text editor represents text in memory and the advantages of each. Unfortunately, the examples aren’t in Python, but there is plenty CS stuff to dig into here.
CAMERON DACAMARA

Software Design by Example
This is CS 101 in a web friendly format. It covers the basic concepts of software design using examples, with a focus on self taught data scientists who want to bring their coding to the next level.
THIRD-BIT.COM

A Practical Use for &=
Can you already picture real use cases for this little Pythonic gem? Learn about the bitwise-and-equal operator and where it can be used.
PETE FISON • Shared by Pete Fison

EuroPython 2023
Python’s Developer in Residence has starting blogging again and this week he sums up his experience at EuroPython 2023.
ŁUKASZ LANGA

Working With AJAX in Django
This article looks at how to perform GET, POST, PUT, and DELETE AJAX requests in Django with the Fetch API and jQuery.
YACINE ROUIZI • Shared by Yacine Rouizi

Running Untrusted Python Code
Andrew wanted to play with some untrusted Python. Read how he used seccomp and setrlimit to build a Python sandbox.
ANDREW HEALEY


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 →

training-code: Fine-Tuning Causal Language Models
GITHUB.COM/PYGMALIONAI

django-pgcrypto-fields: Django Encryption With Pgcrypto
GITHUB.COM/INCUNA

Comprehensive Python Cheatsheet
GTO76.GITHUB.IO

plotoptix: Ray Tracing in Python Based on OptiX
GITHUB.COM/RND-TEAM-DEV

basaran: OSS Alternative to OpenAI Text Completion API
GITHUB.COM/HYPERONYM

📆🐍 Upcoming Python Events


Weekly Real Python Office Hours Q&A (Virtual)
August 2, 2023

Canberra Python Meetup
August 3, 2023

Melbourne Python Users Group, Australia
August 7, 2023

PiterPy Meetup
August 8, 2023

PyCon KR
August 11 to August 14, 2023

Django Girls Abuja
August 11 to August 13, 2023
Happy Pythoning!
Copyright © 2023 PyCoder’s Weekly, All rights reserved.
You are receiving this email because you opted in on our website at pycoders.com
Our mailing address: DevCademy Media Inc. · #720-999 West Broadway, Vancouver BC V5Z 1K5, Canada

Unsubscribe | Update Email Address

Older messages

Folium, 6502 Emulator, Pystack, and More

Tuesday, July 25, 2023

Creating Web Maps From Your Data With Python Folium #587 – JULY 25, 2023 VIEW IN BROWSER The PyCoder's Weekly Logo Creating Web Maps From Your Data With Python Folium You'll learn how to create

Mazes, Organizing Monoliths, Passing NumPy Arrays, and More

Tuesday, July 18, 2023

Mazes in Python Part 2: Storing and Solving #586 – JULY 18, 2023 VIEW IN BROWSER The PyCoder's Weekly Logo Mazes in Python Part 2: Storing and Solving In part two of this two-part project, you'

Python 3.12 Profiler, Netflix, Numba Vectorize, and More

Tuesday, July 11, 2023

Python 3.12 Preview: Support for the Linux Perf Profiler #585 – JULY 11, 2023 VIEW IN BROWSER The PyCoder's Weekly Logo Python 3.12 Preview: Support for the Linux Perf Profiler Python 3.12 will be

Fast range(), Alternate Interpreters, PSF Security Dev, and More

Tuesday, July 4, 2023

Why Are Membership Tests So Fast for `range()` in Python? #584 – JULY 4, 2023 VIEW IN BROWSER The PyCoder's Weekly Logo Why Are Membership Tests So Fast for range() in Python? In Python, range() is

Search DSLs, CircuitPython, Debugging Kubernetes, and More

Tuesday, June 27, 2023

Building Search DSLs With Django #583 – JUNE 27, 2023 VIEW IN BROWSER The PyCoder's Weekly Logo Building Search DSLs With Django A Domain Specific Language is a small language for a particular

You Might Also Like

Import AI 399: 1,000 samples to make a reasoning model; DeepSeek proliferation; Apple's self-driving car simulator

Friday, February 14, 2025

What came before the golem? ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

Defining Your Paranoia Level: Navigating Change Without the Overkill

Friday, February 14, 2025

We've all been there: trying to learn something new, only to find our old habits holding us back. We discussed today how our gut feelings about solving problems can sometimes be our own worst enemy

5 ways AI can help with taxes 🪄

Friday, February 14, 2025

Remotely control an iPhone; 💸 50+ early Presidents' Day deals -- ZDNET ZDNET Tech Today - US February 10, 2025 5 ways AI can help you with your taxes (and what not to use it for) 5 ways AI can help

Recurring Automations + Secret Updates

Friday, February 14, 2025

Smarter automations, better templates, and hidden updates to explore 👀 ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

The First Provable AI-Proof Game: Introducing Butterfly Wings 4

Friday, February 14, 2025

Top Tech Content sent at Noon! Boost Your Article on HackerNoon for $159.99! Read this email in your browser How are you, @newsletterest1? undefined The Market Today #01 Instagram (Meta) 714.52 -0.32%

GCP Newsletter #437

Friday, February 14, 2025

Welcome to issue #437 February 10th, 2025 News BigQuery Cloud Marketplace Official Blog Partners BigQuery datasets now available on Google Cloud Marketplace - Google Cloud Marketplace now offers

Charted | The 1%'s Share of U.S. Wealth Over Time (1989-2024) 💰

Friday, February 14, 2025

Discover how the share of US wealth held by the top 1% has evolved from 1989 to 2024 in this infographic. View Online | Subscribe | Download Our App Download our app to see thousands of new charts from

The Great Social Media Diaspora & Tapestry is here

Friday, February 14, 2025

Apple introduces new app called 'Apple Invites', The Iconfactory launches Tapestry, beyond the traditional portfolio, and more in this week's issue of Creativerly. Creativerly The Great

Daily Coding Problem: Problem #1689 [Medium]

Friday, February 14, 2025

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Google. Given a linked list, sort it in O(n log n) time and constant space. For example,

📧 Stop Conflating CQRS and MediatR

Friday, February 14, 2025

​ Stop Conflating CQRS and MediatR Read on: m​y website / Read time: 4 minutes The .NET Weekly is brought to you by: Step right up to the Generative AI Use Cases Repository! See how MongoDB powers your