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

Scoop: Tiger Global-backed Innovaccer in talks to raise $250M

Wednesday, May 1, 2024

Plus: An update on Google's layoffs and the social platform X didn't see coming View this email online in your browser By Christine Hall Wednesday, May 1, 2024 Welcome to TechCrunch PM. Today,

🖥️ Why I'm Never Going Back to a Windows PC — Tips Before You Buy a Smart Ring

Wednesday, May 1, 2024

Also: How to Clear the Moisture Detected Warning on Samsung Phones, and More How-To Geek Logo May 1, 2024 Did You Know A single 1 oz shot of espresso only has approximately 40 mg of caffeine, whereas a

Daily Coding Problem: Problem #1428 [Hard]

Wednesday, May 1, 2024

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Microsoft. Given an array of positive integers, divide the array into two subsets such

Top Tech Deals 👀 Samsung Gaming Monitor, Pixel Watch 2, MacBook Air, and More

Wednesday, May 1, 2024

Get a discounted M3 MacBook Air or expand your Xbox storage. How-To Geek Logo May 1, 2024 Top Tech Deals: Samsung Gaming Monitor, Pixel Watch 2, MacBook Air, and More Get a discounted M3 MacBook Air or

Infographic | Visualizing Global Gold Production in 2023 🏅

Wednesday, May 1, 2024

Gold production in 2023 was led by China, Australia, and Russia, with each outputting over 300 tonnes. View Online | Subscribe Presented by: Access European benchmarks with a trusted 25-year history

⚙️ GPT-5 may be releasing sooner than expected

Wednesday, May 1, 2024

Plus: Amazon rebrands AI branch ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌

Noonification: How to Create a CI/CD Pipeline Using GitHub and AWS EC2

Wednesday, May 1, 2024

Top Tech Content sent at Noon! Get Algolia: AI Search that understands How are you, @newsletterest1? 🪐 What's happening in tech today, May 1, 2024? The HackerNoon Newsletter brings the HackerNoon

Arc for Windows is better than Chrome

Wednesday, May 1, 2024

Adobe bug bounty; Rabbit's first R1 software update; Dream podcaster mic -- ZDNET ZDNET Tech Today - US May 1, 2024 placeholder Arc browser is now available for Windows and it's so much better

Is TikTok trying to get banned from the App Store early?

Wednesday, May 1, 2024

TikTok is offering some users a way to buy its in-app tipping tokens outside of Apple's App Store. View this email online in your browser By Alex Wilhelm Wednesday, May 1, 2024 Good morning, and

Get Compliant in 2024 - Download Ultimate PAM Policy Template Today

Wednesday, May 1, 2024

Privileged Access Management Policy Template What are your PAM policies for 2024? Get ready for the New Year Is your approach to Privileged Access Management as current and effective as it could be? In