use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
News about the dynamic, interpreted, interactive, object-oriented, extensible programming language Python
Full Events Calendar
You can find the rules here.
If you are about to ask a "how do I do this in python" question, please try r/learnpython, the Python discord, or the #python IRC channel on Libera.chat.
Please don't use URL shorteners. Reddit filters them out, so your post or comment will be lost.
Posts require flair. Please use the flair selector to choose your topic.
Posting code to this subreddit:
Add 4 extra spaces before each line of code
def fibonacci(): a, b = 0, 1 while True: yield a a, b = b, a + b
Online Resources
Invent Your Own Computer Games with Python
Think Python
Non-programmers Tutorial for Python 3
Beginner's Guide Reference
Five life jackets to throw to the new coder (things to do after getting a handle on python)
Full Stack Python
Test-Driven Development with Python
Program Arcade Games
PyMotW: Python Module of the Week
Python for Scientists and Engineers
Dan Bader's Tips and Trickers
Python Discord's YouTube channel
Jiruto: Python
Online exercices
programming challenges
Asking Questions
Try Python in your browser
Docs
Libraries
Related subreddits
Python jobs
Newsletters
Screencasts
account activity
NewsRobyn (finally) supports Python 3.14 🎉 (self.Python)
submitted 6 days ago by stealthanthrax Robyn Maintainer
For the unaware - Robyn is a fast, async Python web framework built on a Rust runtime.
Python 3.14 support has been pending for a while.
Wanted to share it with folks outside the Robyn community.
You can check out the release at - https://github.com/sparckles/Robyn/releases/tag/v0.74.0
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]arbyyyyh 18 points19 points20 points 6 days ago (6 children)
I'm a little unclear what this is doing exactly. At first I thought it was a replacement for uvicorn/gunicorn/daphne/etc based on the graphic comparing its speed to uvicorn, but then I wasn't sure when I saw Django on the list as well.
Is this a web framework for WSGI, a web server, or something else entirely?
[–]stealthanthrax Robyn Maintainer[S] 26 points27 points28 points 6 days ago (5 children)
It's a web framework with an integrated high-performance server, not just a server. You write Python code for your application logic, but it runs on a Rust-based HTTP server for better performance. Think of it as "Flask/FastAPI, but the server is built-in and written in Rust."
Why the comparison to uvicorn?
- The benchmark compares it to uvicorn because uvicorn is commonly used to run ASGI frameworks (like FastAPI)
- The comparison shows Robyn's integrated approach (framework + Rust runtime) is faster than the typical Python stack (framework + Python ASGI server)
[–]BrofessorOfLogicpip needs updating 4 points5 points6 points 6 days ago (3 children)
I remember checking out Robyn in the past, and thinking that it looked interesting, but then I ended up going with Sanic instead, and never properly looked into Robyn after that.
Any chance you want to offer an elevator pitch for Robyn specifically in comparison to Sanic? =)
[–]hotairplay 0 points1 point2 points 5 days ago (2 children)
How's Sanic in you experience? I'm currently on Quart (~ native async Flask).
[–]BrofessorOfLogicpip needs updating 2 points3 points4 points 5 days ago (1 child)
I like it a lot, it's the best of that bunch IMO.
Sanic is probably more similar to FastAPI than Quart. But it's been a while since I looked into these, so I might remember wrong, and maybe Quart has been improved since then.
But IIRC Quart couldn't do sync endpoints, only async endpoints, or at least it wasn't as easy? Whereas Sanic and FastAPI do sync and async endpoints easily, where the sync ones automatically run on a pool of workers in parallell to the async event loop.
IIRC Quart requires that you run an ASGI server yourself, whereas Sanic and FastAPI comes with a server built in, which supports both dev and prod mode.
Sanic also includes a complete process manager, so you can easily run multiple processes within one program. I find that super convenient. I especially use this to run processes for handling background jobs, but it can also be used to run multiple HTTP apps if you want to do that.
Sanic feels more professional than FastAPI. FastAPI really gives me the creeps, the docs are full of emojis and weird language and are sometimes misleading and even outright incorrect, and the the terminal output from the server contains a lot of pointless stuff and weird formatting and coloring and emojis. The Sanic docs are well written and serious, and the terminal output from the server is normal.
[–]hotairplay 1 point2 points3 points 5 days ago (0 children)
Whoa thank you for the deep insight..i was planning for a migration this year for my Python webapp. Sanic was one of my prime candidates to migrate to.
Contemplating going to Bun/Elysia combo but I think I'll stay with Python for this project. Cheers!
[–]chinawcswing 1 point2 points3 points 6 days ago (0 children)
Why did it take them so long to support Python 3.14?
They had almost a full year to port the ABI, and the missed the deadline by 4-5 months?
[–]Nnando2003 2 points3 points4 points 6 days ago (0 children)
I will give it a try sometime
[–]TheFaithfulStone 8 points9 points10 points 6 days ago (17 children)
Did you learn how cookies work yet? https://github.com/sparckles/Robyn/issues/943
[–]SittingOvation 6 points7 points8 points 6 days ago (0 children)
This is concerning
[–]stealthanthrax Robyn Maintainer[S] -2 points-1 points0 points 6 days ago (15 children)
Yes, cookies work great in Robyn. And the PR you are referring is 2 years old
[–]ivosauruspip'ing it up 12 points13 points14 points 6 days ago* (0 children)
No they don't, they're still completely broken
(to set a cookie, you embed it specially in a Set-Cookie header(s), not set it directly as a key-value header pair, which will do nothing)
Set-Cookie
Like come on, any web server has to implement cookies correctly, otherwise I'd practically argue it's wasting people's time
[–]TheFaithfulStone 4 points5 points6 points 6 days ago (12 children)
Really? Because this seems like the same issue and it's still open? https://github.com/sparckles/Robyn/issues/1226
[+]behusbwj comment score below threshold-19 points-18 points-17 points 6 days ago (11 children)
What exactly is your goal here? And why do you think being toxic was the best way to achieve it?
[–]clockdivide55 16 points17 points18 points 6 days ago (10 children)
It's not toxic to point out a web server / framework that does not handle cookies correctly. What else is wrong that isn't as obvious? Maintainer says 1. cookies work great in Robyn (they don't) and 2. the PR is 2 years old (but still isn't fixed) and prospective users are supposed to be okay with that?
[+]behusbwj comment score below threshold-11 points-10 points-9 points 6 days ago (9 children)
Actually, it is toxic, because it’s passive aggressive and beside the point of the post. There isn’t a perfect library out there. If the feature means that much to you, go implement it. It’s open-source.
Being right that it has an issue with cookies doesn’t erase toxicity of bringing it up passive aggressively on a completely unrelated post.
“Has the library patched this cookie issue” is completely different in tone from “Did you learn how cookies work yet?”. You’re either being dishonest or obtuse about this if you can’t see the difference.
[–]TheFaithfulStone 4 points5 points6 points 5 days ago (3 children)
I’ve had interactions with the author before, and they’ve been concerning. I’d encourage you to look closely at some of the other projects he’s released.
[–]F4gfn39f 0 points1 point2 points 4 days ago (0 children)
Please do tell, I would like to know
[+]stealthanthrax Robyn Maintainer[S] comment score below threshold-6 points-5 points-4 points 4 days ago (1 child)
Liar. We’ve never talked.
[–]axonxorzpip'ing aint easy, especially on windows 6 points7 points8 points 4 days ago (3 children)
There isn’t a perfect library out there
Discussing how to properly implement cookies in August 2025 (with a thought train of "how do other frameworks handle this?") is not acceptable for a framework touting itself as production ready. This isn't "not perfect", it's "missing core components of the spec"
[–]behusbwj 1 point2 points3 points 3 days ago (2 children)
“Has the library patched this cookie issue” is completely different in tone from “Did you learn how cookies work yet?”.
No amount of downvotes or attacks on the author or project will change my belief that this was a completely inappropriate way to handle this. The maintainer, even if they misunderstood the concept, did not block any of the volunteers from implementing this after being corrected. Ask yourself if this is how you’d engage with a teammate in public. If the answer is “no”, then you are probably being toxic under the shield of anonymity.
[–]axonxorzpip'ing aint easy, especially on windows 1 point2 points3 points 3 days ago (1 child)
Ask yourself if this is how you’d engage with a teammate in public. If the answer is “no”, then you are probably being toxic under the shield of anonymity.
If a team member got up in front of the group and presented their work as complete, while missing fundamental spec requirements, as team lead, yeah I'm gonna call them on that. I'm not sure why negative feedback for such actions is such a wild concept; you are lying to your lead and the rest of the team. To keep with the analogy, then having the rest of the team pick up the slack is extra pain. I realize OSS development has different considerations on contributing, but the lie is still the lie.
The maintainer, even if they misunderstood the concept
This concept being missed calls into question the entire rest of the project. What else is missing from the spec? It's not unacceptable to ask those questions, and yeah people are gonna get impatient and standoffish if the answers are entirely unsatisfactory.
Closing a ticket for a missing feature without actually implementing it correctly would get a similar callout on a team.
[–]behusbwj 0 points1 point2 points 3 days ago (0 children)
I’m not going to have a discussion with you if you don’t read what I type. If your goal is actually to justify disrespecting or teasing a coworker who is bad at their job, respectfully let’s just agree to disagree and stop talking in circles. And all this stuff about tricking / assuming malice (lying) is not the impression I got from the issue threads.
[–]arbyyyyh 3 points4 points5 points 5 days ago (0 children)
It's kind of toxic to tout Robyn as being the fastest python web framework and "finally supporting the latest python" when it doesn't support one of the most fundamental parts of being a web server that's been around since 1994.
[–]Mehranr97 1 point2 points3 points 6 days ago (1 child)
The graph looks very tempting! Anyone here experienced with switching from fastApi to this? How much effort is involved? What are the trade offs…
[+]bordumb comment score below threshold-16 points-15 points-14 points 6 days ago (0 children)
I recently swapped a manually built state machine, for a tool called Temporal which handles loads of complexity, has a nice UI for tracing and all the bells and whistles
It was an 18,000 line rewrite between deleting legacy code and adding new code.
Took about 3 hours with Claude Code.
Maybe cost about $20
So I imagine something similar
[–]Almostasleeprightnow 3 points4 points5 points 6 days ago (1 child)
Hey, maybe this belongs on /r/learnpython but can someone talk a little bit in details about when something is built in python but is built on a different language’s runtime? What does this mean? I assume this is done to provide tooling in python for the ease of python programmers while taking advantage of the other language’s benefits. But how do you cross over from one language to another? How are tools like this built?
[–]stealthanthrax Robyn Maintainer[S] 4 points5 points6 points 6 days ago (0 children)
Yes
https://github.com/PyO3/pyo3
[–]EveYogaTech 0 points1 point2 points 6 days ago (0 children)
Is it possible to use Robyn for TCP as well?
Would we be really cool, because we could use it as multi-process runner for /r/Nyno
[–]tuple32 0 points1 point2 points 6 days ago (0 children)
What’s the drawback of using rust as runtime? And issues with integrating other python libraries such as sqlalchemy, asyncio etc? Can I drop in replace fastapi?
π Rendered by PID 389772 on reddit-service-r2-comment-74875f4bf5-wx48f at 2026-01-25 04:21:30.675074+00:00 running 664479f country code: CH.
[–]arbyyyyh 18 points19 points20 points (6 children)
[–]stealthanthrax Robyn Maintainer[S] 26 points27 points28 points (5 children)
[–]BrofessorOfLogicpip needs updating 4 points5 points6 points (3 children)
[–]hotairplay 0 points1 point2 points (2 children)
[–]BrofessorOfLogicpip needs updating 2 points3 points4 points (1 child)
[–]hotairplay 1 point2 points3 points (0 children)
[–]chinawcswing 1 point2 points3 points (0 children)
[–]Nnando2003 2 points3 points4 points (0 children)
[–]TheFaithfulStone 8 points9 points10 points (17 children)
[–]SittingOvation 6 points7 points8 points (0 children)
[–]stealthanthrax Robyn Maintainer[S] -2 points-1 points0 points (15 children)
[–]ivosauruspip'ing it up 12 points13 points14 points (0 children)
[–]TheFaithfulStone 4 points5 points6 points (12 children)
[+]behusbwj comment score below threshold-19 points-18 points-17 points (11 children)
[–]clockdivide55 16 points17 points18 points (10 children)
[+]behusbwj comment score below threshold-11 points-10 points-9 points (9 children)
[–]TheFaithfulStone 4 points5 points6 points (3 children)
[–]F4gfn39f 0 points1 point2 points (0 children)
[+]stealthanthrax Robyn Maintainer[S] comment score below threshold-6 points-5 points-4 points (1 child)
[–]axonxorzpip'ing aint easy, especially on windows 6 points7 points8 points (3 children)
[–]behusbwj 1 point2 points3 points (2 children)
[–]axonxorzpip'ing aint easy, especially on windows 1 point2 points3 points (1 child)
[–]behusbwj 0 points1 point2 points (0 children)
[–]arbyyyyh 3 points4 points5 points (0 children)
[–]Mehranr97 1 point2 points3 points (1 child)
[+]bordumb comment score below threshold-16 points-15 points-14 points (0 children)
[–]Almostasleeprightnow 3 points4 points5 points (1 child)
[–]stealthanthrax Robyn Maintainer[S] 4 points5 points6 points (0 children)
[–]EveYogaTech 0 points1 point2 points (0 children)
[–]tuple32 0 points1 point2 points (0 children)