
Ken Jin, a CPython core developer who works on the experimental JIT (just in time) compiler optimizer, says […]

Welcome to the Python community on the programming.dev Lemmy instance!
::: spoiler Past November 2023
October 2023
July 2023
Despite 30 months work, core developer says Python's JIT compiler is often slower than the interpreter
Ken Jin, a CPython core developer who works on the experimental JIT (just in time) compiler optimizer, says […]
Is there a good resource for understanding this language from a technical level?
I'm looking to learn about this language from a technical level, and any searches I do on today's search engines is just going to return guides to writing Python code, which is not what I want.
I understand how C++ works. For example, I know that virtual functions are stored as a trap table in an object's instance, and the function is wrapped around something that decodes that trap table from this
object instance.
I'm wondering if there's something that goes into that level of technicality with python. For example, I would want to know how function declarations (and re-declarations) work in python. Is the bytecode stored as a heap object which can be freed just as a regular heap object? Is it a map of strings within the current stack context? How does creating a thread handle it?
Opinions: Do you feel Python is a more object-oriented or procedural language?
This is a question for people more experienced with Python, but everybody feel free to answer if you feel like you can provide something decent to the discussion.
Also feel free to explain why you feel that way and your experiences with Python and the paradigms.
Python Tutorial: argparse advanced-help with additional options - thing.py
Example script: https://gist.github.com/thingsiplay/ae9a26322cd5830e52b036ab411afd1f
Hi all. I just wanted to share a way to handle a so called advanced help menu, where additional options are listed that are otherwise hidden with regular help. Hidden options should still function. This is just to have less clutter in normal view.
I've researched the web to see how people does it, and this is the way I like most so far. If you think this is problematic, please share your thoughts. This is for a commandline terminal application, that could also be automated through a script.
Before the ArgumentParser()
is called, we check the sys.argv
for the trigger option --advanced-help
. Depending on this we set a variable to true or false. Then with the setup of the parser after the ArgumenParser()
call, we add the --advanced-help
option to the list of regular help.
python
advanced_help = False for arg in sys.argv: if arg == "--": break
Russell Keith-Magee and Malcolm Smith were at the Language Summit this year to announce the status of mobile support for Python: “After many...
The final talk presented at the Language Summit was given by Hood Chatham, who maintains the Pyodide project and is trying to make fetch() ...
In memoriam: Michael Foord Larry Hastings led a moment of silence to remember former core developer Michael Foord, who passed away earlier t...
itter.sh: Ironic, text-only, SSH-based social networking for terminal lovers. No browser, no js, just eets.
I ran into this at local Python meetup yesterday. Made with Python and asyncssh. Fun project and also a joke as well as commentary about current state of the social media
Faster Python: Concurrency in async/await and threading
Want to write faster Python code? Discover the difference between `async/await` and `threading` and how concurrency works in Python with real-world examples.
The obvious alternative to using Discord is to write and host my own IRC server!
A deep dive into Meta's pyrefly and Astral's ty - two new Rust-based Python type checkers that both promise faster performance and better type inference.
did you moved from Pandas to Polars? why and how was your experience?
I'm finding myself with a couple of really big databases and my PC is throwing memory errors so I'm moving the project to polars and learning on the way in, and would like to read your experience in how you did it, what frustrate you and what you found good (I'm still getting used with the syntax, but I'm loving how fast it reads the databases)
A recap of the first year of work on enabling support for the free-threaded build of CPython in community packages.
Python's T-Strings Coming Soon and Other Python News for May 2025
Python 3.14 final alpha adds template strings, Django gets updates, plus a look ahead at major Python conferences and ecosystem developments.
Spy for changes with sys.monitoring
Python 3.12 introduced sys.monitoring, a new framework for “monitoring” tools like debuggers and profilers to hook into. It provides fine-grained control so tools can listen only to certain events on specific lines of code. The framework came from PEP 669, thanks to Mark Shannon of the Faster CPytho...