python

195 stories and discussions about python, aggregated from every source we track.

1.

Everyone is talking about Jev - here it is in 25 lines of Python.

674 points•bashbjorn•2 months ago•210 comments•
2.
267 points•torutofu•2 months ago•42 comments•
3.

A retro game engine for Python. Contribute to kitao/pyxel development by creating an account on GitHub.

95 points•kitao•about 2 months ago•8 comments•
5.

version 0.01 of mochi. laughable i know, but he's so cute! I've been building a little green...

48 points•mikachu•2 months ago•16 comments
6.

Sometimes you just have to let the agent cook. Mika vs. a multi-billion-dollar...

45 points•mikachu•about 2 months ago•8 comments
8.

write Python that’s faster than C by optimizing your code, adding standard type annotations, and using Mypyc.

32 points•carlana•over 4 years ago•6 comments
9.

mypy assisted error handling, exception mechanisms in other languages, fun with pattern matching and type variance

29 points•karlicoss•about 7 years ago•5 comments
12.

Run this in a terminal, then run it again under script(1): python3 -c 'import sys;...

25 points•kenielzep97•about 2 months ago•9 comments
13.

🔐 No funding. No team. No mentor. No enterprise lab. Just a 13-year-old developer, an HP...

23 points•akhourianmolkumar•about 2 months ago•11 comments
14.

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.

22 points•carlana•about 3 years ago•5 comments
15.

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…

22 points•ngoldbaum•over 10 years ago•9 comments
16.

David Hewitt shares a status update, first module, and potential acceptance criteria for the Rust for CPython project

21 points•blin•about 2 months ago•1 comment
17.
20 points•willmanning•about 3 years ago•0 comments
19.

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...

19 points•ngoldbaum•10 months ago•3 comments
24.

<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>

18 points•a5rocks•9 months ago•5 comments
25.
18 points•susam•about 5 years ago•2 comments
26.

<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>

17 points•gaborjbernat•6 months ago•4 comments
27.

Using seccomp and setrlimit to build a Python sandbox.

16 points•healeycodes•over 3 years ago•6 comments
29.

Hello 👋! So there I was, staring at Python's frozenset, feeling that specific special rage that...

15 points•wiseai•2 months ago•4 comments
30.
15 points•sethmlarson•over 3 years ago•0 comments
31.

Posted by Carlton Gibson on Aug. 3, 2022

15 points•pauloxnet•over 4 years ago•9 comments
32.

TimeLord: choose your random future. Contribute to frazerpearce/TimeLord development by creating an account on GitHub.

14 points•cceckman•about 2 months ago•4 comments
33.

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.

14 points•benhoyt•11 months ago•1 comment
34.

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:

14 points•l0b0•about 4 years ago•0 comments
35.

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.

13 points•smtahosin•about 2 months ago•4 comments
36.

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.

12 points•ubernostrum•about 1 year ago•1 comment
37.

Game Boy emulator written in Python. Contribute to Baekalfen/PyBoy development by creating an account on GitHub.

12 points•learnbyexample•over 4 years ago•0 comments
38.

<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>

12 points•vrthra•about 5 years ago•4 comments
39.

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…

12 points•Tazeg•over 6 years ago•0 comments
40.

The boss finishes their speech. Your players reach for their dice. This is where the music should...

11 points•s131ph•about 2 months ago•1 comment
41.

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.

11 points•remdore•2 months ago•1 comment
42.

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.

11 points•xbill•2 months ago•0 comments
44.

<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>

11 points•haxor•almost 12 years ago•0 comments
48.

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.

8 points•xbill•about 2 months ago•0 comments
49.

TL;DR: I've shipped 26+ projects by directing AI agents, and I still couldn't write a Python program...

8 points•earlgreyhot1701d•2 months ago•1 comment
51.

Wait, pypi and pypy are not the same thing?

8 points•bugsmith•over 3 years ago•11 comments
52.

A redis clone in Python 3 to disprove some falsehoods about performance. - boramalper/pydis

8 points•yumaikas•over 7 years ago•13 comments
53.
55.

<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>

8 points•kb•almost 13 years ago•7 comments
56.

Agent-first Python packages for editing Word documents, PowerPoint presentations, and Excel workbooks.

7 points•nvmdbljstm•about 2 months ago•0 comments•
57.

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.

7 points•remdore•2 months ago•2 comments
58.

Deficiencies in the startup time for Python, along with the collections.namedtuple() data stru [...]

7 points•calvin•about 9 years ago•0 comments
60.

Contribute to paper-instruments/paper-docx development by creating an account on GitHub.

6 points•i_rush_carriers•about 2 months ago•0 comments•

Related topics