Issue #649

Python 3.13, pdb, Django Project Ideas, and More

Oct. 1, 2024

Python 3.13, pdb, Django Project Ideas, and More
#649 – OCTOBER 1, 2024 VIEW IN BROWSER
The PyCoder’s Weekly Logo
Python 3.13: Cool New Features for You to Try
In this tutorial, you’ll learn about the new features in Python 3.13. You’ll take a tour of the new REPL and error messages and see how you can try out the experimental free threading and JIT versions of Python 3.13 yourself.
REAL PYTHON

Incremental GC and Pushing Back the 3.13.0 Release
Some last minute performance considerations are delaying the release of Python 3.13 with one of the features being backed out. The new target is next week.
PYTHON.ORG

Debug With pdb and breakpoint()
Python ships with a command-line based debugger called pdb. To set a breakpoint, you call the breakpoint() function in your code. This post introduces you to pdb and debugging from the command-line.
JUHA-MATTI SANTALA

Last Chance to be Part of Snyk’s DevSeccon 2024 Oct 8-9!
Don’t miss out on your chance to register for DevSecCon 2024! From the exciting lineup of 20+ sessions, here’s one that you can’t skip: Ali Diamond, from Hak5: “I’m A Software Engineer, and I Have to Make Bad Security Decisions—why?” Save your spot →
SNYK.IOsponsor

Django Project Ideas
Looking to experiment or build your portfolio? Discover creative Django project ideas for all skill levels, from beginner apps to advanced full-stack projects.
EVGENIA VERBINA

2025 DSF Board Nominations
DJANGO SOFTWARE FOUNDATION

Quiz: Using Python’s pip
REAL PYTHON

Quiz: Python Virtual Environments
REAL PYTHON


Articles & Tutorials


Python 3.13 Preview: A Modern REPL
In this tutorial, you’ll explore one of Python 3.13’s new features: a new and modern interactive interpreter, also known as a REPL.
REAL PYTHON

When Should You Upgrade to Python 3.13?
This post talks about the pros and cons of upgrading to Python 3.13 and why you might do it immediately or wait for the first patch release in December.
ITAMAR TURNER-TRAURING

Refactoring Python With Tree-Sitter & Jedi
Jack was toying around with a refactor where he wanted to replace a variable name across a large number of files. His usual tools of grep and sed weren’t sufficient, so he tried tree-sitter instead. Associated HN Discussion.
JACK EVANS

rerankers: A Lightweight Library to Unify Ranking Methods
Information retrieval often uses a two-stage pipeline, where the first stage does a quick pass and the second re-ranks the content. This post talks about re-ranking, the different methods out there, and introduces a Python library to help you out.
BENJAMIN CLAVIE

Counting Sheeps With Contracts in Python
A code contract is a way of specifying how your code is supposed to perform. They can be useful for tests and to generally reduce the number of bugs in your code. This article introduces you to the concept and the dbc library.
LÉO GERMOND

Paying Down Tech Debt: Further Learnings
Technical debt is the accumulation of design decisions that eventually slow teams down. This post talks about two ways to pay it down: using tech debt payments to get into the flow, and what you need before doing a big re-write.
GERGELY OROSZ

Asyncio gather() in the Background
The asyncio.gather() method works as the meeting point for multiple co-routines, but it doesn’t have to be a synchronous call. This post teaches you how to use .gather() in the background.
JASON BROWNLEE

Advanced Python import Techniques
The Python import system is as powerful as it is useful. In this in-depth video course, you’ll learn how to harness this power to improve the structure and maintainability of your code.
REAL PYTHON course

Mentors
Ryan just finished his second round mentoring with the Djangonaut.Space program. This post talks about both how you can help your mentor help you, and how to be a good mentor.
RYAN CHELEY

Customising Object Creation With __new__
The dunder method __new__ is used to customise object creation and is a core stepping stone in understanding metaprogramming in Python.
RODRIGO GIRÃO SERRÃO

Prompting a User for Input
This short post shows you how to prompt your users for input with Python’s built-in input() function.
TREY HUNNER

When and How to Start Coding With Kids
Talk Python interviews Anna-Lena Popkes and they talk about how and when to teach coding to children.
TALK PYTHON podcast


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 →

g1: Using Llama-3.1 to Create Reasoning Chains
GITHUB.COM/BKLIEGER-GROQ

DSPy: Framework for Programming Foundation Models
GITHUB.COM/STANFORDNLP

TikTokAutoUploader: Auto Upload and Schedule TikToks
GITHUB.COM/HAZIQ-EXE

tinystatus: Tiny Status Page Generated by a Python Script
GITHUB.COM/HARSXV

django-appointment: Manage Appointment Scheduling
GITHUB.COM/ADAMSPD

📆🐍 Upcoming Python Events


Weekly Real Python Office Hours Q&A (Virtual)
October 2, 2024

PyConZA 2024
October 3 to October 5, 2024

Canberra Python Meetup
October 3, 2024

Sydney Python User Group (SyPy)
October 3, 2024

PyCon ES 2024
October 4 to October 6, 2024

Django Day Copenhagen 2024
October 4 to October 5, 2024

PyCon Uganda 2024
October 9 to October 14, 2024

PyCon NL 2024
October 10 to October 11, 2024
Happy Pythoning!
Copyright © 2024 PyCoder’s Weekly, All rights reserved.