Issue #684: NumPy Type Hints, LEGB, Pyrefly vs ty, and More (June 3, 2025)

#684 – JUNE 3, 2025

NumPy Array Type Hints

Thanks to improvements in NumPy typing support, NumPy generic arrays can now type both shape and dtype, offering opportunities for improved static analysis and run-time validation.
CHRISTOPHER ARIZA • Shared by Christopher Ariza

The LEGB Rule & Understanding Python Scope

In this step-by-step video course, you’ll learn what scopes are, how they work, and how to use them effectively to avoid name collisions in your code.
REAL PYTHON course

Prevent Postgres Slowdowns on Python Apps with this Check List

Avoid performance regressions in your Python app by staying on top of Postgres maintenance. This monthly check list outlines what to monitor, how to catch slow queries early, and ways to ensure indexes, autovacuum, and I/O are performing as expected →
PGANALYZE sponsor

Pyrefly vs. ty: Comparing Python’s New Type Checkers

A deep dive on Python’s two newest, Rust-based type checkers. This post includes both performance and capability comparisons.
EDWARD LI

Python Release 3.14.0b2

PYTHON.ORG

PyBay 2025 Call for Proposals Due June 8

PYBAY.ORG

Discussions

Django Forum: Supporting t-strings

DJANGO SOFTWARE FOUNDATION

Ruff Users: What Rules Are Using and What Are You Ignoring?

REDDIT

Python Jobs

Sr. Software Developer (Python, Healthcare) (USA)

Prenosis

Senior Software Engineer – Quant Investment Platform (LA or Dallas) (Los Angeles, CA, USA)

Causeway Capital Management LLC

More Python Jobs >>>

Articles & Tutorials

Journey Into Real Python

Amanda has recently written her first article for Real Python and this post talks about her experience doing so. If you want to check out the article, it is on Nested Loops.
AMANDA ENE ADOYI

Ways to Optimize Your Code in Python

Learn four ways to optimize your Python project and improve performance, including choosing the right data structures, variable scopes, list comprehensions and generators, and how to leverage built-in libraries.
FEDERICO TROTTA • Shared by AppSignal

DumPy: NumPy Except It’s OK if You’re Dum

In a follow-up to the article I Don’t Like NumPy, this post proposes a way of writing code that looks like loops but use vector operations instead.
DYNOMIGHT.NET

How to Split Up a Django Monolith Without Microservices

Facing too much complexity in your Django application as a developer? This articles introduces django-queuebie, a synchronous message queue working with commands and events.
RONNY VEDRILLA • Shared by Ronny Vedrilla

Control Flow Structures in Python

Take control of your code with Python control flow structures. You’ll learn with real examples using loops, conditionals, try-except blocks, and pattern matching.
REAL PYTHON

Quiz: Control Flow Structures in Python

REAL PYTHON

Python pandas Ditches NumPy for Speedier PyArrow

Pandas 3.0 will significantly boost performance by replacing NumPy with PyArrow as its default engine, enabling faster loading and reading of columnar data.
JOAB JACKSON

Writing Portable DataFrame Code for Lazy Execution

Learn one simple concept, and you can rid your code of row-ordering assumptions – it will then work seamlessly across eager and lazy DataFrames
MARCO GORELLI • Shared by Marco Gorelli

Marimo: A Reactive, Reproducible Notebook

Discover how marimo notebook simplifies coding with reactive updates, UI elements, and sandboxing for safe, sharable notebooks.
REAL PYTHON

Quiz: Marimo: A Reactive, Reproducible Notebook

REAL PYTHON

Another Great PyCon

A post about the highlights of PyCon US 2025 from one of the volunteers.
GEORGI KER

Pointblank: Data Validation for DataFrames and DBs

POSIT-DEV.GITHUB.IO • Shared by Richard Iannone

Projects & Code

skylos: Detect Dead Code

GITHUB.COM/DURIANTACO

samps: Serial Port I/O Access

GITHUB.COM/MICHEALROBERTS

whatsonpypi: Check PyPI From the Command Line

GITHUB.COM/VISESHRP • Shared by visesh prasad

mutmut: Mutation Testing System

GITHUB.COM/BOXED

Events

Python Norte 2025

June 4 to June 7, 2025
PYTHONNORTE.ORG

Weekly Real Python Office Hours Q&A (Virtual)

June 4, 2025
REALPYTHON.COM

Canberra Python Meetup

June 5, 2025
MEETUP.COM

Sydney Python User Group (SyPy)

June 5, 2025
SYPY.ORG

Django User Group Berlin

June 5, 2025
MEETUP.COM

AfroPython Conf 2025

June 7 to June 8, 2025
AFROPYTHONCONF.ORG

Django Girls Beira #1

June 7 to June 8, 2025
DJANGOGIRLS.ORG

Happy Pythoning!
This was PyCoder’s Weekly Issue #684.
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