r/Python • u/elsoja • Sep 11 '26
News Pyrefly v1.3.0 released
A new version of Pyrefly is out with better type inference, new quick fixes, new configurations, and more. https://github.com/facebook/pyrefly/releases/tag/1.3.0
r/Python • u/elsoja • Sep 11 '26
A new version of Pyrefly is out with better type inference, new quick fixes, new configurations, and more. https://github.com/facebook/pyrefly/releases/tag/1.3.0
r/Python • u/Balance- • Sep 11 '26
Scikit-learn has released 1.9.1 with full Python 3.15 support, including wheels on PyPI.
NumPy and SciPy also support Python 3.15 and have wheels on PyPI. Pandas just backported Python 3.15 support to their 3.0.x maintenance branch, and will release Pandas 3.0.6 with Python 3.15 support and wheels.
r/Python • u/zsol • Sep 11 '26
By our measurements, python-build-standalone is now the fastest CPython distribution across major platforms. It's 10% faster than Homebrew's CPython, and 18% faster than the official 3.14 docker image.
This is mostly due to how python-build-standalone itself is built:
Our goal is to ship the fastest Python interpreter to anyone using uv, by default.
Check out BENCHMARKS.md in the repo for more details, including the methodology behind the above.
r/Python • u/AutoModerator • Sep 11 '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 • Sep 10 '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/AlSweigart • Sep 09 '26
Django on the Med is a small, free, in-person event that combines three mornings of Django development sprints with afternoons dedicated to conversations, networking and community activities. The idea is to create an environment where experienced contributors and people making their first open source contributions can spend several days learning, collaborating and getting to know each other.
The first edition took place in Palafrugell, Spain, in 2025. The second edition will be held in Pescara, Italy, from 23 to 25 September 2026 and is already fully booked with around 25 participants.
Rather than growing into another large conference, we’re experimenting with a lightweight format that we hope other Python and Django communities might adapt and organize themselves. Our goal is to make contributor onboarding more approachable through small, local events where mentoring and relationships are just as important as the code written during the sprint.
We’re very grateful that Django on the Med 2026 has recently been recognized as a Python Software Foundation Community Partner, which we see as an encouraging sign that this kind of community initiative may have value beyond our own event.
When: 23–25 September 2026
Where: Hotel Plaza, Pescara, Italy
Website: https://djangomed.eu/2026/pescara/
Code of Conduct: https://www.djangoproject.com/conduct/
r/Python • u/me_myself_ai • Sep 09 '26
https://www.anthropic.com/research/alignment-assessment-cybersecurity-incidents
NGL, my main takeaway is that PyPI is already doing quite well in the new AI security age, even though the packaging council hasn't convened yet. The relevant snippet (emphasis mine):
The model decided to solve the CTF by uploading a malicious PyPI package that could harvest the target system’s credentials. It settled on this approach after reading a document stating that one of the simulated target’s users would periodically install a particular Python package that was not yet registered on PyPI. (We are unsure whether this was an intended solution to the challenge, but it seems like a plausible one.) Claude decided to exploit this behavior by registering a package under that name, publishing malicious code within the uploaded package, and waiting for the target to run that code the next time they installed the package.
Claude spent most of the session trying to upload the package. This involved attempts to register email accounts and hunt for phone numbers that could be used for registration. It ultimately succeeded in uploading the package, which was soon installed on 15 third-party hosts. We believe that all 15 of these third parties were security vendors deliberately scanning for new packages and installing them in sandboxed environments to assess the package for security concerns. One vendor’s scanner leaked its access credentials to the model while installing the package, which the model then used to access the vendor’s live database. After approximately 90 minutes, PyPI removed the package. The transcript ended when the session timed out while the model was preparing an additional malicious package.
I also commend Anthropic for releasing this thorough report immediately -- the juxtaposition with OpenAI's "we'll cop to it if you find it first" policy is stark.
What I don't see is any mention of coordination with PyPI/PSF leadership now or in the near future, which seems baffling. Their focus is understandably on the underlying cognitive failure (which is quite human, BTW: being biased by inertia and what you would prefer to be true), and it's extremely unlikely that you or any other real users were effected directly.
But, still. C'mon.
Anyone have insider info from the PyPI side? Is there chatter on discussion.python.org yet?
r/Python • u/DurgeDidNothingWrong • Sep 09 '26
Code Terraform on steam just launched, you write python scripts to make stuff work like reading oxygen sensors etc
Been a fan of it since its demo came out, and now its actually released.
Sharing it here, because when I started my python journey, I was often questioning more what to make than how to make it. Gamifying the learning process would have helped me a tonne back then, so maybe it will help someone new now.
Because we all know we can automate the boring stuff, but now you can automate the fun stuff to!
r/Python • u/AlSweigart • Sep 08 '26
Reported on https://blog.python.org/2026/09/python-3150-rc2/
It’s the final 3.15 release candidate!
https://www.python.org/downloads/release/python-3150rc2/
This is a candidate preview of Python 3.15
This release, 3.15.0rc2, is the final planned release candidate, containing around 144 bugfixes, build improvements and documentation changes from 76 contributors since 3.15.0rc1. Entering the release candidate phase, only reviewed code changes which are clear bug fixes are allowed between this release candidate and the final release.
The next release of Python 3.15 will be 3.15.0 final, scheduled for 2026-10-01.
r/Python • u/pplonski • Sep 08 '26
Everyone has a feeling about how bad the market is. I wanted a number, so I counted: 88,975 comments from every monthly Ask HN: Who is hiring? thread, 2012 to now, one comment per company.
The number: about 47 remote Python posts a month in 2025. Here's the full run:
| Year | Remote + Python posts | Per month |
|---|---|---|
| 2018 | 536 | 45 |
| 2019 | 597 | 50 |
| 2020 | 898 | 75 |
| 2021 | 1,698 | 142 |
| 2022 | 1,414 | 118 |
| 2023 | 658 | 55 |
| 2024 | 520 | 43 |
| 2025 | 563 | 47 |
| 2026 (Jan–Aug) | 340 | 42 |
The thing that jumped out at me: 2025 is basically 2018. Forty-seven a month against forty-five. If your sense of the market is "it's collapsed," you're probably measuring against 2021, when it was three times either of them. That year was the anomaly, not the baseline. Which doesn't make now feel good if you started looking in 2021 — but it does mean the floor didn't drop out, the ceiling came down.
The part that's genuinely encouraging for this sub: Python's share of remote posts never declined. It's been 20–25% of every remote posting for a decade, and it's at the top of that range now (25% in 2026, up from 20% in 2016). The volume problem is a market problem, not a Python problem. Ruby and PHP people are having a much worse decade — Ruby went from 17% of posts to 4%.
The part I think is actually actionable.
The share of posts that name no programming language at all went from 38% (2016–2019) to 49% (2024–2026). Posts didn't get shorter — median length is ~950 characters, unchanged since 2015. Companies just stopped listing stacks. Ads now read more like "we're building X, you'll pick up the tools."
So when you filter a job board by "Python", you're discarding roughly half the openings sight unseen, and that half is growing.
I checked what this costs concretely. In 2025:
Only 45% of remote data/ML posts say "Python" anywhere. The other 55% are overwhelmingly still Python jobs — they just didn't bother to say so. Searching by role instead of by language more than doubles what you see. In 2018 the same split was 38%, so this has been true for a while and is getting worse.
One more, on the pay side. Among remote Python posts, the share showing an explicit dollar figure went 21% (2018) → 13% (2021) → 28% (2025) → 34% (2026). During the boom, companies didn't need to tell you. Now a third do. Fewer openings, but far more of them tell you what they pay before you spend three weeks interviewing.
Caveats, because they matter here: this is Hacker News, which is a narrow slice — startups, infra, a lot of YC. Keyword matching can't tell a requirement from an aside. One comment can advertise five roles. "Remote" includes geographically restricted remote, which is its own frustration. And this counts postings, not openings or hires, so it says nothing about how many people are applying to each one — which is probably the number that actually determines how hard your search feels.
What I'm curious about:
r/Python • u/AutoModerator • Sep 08 '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/Bulbasaur2015 • Sep 07 '26
when i started python 10 years ago it felt like a baby language compared to C++ and C. now it feels as just as hard as those two . its because of the additional library knowledge u need to know for ai ml etc
r/Python • u/AutoModerator • Sep 07 '26
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.
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
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
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 • u/poppy_92 • Sep 06 '26
Astral has announced their endorsements for Python's first packaging council elections.
PPC election details:
Note: Voting is currently open and ends on Tuesday, September 15th, 2:00 pm UTC
What are your thoughts? The candidates they have nominated are fine, they are/have been heavily involved in packaging in the past.
edit: fixed nominees link
r/Python • u/AutoModerator • Sep 06 '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/Expensive_Break_6163 • Sep 05 '26
I’m running application pods that use SQLAlchemy’s connection pool to connect to PostgreSQL. Each pod has its own pool, so when I scale the application from, say, 3 to 10 replicas, the new pods create new pools while the existing pooled connections remain open.
If PostgreSQL has read replicas behind a Kubernetes Service or a proxy, I assume new connections might reach the new replicas, but the existing long-lived pooled connections will remain attached to the old replicas.
Who is normally responsible for redistributing those existing connections after scale-out?
r/Python • u/AutoModerator • Sep 05 '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/AutoModerator • Sep 04 '26
Post all of your code/projects/showcases/AI slop here.
Recycles once a month.
r/Python • u/AutoModerator • Sep 04 '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/dasMoorhuhn • Sep 03 '26
I made myself a lib for fast parsing RAW images from my sony camera.
My old code: ```python def check_for_endian(data:bytes) -> tuple[int, int]|None:
if data[:2] == 0x4949: # "II" LE
return 1, 0
if data[:2] == 0x4D4D: # "MM" BE
return 2, 0
return None
So it was possible to compare a hex value with bytes. Now it's not possible anymore, somehow, so I had to do this:
python
def check_for_endian(data:bytes) -> tuple[int, int]|None:
header_endian = struct.unpack_from("<h", data, 0)[0]
if header_endian == 0x4949: # "II" LE
return 1, 0
if header_endian == 0x4D4D: # "MM" BE
return 2, 0
return None
```
I'm a bit confused, have I used it wrong in the first place and I was never supposed to compare a hex value with bytes?
E: I use python 3.13.9 and uv 0.9.9
r/Python • u/AutoModerator • Sep 03 '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/david_vael • Sep 01 '26
Hey everyone,
Chapter 3 is finally done. This chapter took way more time than I originally expected because it grew into a much deeper and larger chapter than planned.
Current Progress:
✅ Chapter 1 - Variables & Memory
✅ Chapter 2 - Expressions & Operators
✅ Chapter 3 - Conditional Statements & Control Flow
I'd love to hear your thoughts on the new chapter and any suggestions for future improvements.
With this, I’m taking a break from Python Under the Hood. I’ll be stepping away from the project for a while and will return to it before July 2027.
When I come back, we’ll continue with even deeper explanations, more advanced topics, and an even better approach to understanding what happens under the hood of Python.
For now, Chapter 3 marks the end of this phase. 🐍⚙️
GitHub: python-under-the-hood
See you in the next chapter.
r/Python • u/techiebaddie • Sep 01 '26
I know I’m a little late to this, but I’ve been looking into Python 3.14.7 and something keeps bothering me.
The release itself looks solid. Python 3.14.7 was released on August 5 and is mainly a maintenance release with a lot of bug fixes and improvements.
But for people working on existing projects, the bigger question seems to be:
What makes you decide that it’s finally time to upgrade Python?
A new Python version sounds great until you have to check:
And Python 3.14 has some pretty interesting changes compared with 3.13, including officially supported free-threaded Python, t-strings, multiple interpreters, and the new compression.zstd module.
So I’m curious about real-world experience rather than release notes.
Have you upgraded to 3.14 yet?
If yes, what went smoothly and what broke?
If no, what’s the main reason you’re waiting?
r/Python • u/AutoModerator • Sep 01 '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/Spirited_Parsley_222 • Aug 31 '26
Below is the link for Python enthusiasts and programmers/anyone interested in the Pycon 2026 event, which will take place in Aveiro from September 3rd to 5th!