python
195 stories and discussions about python, aggregated from every source we track.
Everyone is talking about Jev - here it is in 25 lines of Python.
A retro game engine for Python. Contribute to kitao/pyxel development by creating an account on GitHub.
version 0.01 of mochi. laughable i know, but he's so cute! I've been building a little green...
Sometimes you just have to let the agent cook. Mika vs. a multi-billion-dollar...
write Python that’s faster than C by optimizing your code, adding standard type annotations, and using Mypyc.
mypy assisted error handling, exception mechanisms in other languages, fun with pattern matching and type variance
Run this in a terminal, then run it again under script(1): python3 -c 'import sys;...
🔐 No funding. No team. No mentor. No enterprise lab. Just a 13-year-old developer, an HP...
Describes a simple Markov chain algorithm to generate reasonable-sounding but utterly nonsensical text, and presents some example outputs as well as a Python implementation.
Part of my Python FAQ, which is doomed to never be finished. The short answer is: because it’s the actively-developed version of the language, and you should use it for the same reason you’d use 2.7 instead of 2.6. If…
David Hewitt shares a status update, first module, and potential acceptance criteria for the Rust for CPython project
We are pleased to announce the release of pandas 3.0.0, a major release from the pandas 2.x series. This release includes various new features, bug fixes, and performance improvements, as well as p...
<p>Discussion thread: <a href="https://discuss.python.org/t/pep-827-type-manipulation/106353" rel="ugc">https://discuss.python.org/t/pep-827-type-manipulation/106353</a></p>
<p>Just published my notes from this year's Python Typing Summit at PyCon US. If you've ever been curious what one of these is like from the inside: intersection types, constraint sets in ty, tensor shapes in Pyrefly, Guido on direction.</p>
Using seccomp and setrlimit to build a Python sandbox.
Hello 👋! So there I was, staring at Python's frozenset, feeling that specific special rage that...
Posted by Carlton Gibson on Aug. 3, 2022
TimeLord: choose your random future. Contribute to frazerpearce/TimeLord development by creating an account on GitHub.
Discusses some design choices used in Jubilant: Python subprocess.run to wrap a CLI tool, a code generator to convert Go structs to Python dataclasses, and the use of uv with a simple Makefile to run commands.
You have a Jupyter Notebook with pyproject.toml and poetry.lock files, and you want to productionise it? You’ll just need a Linux or macOS machine. This is the magic sauce:
Stop thinking of Python variables as boxes. This visual deep-dive reveals how Python really stores your data, manages memory, and cleans up after you. Packed with diagrams, code experiments, and aha moments.
Async Django is a huge technical achievement, but it has been quietly rejected by the community it was built for; most developers stick to simpler, proven solutions.
Game Boy emulator written in Python. Contribute to Baekalfen/PyBoy development by creating an account on GitHub.
<p>Kuroko is a dialect of Python with explicit variable declaration and block scoping, with a lightweight and easy-to-embed bytecode compiler and interpreter.</p> <p>Importantly, it avoids a few gotchas in Python such as default parameters, and scoping rules, but stays generally compatible with Python.</p> <p>(I am not the project dev.)</p>
i3 is a tiling window manager on Linux. It supports tiling, stacking, and tabbing layouts, which it handles dynamically.The advantage is that you no longer waste time organizing your windows with the mouse.With i3 the…
The boss finishes their speech. Your players reach for their dice. This is where the music should...
One bit flipped, six image formats, 400 trials each. Every corrupted PNG was refused by Pillow and libpng, yet Chromium painted half of each one correctly. JPEG rendered complete images in which 96% of pixels were the wrong colour.
Step by step: one Python MCP server with four read-only Apache Iceberg tools, pointed at Polaris, BigLake, OneLake, Glue, S3 Tables and Horizon by changing one environment variable. All four tools work on all six. What changes per catalog is the login, the storage package, and one Azure credential that takes 553 seconds.
<p>PyPy3 is getting close! Also interesting is <a href="http://morepypy.blogspot.com/2015/01/faster-more-memory-efficient-and-more.html" rel="ugc">why they switched to ordered dictionaries</a>.</p>
Step by step: timing the Rust and Python Iceberg REST clients on the same operations, on a local catalog and on BigLake and OneLake. Rust is 2x to 4x faster per call on the same machine, the two are even over the internet, and Python takes half a second longer to start on every catalog.
TL;DR: I've shipped 26+ projects by directing AI agents, and I still couldn't write a Python program...
Wait, pypi and pypy are not the same thing?
A redis clone in Python 3 to disprove some falsehoods about performance. - boramalper/pydis
<p>Wondering what can be done to stop this from happening? Or, companies have boards that help the transition from small to large company, open source projects have no such thing.</p>
Agent-first Python packages for editing Word documents, PowerPoint presentations, and Excel workbooks.
Everyone repeats that QR codes survive 30% damage. I measured it: a solid patch over 15% still scanned 99 times in 100, scattered speckle killed every level by 5%, and half a timing row - 0.7% of the modules - was fatal.
Deficiencies in the startup time for Python, along with the collections.namedtuple() data stru [...]
Contribute to paper-instruments/paper-docx development by creating an account on GitHub.