PythonHub
2.49K subscribers
2.35K photos
49.9K links
News & links about Python programming.
https://pythonhub.dev/
Download Telegram
Rewriting pycparser with the help of an LLM

Eli describes how he used an LLM coding agent (Codex) to help rewrite the popular Python C parser pycparser, replacing its old PLY based parser with a hand-written recursive descent parser that passes the full test suite and is easier to maintain. He found the experience efficient and insightful, noting the agent did most of the heavy work in far less time than doing it manually while hi...

https://eli.thegreenplace.net/2026/rewriting-pycparser-with-the-help-of-an-llm/
Calling Lean Functions As Python Functions

Philip Zucker introduces leancall, a Python library designed to bridge the gap between Lean 4 and Python by allowing Lean functions to be called as native Python functions. He demonstrates its utility through practical examples like balancing a Cartpole in a reinforcement learning environment and building a ray tracer, highlighting Lean's performance benefits while leveraging Python's va...

https://www.philipzucker.com/leancall/
cysqlite - a new sqlite driver

Charles Leifer introduces cysqlite, a from scratch DB API compatible SQLite driver he revived after pysqlite3 became harder to maintain and less compelling long term. The main focus is sane transaction handling that matches SQLite’s default behavior, avoids Python sqlite3’s confusing autocommit and legacy modes, and provides a cleaner base for SQLite extensions and Peewee integration.

https://charlesleifer.com/blog/cysqlite---a-new-sqlite-driver/
You Could've Invented OpenClaw

This tutorial walks through rebuilding OpenClaw, the open source AI agent, from the ground up, starting with a 20 line Telegram bot and ending with a fully functional mini version in about 400 lines, so you can truly understand the architecture by building it yourself.

https://x.com/dabit3/status/2021387483364151451
Anthropic Performance Team Take-Home for Dummies

The article breaks down the Anthropic take-home interview into simple steps and clear examples, showing how to solve the prompt efficiently while explaining the reasoning behind each choice. It offers practical advice on common pitfalls, scoring criteria, time management, and how to structure your responses to perform well in the assessment.

https://www.ikot.blog/anthropic-take-home-for-dummies
Build wiki from codebases that automatically update itself

Markdown documentation with Mermaid diagrams from codebases that always stay fresh.

https://cocoindex.io/examples-v1/multi-codebase-summarization
1
Python: introducing icu4py, bindings to the Unicode ICU library

Adam Johnson announces icu4py, a new Python package that provides Python-friendly bindings to the ICU4C Unicode library, enabling locale-aware text boundary analysis and message formatting in Python. The post highlights how icu4py exposes ICU features like word/sentence breaking and plural-aware formatting, and discusses future potential for broader ICU support in Python.

https://adamj.eu/tech/2026/02/09/python-introducing-icu4py/