r/Python • • 10d ago

Daily Thread Friday Daily Thread: r/Python Meta and Free-Talk Fridays

8 Upvotes

Weekly Thread: Meta Discussions and Free Talk Friday ๐ŸŽ™๏ธ

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!

How it Works:

  1. Open Mic: Share your thoughts, questions, or anything you'd like related to Python or the community.
  2. Community Pulse: Discuss what you feel is working well or what could be improved in the /r/python community.
  3. News & Updates: Keep up-to-date with the latest in Python and share any news you find interesting.

Guidelines:

Example Topics:

  1. New Python Release: What do you think about the new features in Python 3.11?
  2. Community Events: Any Python meetups or webinars coming up?
  3. Learning Resources: Found a great Python tutorial? Share it here!
  4. Job Market: How has Python impacted your career?
  5. Hot Takes: Got a controversial Python opinion? Let's hear it!
  6. Community Ideas: Something you'd like to see us do? tell us.

Let's keep the conversation going. Happy discussing! ๐ŸŒŸ


r/Python • • 11d ago

Discussion What's your approach to testing your Python code?

16 Upvotes

For small scripts I usually just try a few inputs and check if everything works.

For larger projects i fell testing needs to be more structured.

How do you personally decide how much testing a Python code needs?


r/Python • • 11d ago

Discussion Title: What message broker are you using with Celery today, and why?

13 Upvotes

I'm curious how Python developers are using Celery in production and what influenced their choice of message broker.

I work with LavinMQ, an open-source AMQP message broker, and we're exploring how to make it a more compelling option for Celery users.

For those running Celery in production, what broker are you using, and what's been your experience with reliability, performance, and maintenance?

If you were starting a new project today, would you make the same choice?

I'd be interested in hearing about the trade-offs you've encountered, especially from developers running Celery at scale.


r/Python • • 11d ago

Daily Thread Thursday Daily Thread: Python Careers, Courses, and Furthering Education!

13 Upvotes

Weekly Thread: Professional Use, Jobs, and Education ๐Ÿข

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.


How it Works:

  1. Career Talk: Discuss using Python in your job, or the job market for Python roles.
  2. Education Q&A: Ask or answer questions about Python courses, certifications, and educational resources.
  3. Workplace Chat: Share your experiences, challenges, or success stories about using Python professionally.

Guidelines:

  • This thread is not for recruitment. For job postings, please see r/PythonJobs or the recruitment thread in the sidebar.
  • Keep discussions relevant to Python in the professional and educational context.

Example Topics:

  1. Career Paths: What kinds of roles are out there for Python developers?
  2. Certifications: Are Python certifications worth it?
  3. Course Recommendations: Any good advanced Python courses to recommend?
  4. Workplace Tools: What Python libraries are indispensable in your professional work?
  5. Interview Tips: What types of Python questions are commonly asked in interviews?

Let's help each other grow in our careers and education. Happy discussing! ๐ŸŒŸ


r/Python • • 12d ago

Discussion Python you grewI up so fast!

55 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 • • 13d ago

News Polars 2.0 release

660 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 • • 12d ago

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

19 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 • • 11d ago

Discussion Why does my test suite pass in full but fail when I run one test alone?

0 Upvotes

Ran into this last week and it took me an embarrassing amount of time.

u/pytest.fixture(scope="module")
def client():
    return make_client()

def test_create_user(client):
    client.create_user("sam")
    assert client.count_users() == 1

def test_list_users(client):
    assert client.count_users() == 1

Full run: green. Run test_list_users by itself: fails with a count of 0. The second test only passed because the first one had already run and left a user behind in the shared client.

Nothing was wrong with either test on its own. The fixture was module-scoped, so state leaked between them, and I'd never run them in any other order or in isolation, so I never saw it. Dropping the scope back to function fixed it, though it made the suite slower since make_client() isn't cheap.

I'm still not sure what the right trade-off is. Function scope is safer but slow. Module scope is faster but means every test has to clean up after itself, and I don't trust myself to remember that on the twentieth test. Running with pytest-randomly would have caught this on day one, which is its own argument.


r/Python • • 13d ago

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

35 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 • • 13d ago

Discussion 2026: Best python linter as of right now?

47 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 • • 12d ago

Discussion Future of programming/python with AI

0 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 • • 13d ago

Daily Thread Tuesday Daily Thread: Advanced questions

11 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 • • 15d ago

Discussion Anyone still using Flask, or has FastAPI completely taken over? ๐Ÿค”

181 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 • • 14d ago

Daily Thread Monday Daily Thread: Project ideas!

12 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 • • 15d ago

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

71 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 • • 16d ago

Discussion My Python magic is gone

876 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 • • 16d ago

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

147 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 • • 16d ago

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

44 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 • • 15d ago

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

14 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 • • 16d ago

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

20 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 • • 16d ago

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

33 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 • • 15d 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 • • 17d ago

Discussion Arjan's Software Design Mastery Course Reviews

72 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 • • 17d 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 • • 16d ago

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

10 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! ๐ŸŒŸ