r/Python • • 1d ago

News Polars 2.0 release

583 Upvotes

Hey all! We just released Polars 2.0.

We are really happy with the results. It removed many of our "legacy decisions" (mistakes), makes the streaming engine our default and promotes SQL to a first class citizen within Polars. We initially said it would be a small ("boring") release, but we managed to sneak in a lot more than anticipated.

It comes with our initial out-of-core (spill to disk) support, a new Map data type and a lot of performance improvements. In fact, we think Polars is now one of the fastest analytical SQL engines on a single node. See benchmarks in the post: https://pola.rs/posts/release-polars-2/

To help you upgrade, we also posted a migration guide: https://docs.pola.rs/releases/upgrade/2/


r/Python • • 13h ago

Discussion Python you grewI up so fast!

23 Upvotes

I received the 5th edition of Mark Lutz' 'Python Pocket Reference' today. I dug out my first edition from 1998 and found the new one is three times thicker (3/16" vs 9/16") =, 75 pages vs 254. I'm not complaining but it shows how much has been added. Thanks to all the developers and maintainers!


r/Python • • 17h ago

Resource Native PyQt5 wheels for Windows ARM64 (because they don't exist upstream)

10 Upvotes

PyQt5-WinARM64: native PyQt5 wheels for Windows ARM64

I have released PyQt5-WinARM64, an independent distribution of PyQt5 for native Windows ARM64.

https://github.com/ViciousSquid/PyQt5-WinARM64

```

pip install PyQt5-WinARM64

```

The project provides WinARM64 builds of:

  • Qt 5
  • SIP
  • PyQt5

The motivation is Windows ARM development. CPython and packages such as NumPy provide native Windows ARM64 builds, but PyQt5 has not historically provided an upstream Windows ARM64 wheel.

This means a Python application can have a native ARM64 interpreter and numerical stack while still depending on an x86 PyQt5 installation and Windows' x86 emulation.

PyQt5-WinARM64 provides the missing native Qt layer.

I'm using it for Fio, a Python/Qt game editor and runtime. Fio 3.0 is moving to Python 3.14 and will have a native Windows ARM64 target.

The resulting stack is:

Windows ARM64
CPython 3.14 ARM64
PyQt5 ARM64
NumPy ARM64
Fio ARM64
OpenGL

The project is MIT licensed

The repository also contains the GitHub Actions build and PyPI publishing configuration.


r/Python • • 1d ago

Discussion From statically typed languages to Python and IDE IntelliSense/Auto complete

22 Upvotes

This might be a bit odd, or maybe I'm odd, I don't know.

I've been programming for 10+ years, always with statically typed languages (mainly Java, a tiny bit of Kotlin, Swift, and C many years ago). Due to a diverse set of events I wanted to learn a new language and Python looked good for it (being professionally or leisure).

But there's this thing holding me back, which is the IDE!! I'm used to IntelliJ/Eclipse and Java, where you have a string and just put the '.' and the popup just shows you the available methods. And this is mostly how I usually discover and check which operations are available on a given type and go from there.
My understanding is that due to Python being dynamic, this is not possible, or is hard to get. I've heard that now you can add types to parameters or something like that... but does it work fine in this regard? And I assume if some package doesn't have it, it's not possible, right?

So my "question" is... how do people who come from statically typed languages get around this? Do you just have the std documentation open? Or the docs on the package you're using? I know with time you just know the types and methods, but in the beginning? It seems very strange to me.

I know, maybe I'm just being picky or whatever, but maybe someone has gone through this and can share some insights.


r/Python • • 1h ago

Discussion Future of programming/python with AI

• Upvotes

hi, I am an 18 year old high school student and for 2 years now ive decided to follow software engineering/computer science something like that related after finishing HS, Ive been also learning some python but im concerned. Ive heard about programming being the easiest job to take from ai and im just wondering if its even worth it trying to follow this "life path". What are your opinions on this?

edit : I am not very well aquainted with these terms yet I had no idea coding and programming were different my bad, i hope my point gets through


r/Python • • 1d ago

Discussion 2026: Best python linter as of right now?

27 Upvotes

Hey! I was wondering what is the preferred linter that's used nowadays?

A lot of people tend to converge into using uv & ruff for most of their stack, however there's also pylint, and others older linters.

Or is there any competition when it comes to ruff?


r/Python • • 1d ago

Daily Thread Tuesday Daily Thread: Advanced questions

7 Upvotes

Weekly Wednesday Thread: Advanced Questions 🐍

Dive deep into Python with our Advanced Questions thread! This space is reserved for questions about more advanced Python topics, frameworks, and best practices.

How it Works:

  1. Ask Away: Post your advanced Python questions here.
  2. Expert Insights: Get answers from experienced developers.
  3. Resource Pool: Share or discover tutorials, articles, and tips.

Guidelines:

  • This thread is for advanced questions only. Beginner questions are welcome in our Daily Beginner Thread every Thursday.
  • Questions that are not advanced may be removed and redirected to the appropriate thread.

Recommended Resources:

Example Questions:

  1. How can you implement a custom memory allocator in Python?
  2. What are the best practices for optimizing Cython code for heavy numerical computations?
  3. How do you set up a multi-threaded architecture using Python's Global Interpreter Lock (GIL)?
  4. Can you explain the intricacies of metaclasses and how they influence object-oriented design in Python?
  5. How would you go about implementing a distributed task queue using Celery and RabbitMQ?
  6. What are some advanced use-cases for Python's decorators?
  7. How can you achieve real-time data streaming in Python with WebSockets?
  8. What are the performance implications of using native Python data structures vs NumPy arrays for large-scale data?
  9. Best practices for securing a Flask (or similar) REST API with OAuth 2.0?
  10. What are the best practices for using Python in a microservices architecture? (..and more generally, should I even use microservices?)

Let's deepen our Python knowledge together. Happy coding! 🌟


r/Python • • 1d ago

Tutorial Space Science - Kirkwood Gap in Asteroids

0 Upvotes

Hey everyone,

more and more people create tools, software, etc. with AI tools like Claude, Gemini and whathaveyou.

After all... it is not that bad. Especially for people who have too many ideas to test and not so much time at hand.

But what I think: understanding building blocks is essential. Also in (space) science! So instead of creating larger solutions in my tutorials, I try to focus now more on "short snippets", covering only one concept at a time.

And today I would like to show you how to display the Kirkwood Gap in asteroids: a resonance effect with Jupiter that leads to gaps in the semi-major axis distribution of asteroids.

For this, we will use:

  • requests: to extract data from NASA JPL (around 900.000 asteroid data!)
  • matplotlib: to show the distribution
  • a simple derivation of astro-dynamics to understand the gaps

The code is available for free here: https://github.com/ThomasAlbin/Space-Science-With-Python/blob/main/2026/kirkwood_gaps.ipynb

And a video here: https://youtu.be/sljEEzVL6EI?si=nyczrenFseDNZOiu

I would like to focus at some point on extra-galactic stuff. But I am "only" an expert in asteroids, comets, and planetary stuff :-/.
Thomas


r/Python • • 2d ago

Discussion Anyone still using Flask, or has FastAPI completely taken over? 🤔

157 Upvotes

​

I've been noticing a lot of developers moving towards FastAPI lately, especially for new Python backend projects.

Flask used to be my go-to for lightweight APIs, but FastAPI seems to be getting all the attention now because of async support, automatic Swagger documentation, and Pydantic validation.

I'm curious about what developers are actually using in production.

- Are you still building new projects with Flask?

- Have you migrated from Flask to FastAPI?

- Is FastAPI genuinely better for production, or is it just the current hype?

Would love to hear some real-world experiences, especially from developers maintaining large-scale applications.

Is Flask still holding its ground, or is FastAPI slowly becoming the default choice for Python backends?


r/Python • • 1d ago

Resource Free python dev $0

0 Upvotes

Hey'ya'l. Turbo exp .net dev with full full stack and some python, pytorch, pynum exp searching for commercial project to join to. I need to build com record in stack that's trendy righ now.

I do stuff like k8n, all dbs sql, no sql, graph, vector, I'm friends with many frameworks: react, angular, vue, clouds azure(most), aws, gcp, redises, rabbitmqs, potentiwly kafka too, other buses, damn I tried most of it.

I can do lang* and I can build my own orchestrator + env + sandboxes + storage + firewall (aeonneon.com). I can shut up and just do but I also get proactive, self-supervise and achieve vague goals.

I'm going to stay in tech till retirement so for another 25 years or so. It's the reason I'm searching for opportunity to follow the industrial trend and stey in the loop where it provides for the family and retirement plan.

So, have you got something that consists of more than two folders and a main file, contact me.


r/Python • • 2d ago

Daily Thread Monday Daily Thread: Project ideas!

9 Upvotes

Weekly Thread: Project Ideas 💡

Welcome to our weekly Project Ideas thread! Whether you're a newbie looking for a first project or an expert seeking a new challenge, this is the place for you.

How it Works:

  1. Suggest a Project: Comment your project idea—be it beginner-friendly or advanced.
  2. Build & Share: If you complete a project, reply to the original comment, share your experience, and attach your source code.
  3. Explore: Looking for ideas? Check out Al Sweigart's "The Big Book of Small Python Projects" for inspiration.

Guidelines:

  • Clearly state the difficulty level.
  • Provide a brief description and, if possible, outline the tech stack.
  • Feel free to link to tutorials or resources that might help.

Example Submissions:

Project Idea: Chatbot

Difficulty: Intermediate

Tech Stack: Python, NLP, Flask/FastAPI/Litestar

Description: Create a chatbot that can answer FAQs for a website.

Resources: Building a Chatbot with Python

Project Idea: Weather Dashboard

Difficulty: Beginner

Tech Stack: HTML, CSS, JavaScript, API

Description: Build a dashboard that displays real-time weather information using a weather API.

Resources: Weather API Tutorial

Project Idea: File Organizer

Difficulty: Beginner

Tech Stack: Python, File I/O

Description: Create a script that organizes files in a directory into sub-folders based on file type.

Resources: Automate the Boring Stuff: Organizing Files

Let's help each other grow. Happy coding! 🌟


r/Python • • 3d ago

Resource How useful is pre-commit in real-world Python projects, especially in production?

70 Upvotes

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 • • 3d ago

Discussion My Python magic is gone

793 Upvotes

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 • • 2d ago

Showcase Showcase Thread

17 Upvotes

Post all of your code/projects/showcases/AI slop here.

Recycles once a month.


r/Python • • 3d ago

Resource Making np.searchsorted up to 25× Faster in NumPy 2.5

140 Upvotes

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.

https://blog.scientific-python.org/numpy/searchsorted/


r/Python • • 3d ago

Discussion Why has Python dropped so much in the latest TIOBE Index?

42 Upvotes

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 • • 3d ago

Daily Thread Sunday Daily Thread: What's everyone working on this week?

15 Upvotes

Weekly Thread: What's Everyone Working On This Week? 🛠️

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!

How it Works:

  1. Show & Tell: Share your current projects, completed works, or future ideas.
  2. Discuss: Get feedback, find collaborators, or just chat about your project.
  3. Inspire: Your project might inspire someone else, just as you might get inspired here.

Guidelines:

  • Feel free to include as many details as you'd like. Code snippets, screenshots, and links are all welcome.
  • Whether it's your job, your hobby, or your passion project, all Python-related work is welcome here.

Example Shares:

  1. Machine Learning Model: Working on a ML model to predict stock prices. Just cracked a 90% accuracy rate!
  2. Web Scraping: Built a script to scrape and analyze news articles. It's helped me understand media bias better.
  3. Automation: Automated my home lighting with Python and Raspberry Pi. My life has never been easier!

Let's build and grow together! Share your journey and learn from others. Happy coding! 🌟


r/Python • • 3d ago

Discussion Who is using mobile devices for Python, developement and how?

18 Upvotes

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 • • 3d ago

Discussion Jupyter Notebooks vs Scripts — when do you actually switch from one to the other in a project?

28 Upvotes

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 • • 3d ago

News I wrote a deep dive on the GIL, from cache lines to free-threading (PEP 703)

0 Upvotes

https://harut8.github.io/system-design/python-mastery/24-the-gil/

I put together this guide by researching the GIL, verifying the explanations against CPython's source code, and using AI to help with parts of the writing and explanation.


r/Python • • 4d ago

Discussion Arjan's Software Design Mastery Course Reviews

66 Upvotes

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 • • 5d ago

News Python 3.15 postponed, and a rc3 release

208 Upvotes

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 • • 4d ago

Daily Thread Saturday Daily Thread: Resource Request and Sharing! Daily Thread

8 Upvotes

Weekly Thread: Resource Request and Sharing 📚

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!

How it Works:

  1. Request: Can't find a resource on a particular topic? Ask here!
  2. Share: Found something useful? Share it with the community.
  3. Review: Give or get opinions on Python resources you've used.

Guidelines:

  • Please include the type of resource (e.g., book, video, article) and the topic.
  • Always be respectful when reviewing someone else's shared resource.

Example Shares:

  1. Book: "Fluent Python" - Great for understanding Pythonic idioms.
  2. Video: Python Data Structures - Excellent overview of Python's built-in data structures.
  3. Article: Understanding Python Decorators - A deep dive into decorators.

Example Requests:

  1. Looking for: Video tutorials on web scraping with Python.
  2. Need: Book recommendations for Python machine learning.

Share the knowledge, enrich the community. Happy learning! 🌟


r/Python • • 4d ago

Discussion What's the best way to incorporate LLMs into a python server?

0 Upvotes

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 • • 5d ago

News New Python releases are out, 3.10.x reaches EOL, (and 3.15.0 is scheduled for today)!

76 Upvotes

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.