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

Sunday Digest | Featuring 'The World’s 20 Largest Economies, by GDP (PPP)' 📊

Sunday, December 22, 2024

Every visualization published this week, in one place. Dec 22, 2024 | View Online | Subscribe | VC+ | Download Our App Hello, welcome to your Sunday Digest. This week, we visualized public debt by

Android Weekly #654 🤖

Sunday, December 22, 2024

View in web browser 654 December 22nd, 2024 Articles & Tutorials Sponsored Solving ANRs with OpenTelemetry While OpenTelemetry is the new observability standard, it lacks official support for many

😸 Our interview with Amjad Masad

Sunday, December 22, 2024

Welcome back, builders Product Hunt Sunday, Dec 22 The Roundup This newsletter was brought to you by AssemblyAI Welcome back, builders Happy Sunday! We've got a special edition of the Roundup this

C#537 Automating Santa's Workshop with NServiceBus

Sunday, December 22, 2024

Using event-driven architecture for effective gift delivery 🎄🎁 ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌

The Race for AI Reasoning is Challenging our Imagination

Sunday, December 22, 2024

New reasoning models from Google and OpenAI ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

ScienceDaily/Minimalist lamp/Avocado tip

Sunday, December 22, 2024

Recomendo - issue #442 ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

Laravel VS Code Extension, Laravel 11.36, Wirechat, and more! - №544

Sunday, December 22, 2024

Your Laravel week in review ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

Kotlin Weekly #438

Sunday, December 22, 2024

ISSUE #438 22nd of December 2024 Announcements klibs.io JetBrains has introduced the alpha version of klibs.io – a web service that speeds up and simplifies discovering KMP libraries that best meet

Weekend Reading — Happy "That's a January Problem" week

Saturday, December 21, 2024

Can Christmas season start a little earlier this year Tech Stuff Ramsey Nasser fuck it happened i am in a situation where i do actually need to reverse a linked list Atuin I just learned about Atuin

Daily Coding Problem: Problem #1644 [Easy]

Saturday, December 21, 2024

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by IBM. Given an integer, find the next permutation of it in absolute order. For example,