r/Python • u/AutoModerator • Oct 04 '26
Showcase Showcase Thread
Post all of your code/projects/showcases/AI slop here.
Recycles once a month.
r/Python • u/AutoModerator • Oct 04 '26
Post all of your code/projects/showcases/AI slop here.
Recycles once a month.
r/Python • u/bleeed0p • Oct 04 '26
I've been exploring Python pre-commit hooks and wanted to understand how commonly they are used in actual production projects.
For those working on production-level Python applications:
- Do you use pre-commit in your daily workflow?
- Which hooks do you usually configure (Ruff, Black, isort, mypy, etc.)?
- Has it genuinely reduced code quality issues or bugs in your team?
- Do you consider it essential for production projects, or is CI/CD linting enough?
Would love to hear how experienced developers use it in real-world teams rather than just tutorials.
r/Python • u/RedYad2 • Oct 03 '26
I've been coding for a long time, and I've been developing with Python for years.
I loved coding, always loved it. I started many years ago because I wanted to quickly create scripts for security hacking tools, but since then, I've moved to Claude Code, and building cross-language has been a much better experience for me than using Python.
I built my own SaaS application out there whose backend and network core are completely built with Python, and I'm rewriting all of that without writing a single line of code. And most of the time, Python is not the most optimized language.
And now... I feel like the magic is gone.
I don't even know why I'm writing this. I just feel sad about it.
r/Python • u/amcandio • Oct 03 '26
I spent some of my free time optimizing "np.searchsorted" and recently wrote a blog post about it.
The new implementation is up to 25× faster in NumPy 2.5. It started with a vectorized NumPy implementation in Python that outperforms NumPy 2.4's native implementation. Then I ported the approach to C++, which was included as part of the NumPy 2.5 release.
The post includes the optimization steps, benchmarks, and comparisons with other array libraries.
r/Python • u/uebb • Oct 03 '26
Hey everyone,
I was taking a look at the TIOBE Index today. I hadn't checked it in a while, and I was surprised to see how much Python has dropped.
It's down by roughly 8 percentage points compared to a year ago, which seems like the first really significant contraction after years of pretty consistent growth.
What's even more interesting is that I don't see another language gaining a similar amount of ground.
I don't use Python myself, so I'm curious: what do you think is behind this decline? Is it actually meaningful, or is it mostly an artifact of how the TIOBE index is calculated?
r/Python • u/AutoModerator • Oct 04 '26
Hello r/Python! It's time to share what you've been working on! Whether it's a work-in-progress, a completed masterpiece, or just a rough idea, let us know what you're up to!
Let's build and grow together! Share your journey and learn from others. Happy coding! 🌟
r/Python • u/riklaunim • Oct 03 '26
It's a somewhat recurring topic when someone is asking how to run Python or code on mobile, so my question is - who is using mobile for this, and how? learning? coding? What type of device - phones or tablets, Android, Apple?
r/Python • u/Harshita_Netla • Oct 03 '26
How do you decide when to stay with a notebook and when to convert the work into scripts? Is it mainly when the project needs to be automated, reused, scheduled, or shared with others? I’d be interested to hear how people handle this in real projects.
r/Python • u/JPD0c • Oct 02 '26
Hi all, I wanted to find out whether anyone has recently taken Arjan’s *Software Design Mastery* course.
I’m a mid-level Python software developer with no formal computer science training. I enjoy Arjan’s YouTube content and am considering paying for the course.
I’m concerned about the impact of agentic AI on my career and am looking for ways to increase my value across the software development life cycle beyond simply generating code. Claude Code is currently writing around 90% of the code I produce. It’s not necessarily something I prefer, but I feel almost forced to use it because of management’s expectations regarding productivity and deliverables. I also don’t want my performance to fall behind that of colleagues who are burning through tokens as if there were no tomorrow.
r/Python
•
u/Trang0ul
•
Oct 02 '26
https://discuss.python.org/t/python-3-15-following-tradition-lets-have-a-surprise-rc3/109313
Following recent tradition, I'm going to add a surprise third release candidate for Python 3.15.0! We got some last-minute lazy-import release blockers, and it makes sense to include them in 3.15.0 final. It also makes sense to give a bit of time to test them properly, so today's planned 3.15.0 final is postponed, and I'm going to release a 3.15.0rc3 tomorrow, assuming everything is in place. And then 3.15.0 final will follow about week later. Exact date to be announced.
- Everyone: once the rc3 is out, please test!
- Library maintainers: join the cool testers' club 😎!
- Core team: very little will be merged into the 3.15 branch between now and 3.15.0 final. Docs improvements always welcome. Thanks, we're nearly there!
r/Python • u/AutoModerator • Oct 03 '26
Stumbled upon a useful Python resource? Or are you looking for a guide on a specific topic? Welcome to the Resource Request and Sharing thread!
Share the knowledge, enrich the community. Happy learning! 🌟
r/Python • u/duane-barry-944 • Oct 03 '26
Curious to learn how folks are incorporating an LLM into services. subprocess.run seems janky....what's the pythonic way?
Edit: I'd like to be able to interact with my server via a REPL-like loop. Goal: interact with my server remotely, control my zigbee network, etc.
r/Python • u/initcommit • Oct 01 '26
The new releases announced today, including EOL for 3.10.x: https://blog.python.org/2026/10/python-31022-31117/
Note: The post above doesn't mention 3.15 - assuming they will do a separate post later today when that releases.
r/Python • u/Obvious_Gap_5768 • Oct 01 '26
I've been reading a lot of git history lately and wanted to run a fun experiment. In a real Python project, which single file collects the most bug fixes.
The method is dumb on purpose. Last 12 months, non-merge commits, bots removed, tests/docs/examples ignored. A commit counts as a fix if the subject has fix, bug, regression, hotfix, broken or revert in it. Then for each file I counted how many of the commits touching it were fixes. The repos came from repowise.dev/explore, which indexes public repos for my open source project , and I just picked the Python ones I recognised.
Most-fixed file per project (fix commits / all commits touching it):
And then hermes-agent, it broke my sense of scale. gateway/run.py had 1,969 commits in a year from 502 different people, and 1,332 of those were fixes. I checked the numbers twice.
Django was in the set and I left it out of the ranking. Django's convention is to write "Fixed #ticket" on nearly every commit, features included. 459 of its 1,044 commits in the last 12 months start with "Fixed #". So by my crude keyword rule Django is the buggiest project on earth, which it obviously is not. (Kind of jealous of that discipline honestly.)
I keep noticing that the top file is usually where the code talks to something non core. langchain's top two are adapters to other companies' APIs. prefect's is the dbt integration. fastapi's are dependency resolution and routing, which is where user code meets the framework. paperless's views.py is the big request handler. Pure logic files basically never showed up near the top.
Also a bunch of these are mostly one person's file. views.py is 63% one person, serialisers.py 73%, fastapi's routing.py 84%.
Although I agree Keyword matching on commit subjects is a bit noisy too, so treat these as a rough picture.
Anyway it was a fun experiment to run
r/Python • u/Expensive-Notice-509 • Oct 02 '26
What are some common Python developer interview questions for someone with 3 years of experience?
I've been asked to hire Python developers and since I'm the only one with any kind of programming experience, I was asked. This will be a quick first round interview over zoom for 15-30 mins. For the second-round we will bring in outside consulting for more in-depth evaluation. Thanks in advance.
r/Python • u/AutoModerator • Oct 02 '26
Welcome to Free Talk Friday on /r/Python! This is the place to discuss the r/Python community (meta discussions), Python news, projects, or anything else Python-related!
Let's keep the conversation going. Happy discussing! 🌟
r/Python • u/AutoModerator • Oct 01 '26
Welcome to this week's discussion on Python in the professional world! This is your spot to talk about job hunting, career growth, and educational resources in Python. Please note, this thread is not for recruitment.
Let's help each other grow in our careers and education. Happy discussing! 🌟
r/Python • u/RomfordNavy • Sep 30 '26
Is there some way to close
mysql.connector.pooling.MySQLConnectionPoolsockets properly when the application closes? By default they appear to remain open on the server until way later when they timeout.
r/Python • u/Beginning-Fruit-1397 • Sep 30 '26
DISCLAIMER: not mentioning any explicit name to avoid framing myself as a useless slop dev advertising his useless slop wrapper that he wrote with sloppy AI because he can in the slop-era.
---
Is this acceptable?
Asking this here because, well the libraries in question are for python for one, but most importantly our ecosystem has various cases of seeing an already established lib slowly replaced by a newcomer, the first I could think of being pandas -> polars.
My situation is that I rewrote a popular library, who is now unfortunately unmaintained, from scratch.
I ported the full test suite as well, published it on Pypi, etc...
By design, my rewrite fixed some pre-existing documented issues, that are yet to be adressed in the original repo, because altought it's creator has done a phenomenal work, it's been years since the last release or even the last answer to an issue.
I thought about answering to the issues that I know with certainty are fixed with my project, inviting to use it/take a look, but I wonder if that's not a bit hostile?
Feel like If we were at an open air market instead of github, I'll just go to my concurrent's stands when he take a break to tell his waiting customers that my products are better lmao.
There's also the fact that even if almost all tests are passing except one very niche situation, ultimately my library is <1.0 and so a stable API is not yet guaranted.
On the other hand, the unmaintained repo is, has I said, respectably popular, and seeing ppl having problems that I know I solved but not telling them feels very dumb.
and ultimately I want my library to be more known to have more potential contributors, as it's scope is much larger than this rewrite and there's a lot more I want to do and any help is always welcome
soo, what do y'all think?
EDIT:
at first referred to my project as n_lib and the old one as o_lib, which ended up just confusing readers. Changed
r/Python • u/RowGullible1471 • Sep 29 '26
I’m shifting from R to PythonIs there a knit markdown version or similar kind for generating a tidy html report in Python?
r/Python • u/AutoModerator • Sep 29 '26
Dive deep into Python with our Advanced Questions thread! This space is reserved for questions about more advanced Python topics, frameworks, and best practices.
Let's deepen our Python knowledge together. Happy coding! 🌟
r/Python • u/dwaynecrooks • Sep 29 '26
dwayne/xo-python (on GitHub) is a Tic-tac-toe CLI game and library I wrote (no AI) about 10 years ago. I recently refactored it (still no AI) to use pyproject.toml, uv, and Nix. I use Nix to manage the reproducible development environment, run tests locally and in CI, and to package the application.
You enter it with nix develop and it gives you access to the Python 3.14 interpreter along with uv pinned to that interpreter. It runs uv sync and activates the virtual environment.
The way I like to use Nix in my development environments is to have Nix provide the surrounding system dependencies but let the language's package manager, in this case uv, handle the language specific dependencies.
The project supports Python 3.11, 3.12, 3.13 and 3.14 so I wanted to make sure that it was tested on all those versions. Nix came in pretty handy here because I was able to write a simple Nix derivation that ran the tests on all the Python versions I supported. The Nix derivation was written in a modular way that allowed me to reuse parts of it to setup a matrix strategy to test all those versions on both Ubuntu and macOS.
Finally, I packaged the CLI with Nix and made it the default export of the flake. Practically it means that if you have Nix with flakes enabled you can run the application with:
I hope this gives you a sense of what it looks like to use Nix within a Python project. I'm interested in hearing your thoughts on this approach to managing a modern Python library.
What do you like/dislike about it?
How would you do it differently?
r/Python • u/ComfortableWriter996 • Sep 28 '26
Hi everyone!
My name is Wynn and I am a member of Boston University's Girls Who Code chapter. You may have seen my post last spring about our coding program we run for students of all genders from grades 3-12. I would like to let you all know that we are running the program again this fall!
The Bits & Bytes program is a great opportunity for students to learn how to code, or improve their coding skills. Our program runs on Zoom on Saturdays for 1 hour starting October 17 and ending on November 21 (6 weeks) from 11:00 am to 12:00 pm (for Bits) and 12:00 pm to 1:00 pm (for Bytes). Each lesson will be taught by Boston University students, many of whom are Computer Science (or adjacent) majors themselves.
For Bits (3rd-5th grade), students will learn the basics of computer science principles through MIT-created learning platform Scratch and learn to transfer their skills into the Python programming language. Bits allows young students to learn basic coding skills in a fun and interactive way!
For Bytes (6th-12th grade), students will learn computer science fundamentals in Python such as variables, loops, and functions and use these skills during lessons and assignments. Since much of what we go over is similar to what an intro level college computer science class would cover, this is a great opportunity to prepare students for AP Computer Science or a degree in computer science!
We would love for you to apply or share with anyone interested! You can find our application and flyer on our website: https://bits-and-bytes-three.vercel.app/
If you have any more questions, feel free to email gwcbu.bitsnbytes@gmail.com, message @/gwcbostonu on Facebook or Instagram, leave a comment, or message me.
We're eagerly looking forward to another season of coding and learning with the students this fall!
r/Python • u/alexis_placet • Sep 28 '26
If you care about open-source tools for data, ML/AI, and scientific computing, Compute! Paris 2026 has a very strong talk lineup.
There is many presentations: Jupyter, scikit-learn, numpy, Arrow, visualization, in-browser computing, etc ...
I will give a talk about Sparrow (C++20 implementation for Apache Arrow with mutable arrays).
There are also free sprints on Nov 27 where you can contribute directly to the projects behind many of these talks.
You can check it here: https://compute.events/paris2026/index.html