Python Trending Weekly
ISSUE 50

My Favorite Python 3.13 Feature!

2024-05-12 Season 2

TL;DR

A roundup of Python 3.13's best features — the new REPL and the JIT both delight; Asyncio gets rebuilt from scratch, and Harvard's CS50 is back for 2024.

Articles 12 Projects 11 Media 2
🦄

Articles & Tutorials

× 12
01 My Favorite Python 3.13 Feature treyhunner.com

Before Python 3.13 entered feature freeze, it added a brand new REPL, which the author says is his favorite feature in Python 3.13. The new REPL is truly impressive: colored prompts, automatic indentation on next line, tab auto-indents 4 spaces, exit and help no longer need parentheses, supports block-level history, supports pasting code blocks... These new features are exactly what I've been wanting, and they're finally coming! Unfortunately, it doesn't support Windows yet!

02 Python 3.13 New Features Overview iscinumpy.dev

Python 3.13 beta 1 has been released with quite a lot of changes. The article provides a simple overview: improved REPL, free-threading (GIL-free Python), JIT compiler, python -m random for generating random numbers, tier 3 support for iOS, and more. (Note: For all changes, see the official documentation What's New In Python 3.13)

03 How Python Asyncio Works: Building a Simplified Asyncio from Scratch jacobpadilla.com

The author uses generators, async and await keywords to gradually build from scratch, successfully simulating asyncio's event loop and task scheduling mechanism, which can deepen your understanding of asyncio's internal workings. (Note: Chinese translation of the article)

04 Friendly Python: Encapsulation and Reuse frostming.com

This is a friendly-titled but ruthless critique article, targeting Volcano Engine's TTS interface and SDK design. The author analyzes the code problems in detail, provides improvement suggestions and principles, and thoughtfully provides an improved 62-line version that far surpasses the original nearly 500-line version.

05 Python File Processing for Beginners - Building a Simple File Search Engine juejin.cn

The article collects lots of Python file operation knowledge and code snippets, covering basic and advanced file operations for filling knowledge gaps. It also demonstrates code for fuzzy searching files in a given directory.

06 Building a Connect Four Game with HTMX and Django photondesigner.com

A simple tutorial for developing a web game (Connect Four) using Django + HTMX. Learning programming through game projects should be quite effective.

07 Creating a Simple Calculator with wxPython pythonpapers.com

Calculators are great projects for practicing Python GUI programming. There are many similar tutorials online, but few explain each code segment as thoroughly as this one.

08 Common Mistakes Students Make When Learning Data Science austinhenley.com

What mistakes commonly occur when learning data science? This paper qualitatively analyzes over 500 samples, identifying these error categories: logical errors, semantic errors, suboptimal coding, and misunderstandings of language and environment.

09 100x Speedup with "Unsafe Python" for Numpy Code yosefk.com

"Unsafe Python" refers to techniques that may lead to security risks or memory safety issues. The author uses pygame and OpenCV for image scaling tasks, discovering significant performance differences caused by numpy array memory layout (strides), ultimately improving performance by optimizing memory access patterns.

10 Detailed Historical Evolution of Python Dictionaries discuss.python.org

This is a post on the Python Discuss forum where the author wants to organize the technical details and historical evolution of dictionaries, but discovers that dictionaries vary greatly across versions in slot numbers, expansion mechanisms, and initial sizes.

11 Lessons Learned from Reinventing Python Notebooks marimo.io

marimo is a notebook product developed by the author, competing with Jupyter notebook, already used by institutions like Stanford University and BlackRock. The article introduces its three design principles: reproducible, maintainable, multipurpose, why these designs were adopted, and several lessons learned during implementation.

12 Python Software Foundation News: Transparency Report for 2022 and 2023 Grant Programs pyfound.blogspot.com

PSF released a transparency report on its grant programs to the Python community for the past two years. Our weekly issue #30 shared an open letter from the Pan-African Python community questioning PSF's grant program. The report reveals various expenditures, trends, percentages, and particularly shares about several early grants in Africa.

🐿️

Projects & Resources

× 11
01 pywinassistant: Control Windows UI with Natural Language github.com

This is a Large Action Model that operates Windows systems using natural language. Currently supports all common win32api applications.

02 chinese-calendar: Determine if a Day is a Legal Holiday/Workday github.com

Determines whether a specific day in a year/month is a workday/holiday, supporting years 2004 to 2024. (Note: Another project with the same name chinese-calendar is a lunar/solar calendar conversion and query tool)

03 Oven: Explore Python PyPI Packages pyoven.org

Supports searching and viewing packages on PyPI, viewing pip/pdm/rye/poetry installation commands, and checking weekly download counts and trend charts.

Oven: Explore Python PyPI Packages
04 tetos: Unified Interface for Multiple TTS Services github.com

Uses a unified interface to connect different text-to-speech (TTS) service providers, supporting Edge-TTS, OpenAI TTS, Azure TTS, Google TTS, Volcano Engine, Baidu TTS, and Minimax TTS.

05 relax-py: Yet Another Python Web Framework github.com

Python web development framework based on Starlette + htmx + tailwindcss, featuring hot module replacement (HMR), path-function-based URL locators, and dependency injection.

06 Harvard University CS50 Online Course 2024 cs50.harvard.edu

Harvard's CS50 is an introductory computer science course with 11 weeks of curriculum, providing all learning resources for free and offering course certificates. This year's change introduces a ChatGPT-powered chatbot to help answer course-related questions.

Harvard University CS50 Online Course 2024
07 portr: Open-Source ngrok Alternative Designed for Teams github.com

Portr is a tunneling solution that exposes local http, tcp, and websocket connections to the internet. It uses SSH remote port forwarding to secure tunnel connections. (2K stars)

08 py-compress-compare: Comparative Analysis of zlib, LZ4, Brotli, and Zstandard github.com

This project compares four popular Python compression libraries (zlib, LZ4, Brotli, and Zstandard), measuring compression ratio, compression time, decompression time, and other metrics.

09 pyspread: Python-Developed Spreadsheet Supporting Python Code pyspread.gitlab.io

Excel developed in Python where cells support Python expressions, and each cell returns a Python object. Allows accessing Python modules from cells, including Numpy; supports exporting to CSV, SVG, PDF, and other formats.

pyspread interface
10 PgQueuer: PostgreSQL-Based Task Queue Library github.com

A minimalist Python task queue library using PostgreSQL's LISTEN/NOTIFY to manage task jobs, implementing reliable concurrent processing with pg's FOR UPDATE SKIP LOCKED.

11 What's the Most Practical Thing You've Done with AI? reddit.com

Besides image generation and simple Q&A, what useful things have you done with AI? This is a popular Reddit thread where you can see what projects others have developed to find inspiration for personal projects.

🐢

Podcasts & Videos

× 2
01 core.py Ep 10: Developers Discuss Python 3.13's REPL podcasters.spotify.com

Pablo Galindo and Łukasz Langa developed the new REPL in Python 3.13. They discuss the story of developing this feature in the podcast and share some recent CPython changes, like the new JIT and Python's iOS support.

02 The Python Show 40 - Open Source Development with Antonio Cuni pythonshow.com

This podcast episode features a contributor to open-source projects like PyScript, pdb++, pypy, HPy, and SPy, discussing topics related to participating in open-source development.

ESC
↑↓ select · ↵ open175 issues