Python Trending Weekly
ISSUE 48

Python 3.14 Release Schedule

2024-04-27 Season 2

TL;DR

PEP 745 sets the Python 3.14 release schedule and py2wasm compiles Python to Wasm; Meta's Llama 3 open-sourcing steals the week.

Articles 12 Projects 11
🦄

Articles & Tutorials

× 12
01 Announcing py2wasm: A Python to Wasm Compiler wasmer.io

Wasmer is a fast and secure WebAssembly runtime. Their development team has launched py2wasm, allowing Python programs to be converted to WebAssembly, running 3x faster than baseline interpreters.

Announcing py2wasm: A Python to Wasm Compiler
02 Ruby vs Python: For Loops softwaredoug.com

Both Ruby and Python are leaders among scripting languages, with many differences between them. This article analyzes the deep design philosophy differences between the two languages through the seemingly small syntax point of for loops. (Note: This is an old article from 2021 that suddenly went viral this week. I happened to translate it in 2021, welcome to read the Chinese version Comparing Python and Ruby Programming Philosophy Through For Loops)

03 Python Gotcha: Strip Functions Remove More Than Expected andrewwegner.com

From the "Python Gotcha" series, this briefly introduces the unexpected behavior of these three string functions, which indeed goes against intuition. Python 3.9's removesuffix() and removeprefix() can correctly remove left and right strings.

04 Core Mechanisms of Inter-Process Communication Explained with Python goodyduru.github.io

This is a series of articles about IPC (Inter-Process Communication), introducing different mechanisms provided by Unix operating systems and demonstrating with Python code. Topics include named pipes, Unix domain sockets, Unix signals, message queues, shared memory, memory-mapped files, etc.

05 PEP 745 – Python 3.14 Release Schedule peps.python.org

Python 3.13 development work is nearing completion, with new feature integration freezing next month and planned release on October 1st this year. Python 3.14 development will officially begin on May 7th. The official release schedule for version 3.14 has been announced, with the final version expected to be released on October 1st next year. (Coincidentally both on our National Day!)

06 Time Complexities of Different Python Data Structures pythonmorsels.com

Time complexity is used to evaluate algorithm performance efficiency. As data scale increases, algorithms with lower time complexity are more efficient. The article introduces time complexities of various Python data structures, such as lists, queues, dictionaries, sets, counters, heaps/priority queues, sorted lists, etc.

07 Understanding Django from First Principles mostlypython.com

This is a series of articles, currently updated to 3 parts, planning to build a complete Django project starting from a single file. When newcomers encounter Django development, they only need two commands to start a complete new project, but this lacks understanding of Django. This series gradually adds files to help you master necessary knowledge.

08 Python Thread Pool Source Code Analysis and Related Issues juejin.cn

ThreadPoolExecutor is Python's official thread pool implementation. The article analyzes related source code implementation to understand thread pool architecture design, while exploring related issues like excessive memory usage caused by improper use.

09 How to Design and Implement Plugin Architecture in Python? mathieularose.com

We deal with browser plugins and IDE plugins all day long. So, do you want to know how to design a plugin system with Python? The author uses their open-source utt library as an example to introduce implementing a simple plugin system.

10 Brief Discussion on Exception Handling in Python, Go, and Rust juejin.cn

What are the exception handling approaches in Python, Go, and Rust? What are the pros and cons of their implementation solutions? The author's final conclusion is preferring Python's intuitive and simple handling approach. (Note: Our newsletter has featured three articles on this topic: Four Error Handling Methods in Programming Languages, Two Styles of Error Handling, Python Errors as Values: Comparing Go and Rust Usage Patterns)

11 Memory Management Design in mpmetrics blog.trends.tf

When programming in Python, you usually don't need to worry about how memory is allocated and reclaimed - it's all handled automatically. But in situations involving performance optimization, C language interaction, or processing large amounts of data, memory management can be an effective approach. The article introduces mpmetrics' memory management implementation, focusing on dynamic variable allocation based on shared memory.

12 Origins and Advantages of Semicolons in Programming Languages ntietz.com

Many programming languages use semicolons as statement terminators. The article attempts to explore the origins of this practice and discusses what advantages semicolons have over other symbols. (Note: Python is an exception, please check Why Doesn't Python Use Semicolons as Terminators?)

🎁Python Trending Weekly🎁 This newsletter has been running continuously for a year, with nearly 100,000 words of content updates. I've invested significant time and energy into this. For healthy and sustainable development, the newsletter will soon transition to a paid model. The newsletter's development depends on your support. Currently at the lowest discount price, welcome to subscribe to the Tech Column

🐿️

Projects & Resources

× 11
01 llama3: Official Repository for Meta Llama 3 github.com

Meta has open-sourced the latest generation Llama large model, including 8B and 70B parameter versions, supporting 8K long text, with enhanced performance, reasoning capabilities, and coding abilities. (17.7K stars)

02 llama3-Chinese-chat: Llama3 Chinese Repository with Various Aggregated Materials github.com

The repository collects various community and vendor fine-tuned, modified versions of interesting weights & training, inference, deployment tutorial videos & documents. (1.9K stars)

03 reader: Convert URLs to LLM-Friendly Text github.com

Provides very practical functionality - just put the URL for text extraction after "https://r.jina.ai/" to get Markdown text. Also supports JSON format, but currently in early testing version. (3.4K stars)

04 tasktiger: Redis-Based Python Task Queue github.com

A task queue library that by default forks a subprocess for each subtask, but also supports synchronous mode; supports task locks, task retries, flexible queuing, batch processing, scheduled tasks, etc. (1.4K stars)

05 utt: Simple Command-Line Time Tracker Written in Python github.com

Add, edit, and summarize your task time through command line, generating personal schedules and activity time statistics.

06 simone: Convert YouTube Videos to Articles for Publishing github.com

It can convert videos to blog articles and add video screenshots based on context, making it convenient for content creators to redistribute their content. Depends on FFmpeg for video processing and screenshots, Tesseract OCR engine for text recognition, OpenRouter for generating articles and keywords.

07 h11: Pure Python HTTP/1.1 Library github.com

A small HTTP/1.1 library implemented from scratch for building programs that use HTTP. Not a replacement for libraries like requests, but makes implementing similar things easier. (Note: h2: Pure Python Implementation of HTTP/2 Protocol Stack)

08 browser-hub: Browser Wrapper for Running Multiple Browser Instances github.com

It allows you to use different accounts simultaneously across multiple browser instances and open specified browsers based on different URL parameters.

09 lingua-py: Extremely Accurate Natural Language Detection Library github.com

It can detect natural languages used in short text or mixed-language text, providing significant help for language data preprocessing.

10 photo-similarity-search: Apple Silicon-Based Photo Similarity Web App github.com

Powerful photo similarity search engine utilizing CLIP (Contrastive Language-Image Pre-training) model to find visually similar images based on text descriptions. Only works with Apple Silicon MLX.

11 Windrecorder: Record Screen Content for Memory Search github.com

A Rewind alternative tool running on Windows platform that can search based on OCR text or screen descriptions, and browse activity summaries. Runs completely locally without requiring internet connection or uploading any data. (1.3K stars)

Windrecorder: Record Screen Content for Memory Search
ESC
↑↓ select · ↵ open175 issues