Latest / Talk Python To Me / #514: Python Language Summit 2025
Transcript
- 0:00Every year, the core developers of Python convene in person to focus on high-priority topics for CPython and beyond.
- 0:07This year, they met at PyCon US 2025.
- 0:10Those meetings are a closed door to keep focused and productive.
- 0:14But we're lucky that Seth Michael Larson was in attendance and wrote up each topic presented and the reactions and feedback for each.
- 0:22We'll be exploring this year's Language Summit with Seth.
- 0:24It's quite insightful to where Python is going and the pressing matters the core devs are
- 0:30giving their attention to.
- 0:31This is Talk Python To Me, episode 514, recorded June 17th, 2025.
- 0:51to unite. We started in Pyramid cruising. Welcome to Talk Python To Me, a weekly podcast on Python.
- 0:54to unite. We started in Pyramid cruising. Welcome to Talk Python To Me, a weekly podcast on Python.
- 0:57This is your host, Michael Kennedy. Follow me on Mastodon where I'm @mkennedy and follow the
- 1:02podcast using @talkpython, both accounts over at fosstodon.org and keep up with the show and
- 1:09listen to over nine years of episodes at talkpython.fm. If you want to be part of our live episodes,
- 1:14you can find the live streams over on YouTube. Subscribe to our YouTube channel over at
- 1:19talkpython.fm/youtube and get notified about upcoming shows. This episode is brought to you
- 1:25entirely by Sentry. It's a bit of an episode takeover, if you will. Sentry has two excellent
- 1:31and exciting services to tell you about. Seer, your agentic AI debugging assistant, which takes
- 1:37all the data already gathered by Sentry to help discover the problems and even propose fixes as
- 1:43GitHub PRs. And the other is AI agent monitoring, which adds deep observability to your AI agents
- 1:50in your app. If you're adding AI and LLM features to your Python apps, you'll want to know about AI
- 1:56agent monitoring. I'll tell you more about both of these later in the episode. And remember,
- 2:01however you happen to sign up for Sentry, if you do use our code, TALKPYTHON, one word, all caps,
- 2:08let's get to the interview. Seth, welcome back to Talk Python. I mean, awesome to have you here.
- 2:12Thank you for having me, Michael.
- 2:14Yeah, it's always fun to have you on the show.
- 2:17And you know what?
- 2:17I don't even think we're going to talk that much about security this episode, are we?
- 2:22Not too much.
- 2:22No.
- 2:23I mean, as I say that, I'm sure we're going to come up with something, right?
- 2:27But the last couple of times I've had you on, it's because you're doing something with security
- 2:33and Python, and it's always been very interesting.
- 2:35It's true.
- 2:35It's true.
- 2:35Yeah, no, I do a lot of security these days, but I do other things too.
- 2:41be the eyes and ears of everyone who could not attend the language summit yeah so i was the
- 2:46be the eyes and ears of everyone who could not attend the language summit yeah so i was the
- 2:47blogger again this year i got invited back they didn't uh they liked what i did last year so like
- 2:52ah well we'll have this guy again why not right like yeah it was great i mean i love attending
- 2:56the language summit blogging for it it's a it's a really unique way to contribute back to the to
- 3:01python community it's a such a specific role so yeah it really is i think maybe we start there
- 3:04python community it's a such a specific role so yeah it really is i think maybe we start there
- 3:07Maybe we start with what is the Language Summit and why are there not just a bunch of videos online and why weren't there sessions that necessarily open sessions at PyCon, right?
- 3:18It's kind of a special event.
- 3:21Yeah, so the Language Summit is, historically, it is this event that happens every year before, right before PyCon US.
- 3:29It's been hosted in other PyCons as well.
- 3:31But nowadays it happens at PyCon US and it occurs kind of at the same time that like tutorials are happening.
- 3:37So that's a day or two before the actual conference starts for most attendees where there's talks and all of that.
- 3:43And basically what ends up happening is a bunch of core developers and triagers and some special guests all convene into one room for a full day of short talks followed by tons of discussion.
- 3:56And the reason that it's like a closed session is like one, it's a logistical thing.
- 4:00Like the room is only so big.
- 4:02And I'm pretty sure the organizers know that if it was just like open session, it would be like, oh, we need to have this huge conference room of people.
- 4:09And it's not really conducive to discussion because it is very fast moving, asking questions, getting answers and having people be able to exchange this information really quickly.
- 4:21And so to offset the lack of openness, right, because not everyone can possibly attend that
- 4:26wants to attend, what ends up happening is a blogger, someone who covers the actual event,
- 4:32every single talk, every single discussion, all the questions, what gets discussed,
- 4:36and then like the vibes of the room and like how people are feeling about topics.
- 4:40That gets covered by a blogger, which this year was me, last year was also me, but then
- 4:45the years prior has been like Alex Waygood covered the year prior to me starting.
- 4:50So Alex taught me everything I need to know and what to expect and all of that.
- 4:54Nice.
- 4:54Yeah.
- 4:55And I had you on last year and I had Alex on the year before, I believe.
- 4:58So it's a bit of a tradition.
- 4:59There we go.
- 5:00Cool.
- 5:00And yeah, also people should know it's a working session with the goal of not just presenting
- 5:06ideas, but making decisions, trying to come to an agreement with the core devs and steering
- 5:12council and maybe other councils, as we'll see all the councils.
- 5:16Yeah.
- 5:16Yeah.
- 5:16Right.
- 5:17No, it's lots of decision makers in there.
- 5:18No, it's lots of decision makers in there.
- 5:19I feel like it tends to be a really great arena to kind of just get really quick feedback on either ideas or questions.
- 5:28Because like it's really funny.
- 5:30One of the talks happened not to get into too much detail right away.
- 5:33But like one of the talks happened.
- 5:35They're like, oh, we have this problem.
- 5:36We really need more arm builders for GitHub CI for this specific reason.
- 5:40And E Durbin, director of infrastructure at PSF, was in the room and they were just like, oh, I just bought more.
- 5:46And it's like, oh, great.
- 5:47Oh, that's awesome.
- 5:48Oh, that's awesome.
- 5:49Quick feedback.
- 5:50That's the way to make it happen.
- 5:52That's right.
- 5:53You know, before we get into that, just maybe it's worth a quick conversation about.
- 6:00You were actually in New York City.
- 6:02We just heard a siren go by.
- 6:04So we now officially know that you're in New York City, right?
- 6:07Yes, exactly.
- 6:08There's always something going on there in terms of noise or energy or whatever.
- 6:11There's always something going on there in terms of noise or energy or whatever.
- 6:12There's always something going on there in terms of noise or energy or whatever.
- 6:14For the UN Open Source Conference, that's super interesting.
- 6:16For the UN Open Source Conference, that's super interesting.
- 6:17For the UN Open Source Conference, that's super interesting.
- 6:17What is that?
- 6:18Yeah, so United Nations Open Source Week.
- 6:19Yeah, so United Nations Open Source Week.
- 6:21I got invited to attend through the Software Tech Agency and also Alpha Omega.
- 6:26They are collaborating to host a maintain-a-thon, which is essentially just get a whole bunch of open source project maintainers, project leaders, governance people, like people doing more than just security.
- 6:38So I was there to represent the security perspective and also Python, Python Software Foundation.
- 6:44And just getting us all together and trying to talk about really complicated issues for open source and how open source can be used to better the world, to be a part of, you know, a more open access world, more open data world.
- 6:58Those are kind of like the themes.
- 6:59And specifically the maintain-a-thon was more like hosting small sessions with lots of discussion, almost kind of like the Language Summit, where there's a really short presentation about a topic I presented on low energy security.
- 7:12So security practices and processes for projects that don't have access to tons of security expertise.
- 7:19And then like, what are the, how can we make the situation better for those types of projects?
- 7:21And then like, what are the, how can we make the situation better for those types of projects?
- 7:24Oh, very cool.
- 7:25There's, you know, there's a lot of energy for open source in the United States corporately,
- 7:31but internationally, there's a lot of energy for open source at a governmental level.
- 7:35More so, way more so than the US.
- 7:37I mean, there's little pockets of things like, hey, we'd like to have some open source initiatives for what we're building in the US.
- 7:44But there's, I can't remember what country's doing it right now.
- 7:47One of the countries is trying to replace basically Microsoft Office and Windows with something Linux and open source.
- 7:54And there's a lot of stuff like that.
- 7:55Yeah.
- 7:56I mean, it's about having sovereignty about or like over your technology stack, right?
- 8:01Making sure that you have complete control and that there's interoperability and that.
- 8:01Making sure that you have complete control and that there's interoperability and that.
- 8:01Making sure that you have complete control and that there's interoperability and that.
- 8:05Yeah. Being able to work independently as like a government agency, just as important as a company, right? You want to make sure that you're able to control all the processes and data that are inside that are important to you.
- 8:16Sure. And I think we're in a bit of a special situation being in the U.S.
- 8:16Sure. And I think we're in a bit of a special situation being in the U.S.
- 8:23I don't think we have as much of a feeling of, wouldn't it be nice if we weren't beholden to U.S. companies?
- 8:29Because we're already beholden to the U.S. We live here, we pay taxes, we're subject to the rules.
- 8:34But if you're outside of the U.S., most countries and organizations are still beholden to U.S. companies.
- 8:39And I think that that's a part of the vein of the ideas there, right?
- 8:43And I think that that's a part of the vein of the ideas there, right?
- 8:45Yeah, it definitely is a part of it. Being able to do your own thing without worrying about other countries, what they're doing or what their relationship is with you and still being able to interoperate on a global scale. Right. Because like a lot of these formats are open and they interoperate like PDF, Doc X. They're all they're all open. They can be written by any software, not just Microsoft software.
- 9:04So yeah, absolutely. And I guess that's true for the U.S. in terms of software, but not so much for hardware, right? We're more in the same boat as everyone else with hardware, but that is a bit too far down the weeds, maybe, so we don't need to debate that. But it's super interesting that you're at that conference and it sounds really fun.
- 9:05So yeah, absolutely. And I guess that's true for the U.S. in terms of software, but not so much for hardware, right? We're more in the same boat as everyone else with hardware, but that is a bit too far down the weeds, maybe, so we don't need to debate that. But it's super interesting that you're at that conference and it sounds really fun.
- 9:24Yeah, it's a great time. A lot of really smart people here. So I'm happy that they let me in.
- 9:30How'd I get here?
- 9:31Exactly.
- 9:32What office did you run for to get elected to that?
- 9:34What office did you run for to get elected to that?
- 9:34Oh, none. None of them.
- 9:36Cool. So let's talk Language Summit.
- 9:39When we started sort of backstage, we were trying to plan out some of the themes and stuff.
- 9:44You talked about there being a couple of major themes of the Language Summit this year.
- 9:49And I certainly, reading your write-up, thought like, wow, multi-threading has got some attention.
- 9:54Yeah, free-threading was a big part of the Language Summit.
- 9:57I think it was like a third, somewhere between a third and a half of the talks touched free
- 10:04threading or parallelism or the concurrency model of Python.
- 10:08It was obviously a big thing.
- 10:09Yeah.
- 10:09What are some of the other themes?
- 10:09What are some of the other themes?
- 10:11Yeah.
- 10:11So the other ones are things like, okay, we have all these other platforms for Python.
- 10:16If you read, if you've read like the last year's language summit, there's kind of this
- 10:22through line of like mobile and web both kind of got discussed.
- 10:26And so if you contrast like the status of those projects, then what the write ups were to now, the projects are way further down the line. So like Russell came up and got to say like, oh, mobile for Python, both on Android and iOS are basically here. And a huge round of applause from all the core devs because they were super successful in achieving the mission that they set out to do back a year ago at the language summit where they laid out what their plans were.
- 10:54So yeah, there it will be basically mobile support. I think it's for three working, I think is the hope that it's going to be actually like working and you should use it and you can build apps with it. And that's really exciting.
- 11:05So yeah, there it will be basically mobile support. I think it's for three working, I think is the hope that it's going to be actually like working and you should use it and you can build apps with it. And that's really exciting.
- 11:07It is very exciting.
- 11:09Yeah. And then the other platform is web, obviously. So Pyodide is, is one of the big
- 11:13ones there. So if you've heard of like PyScript or, Jupyter light uses Pyodide, both of
- 11:20those platforms, like for Python on the web, there was this talk about upstreaming, the
- 11:26FFI, the JavaScript FFI and some JavaScript APIs, to see Python as opposed to keeping them
- 11:33resident in Pyodide. And what that would essentially mean is that if you ran Python
- 11:34resident in Pyodide. And what that would essentially mean is that if you ran Python
- 11:35resident in Pyodide. And what that would essentially mean is that if you ran Python
- 11:38compiled for, what was it, like the WebAssembly platform, you would be able to interact with
- 11:44JavaScript from the standard library, like the OS module or something like that.
- 11:48And that is pretty exciting to hear something like that.
- 11:49And that is pretty exciting to hear something like that.
- 11:51And there was also some talk about, apparently recently, MicroPython got web support.
- 11:56And so trying to unify a little bit the APIs that the two are using.
- 12:01Yeah, that's super exciting.
- 12:02We'll definitely dive into it.
- 12:03The fact that MicroPython got web support means it's possibly a good use for broader web applications, right?
- 12:11Because PyDot is awesome, but it's also something like 10 megs or somewhere in megs.
- 12:17And it takes a bit to load up because it is basically CPython.
- 12:20Whereas MicroPython is 100k.
- 12:22And people are used to doing 100k JavaScript, but not multi-meg JavaScript for standard stuff.
- 12:27So yeah, really exciting.
- 12:29We'll dive into that.
- 12:29We'll dive into that.
- 12:30So not surprising. I thought we could just maybe work our way through the different presentations.
- 12:36How long is each presentation besides the lightning talks about?
- 12:39Yeah. So it's each session is, I think it's like 30 minutes. The talk itself is usually
- 12:39Yeah. So it's each session is, I think it's like 30 minutes. The talk itself is usually
- 12:4610 minutes. I could actually think of the schedule. I should know that's off the top of my head.
- 12:49The recitations are super fast. They're like 10 minutes and then the rest is discussion. So it's
- 12:53The recitations are super fast. They're like 10 minutes and then the rest is discussion. So it's
- 12:54quite a quick format. And your write-up mirrors that, right? So people read your
- 12:54quite a quick format. And your write-up mirrors that, right? So people read your
- 12:55quite a quick format. And your write-up mirrors that, right? So people read your
- 12:59post, I'll link to, what I'm going to do is I'm going to link to the meta post, I guess,
- 13:04in the sense of like a meta package in that it says, here's all the articles for, that
- 13:09I wrote up for the language summit.
- 13:11So you can jump to the ones you want to see.
- 13:13And it, your, your write-ups mirror that.
- 13:15It's like, here's what happened in the presentation.
- 13:17And then the discussion that happened below it from all the core devs.
- 13:20Yeah.
- 13:21Yeah.
- 13:21It's short presentation.
- 13:22And then it's just like immediately into questions, feedback, all of that.
- 13:27So it mirrors it.
- 13:29This portion of Talk Python To Me is brought to you by Sentry's Seer.
- 13:34I'm excited to share a new tool from Sentry, Seer.
- 13:37Seer is your AI-driven pair programmer that finds, diagnoses, and fixes code issues in
- 13:43your Python app faster than ever.
- 13:45If you're already using Sentry, you are already using Sentry, right?
- 13:49Then using Seer is as simple as enabling a feature on your already existing project.
- 13:54Seer taps into all the rich context Sentry has about an error.
- 13:58stack traces, logs, commit history, performance data, essentially everything.
- 14:02Then it employs its agentic AI code capabilities to figure out what is wrong.
- 14:07It's like having a senior developer pair programming with you on bug fixes.
- 14:12Seer then proposes a solution, generating a patch for your code and even opening a GitHub pull request.
- 14:18This leaves the developers in charge because it's up to them to actually approve the PR.
- 14:23But it can reduce the time from error detection to fix dramatically.
- 14:27Developers who've tried it found it can fix errors in one shot that would have taken them hours to debug.
- 14:33SEER boasts a 94.5% accuracy in identifying root causes.
- 14:38SEER also prioritizes actionable issues with an actionability score, so you know what to fix first.
- 14:46This transforms sentry errors into actionable fixes, turning a pile of error reports into an ordered to-do list.
- 14:53If you could use an always-on-call AI agent to help track down errors and propose fixes
- 14:58before you even have time to read the notification, check out Sentry's Seer.
- 15:03Just visit talkpython.fm/Seer, S-E-E-R.
- 15:08The link is in your podcast player's show notes.
- 15:10Be sure to use our code, TALKPYTHON.
- 15:13One word, all caps.
- 15:14Thank you to Sentry for supporting Talk Pythonemy.
- 15:18So the first one, let me, I didn't always write down the names here, is the first one
- 15:22is how can we make breaking changes less painful by Itmar Oren?
- 15:27And so this one, Itmar deploys a bunch of Python code for production at meta
- 15:33and said, going from version 3.11 to 3.12 or 3.12 to 3.13
- 15:41has breaking changes that can be challenging.
- 15:43I don't encounter too many breaking changes in upgrading Python versions,
- 15:48but I also don't have literally millions of lines of code doing intricate things either so
- 15:53right this is a pretty pretty edge case but also an important one right yeah this so this talk I
- 15:56right this is a pretty pretty edge case but also an important one right yeah this so this talk I
- 15:59think one of the big things about this talk too is it wasn't just about like oh jumping from one
- 16:04version to one version a lot of companies employ like a skip version upgrading style where they'll
- 16:10experience breaking changes in a slightly different way than a lot of other users where they're jumping
- 16:14from like 3.11 to 3.13, as opposed to like 3.11 to 3.12 to 3.13, because upgrading is obviously
- 16:18from like 3.11 to 3.13, as opposed to like 3.11 to 3.12 to 3.13, because upgrading is obviously
- 16:19from like 3.11 to 3.13, as opposed to like 3.11 to 3.12 to 3.13, because upgrading is obviously
- 16:22this like big task. And so they don't want to do it every year. Maybe they do want to do it every
- 16:26two years and that's fine for them unless there's some feature that they really need or something
- 16:31like that. But yeah, so like anytime that you're upgrading more than one tython version, like it
- 16:36just, the breaking changes are obviously twice as, twice as many on average. Yeah. Sometimes they
- 16:41just, the breaking changes are obviously twice as, twice as many on average. Yeah. Sometimes they
- 16:41even go from 2.7 to 3.11. Yes and on rare occasions they go from 2.7 to 3.11 yeah thankfully that
- 16:43even go from 2.7 to 3.11. Yes and on rare occasions they go from 2.7 to 3.11 yeah thankfully that
- 16:50happens less and less yeah that's a story from uh the last decade thankfully yeah so this
- 16:54happens less and less yeah that's a story from uh the last decade thankfully yeah so this
- 16:57was like talking about like okay how we we're not trying to say breaking changes shouldn't happen
- 16:58was like talking about like okay how we we're not trying to say breaking changes shouldn't happen
- 17:03because we know that they're important and they're a good way to unblock things and remove pieces of
- 17:07software that we don't want users using, but trying to make it so that we can almost like quantify
- 17:15how bad a breaking change will be for users. And then based on that quantization, figure out what
- 17:21we need to do, maybe extra if it's like a particularly bad breaking change, or if it's
- 17:26just like, Oh, well, this has been deprecated for five years, and then removing it, or like,
- 17:30there's an easy drop in replacement, that's one to one, those sorts of breaking changes are really
- 17:35easy versus things like, oh, this behavior changed and you won't know until runtime and
- 17:40things like that are way more difficult.
- 17:42You have to have like a test harness that's actually testing all of the possibilities in
- 17:47the code to know whether you're safe or not versus like a syntactical control F find the
- 17:53bad function and then replace it.
- 17:54Yeah, it could be super subtle, right?
- 17:55Yeah, it could be super subtle, right?
- 17:57It could be the runtime things, but it could also be the memory structure of something we
- 18:05to a redis cache via pickling has changed and that's the that the cache version no longer works
- 18:11and we have to somehow figure out how to completely delete the cache and start over and some web apps
- 18:17that's a problem right when they're under tons of traffic that sort of cold start experience can be
- 18:18that's a problem right when they're under tons of traffic that sort of cold start experience can be
- 18:18that's a problem right when they're under tons of traffic that sort of cold start experience can be
- 18:19that's a problem right when they're under tons of traffic that sort of cold start experience can be
- 18:22a problem yeah and there's there's even things that like aren't even part of this gets mentioned
- 18:23a problem yeah and there's there's even things that like aren't even part of this gets mentioned
- 18:28in a future talk about parallelism where it's not even a function of the language but it just happens
- 18:33to be a property of how a particular set of code executes in one version versus another.
- 18:38So like with the, from the difference between 3.9 and 3.10, where something is thread safe,
- 18:40So like with the, from the difference between 3.9 and 3.10, where something is thread safe,
- 18:41So like with the, from the difference between 3.9 and 3.10, where something is thread safe,
- 18:44that it doesn't look thread safe at all. Like if you look at the code, you're like, oh, that's not
- 18:47thread safe. But the GIL based, like the implementation of the GIL in 3.9 keeps it thread
- 18:52safe. But in 3.10 and beyond, it's no longer thread safe. But the thing is, is you were relying
- 18:57on behavior that's not defined in Python. It wasn't guaranteed. Yeah, there's no guarantee that.
- 18:59on behavior that's not defined in Python. It wasn't guaranteed. Yeah, there's no guarantee that.
- 19:03And so it's like, is that a breaking change?
- 19:04And so it's like, is that a breaking change?
- 19:05No, but also like it'll probably break somebody.
- 19:07And also how do you detect that at a syntax level?
- 19:10You can't, the syntax is the same.
- 19:12Should it be written down as a breaking change?
- 19:13I don't know.
- 19:14Maybe does it, does your code feel broken if it gives you different answers
- 19:18and those answers start becoming wrong?
- 19:20Maybe.
- 19:20Yeah, it's tough.
- 19:21It's a really tough thing.
- 19:22It's a really tough thing.
- 19:23I think core developers were like pretty happy with the idea of like
- 19:28treating different breaking changes differently, trying to develop some
- 19:30sort of taxonomy of breaking changes.
- 19:32And there were some interesting ideas with like running these like code update scripts, providing code update scripts that if you have code and there's breaking changes that are on the syntax level, being able to upgrade them.
- 19:42Apparently, Ruff had some ability to do this for two major versions of NumPy.
- 19:47And so like that got brought up as an example of like, oh, this worked really well for NumPy.
- 19:50And so like that got brought up as an example of like, oh, this worked really well for NumPy.
- 19:51And so like that got brought up as an example of like, oh, this worked really well for NumPy.
- 19:51So maybe Python?
- 19:53Yeah, absolutely.
- 19:54Well, I was.
- 19:55Yeah, absolutely.
- 19:56I think Ruff is certainly in a good position to do that.
- 20:00Yeah.
- 20:00You could say, this pattern isn't wrong, but maybe it should come up with a warning, just so you know.
- 20:06We can run this check if you really want to see, right?
- 20:09Yeah, so one of the things Edmar pointed out was,
- 20:12it's difficult to find the documentation of deprecated and removed modules,
- 20:16because after a module is removed, the documentation is also removed.
- 20:20It's like, it's a bit of a catch-22.
- 20:23Yeah, that one was really interesting, because, yeah, like, especially if you're skipping versions, too.
- 20:28Like you go to the docs and the module is just gone and you're kind of left to figure
- 20:35out what was the last version that had that module.
- 20:38When did the deprecation warning start?
- 20:39Where's the warning?
- 20:40Like where is the actual documentation that says what to do?
- 20:42Like where is the actual documentation that says what to do?
- 20:44And so, yeah, apparently the docs editorial team are working on that.
- 20:48They're trying to figure out a solution for better documentation for removed modules specifically
- 20:50They're trying to figure out a solution for better documentation for removed modules specifically
- 20:53or removed.
- 20:54Yeah.
- 20:55Yeah.
- 20:55Carol Willing said they were working on that.
- 20:57Very interesting.
- 20:58You can go to the documentation, like docs.python.org, and pick through it.
- 21:02You can go to the documentation, like docs.python.org, and pick through it.
- 21:02You can go to the documentation, like docs.python.org, and pick through it.
- 21:03But by default, it lands on the latest, right?
- 21:05Yep.
- 21:06By default, it lands on the latest.
- 21:07And if there are any links to modules or to deprecation links that aren't pinning to a specific version,
- 21:14it'll go to the latest and be like, oh, we don't have those docs anymore.
- 21:17Yeah.
- 21:17It's just 404.
- 21:17It's just 404.
- 21:18You're like, huh, weird.
- 21:19Yeah.
- 21:19Weird, weird.
- 21:20Okay.
- 21:21Well, very, very interesting.
- 21:22The next one, we have an uncontentious talk about contention.
- 21:26And now we start into the heart of the topics, which is threading, async, IO, parallelism,
- 21:33concurrency, all these things, right?
- 21:35And this is the one you were referencing when you ask, is this code thread safe?
- 21:40So just give people a sense.
- 21:41There's an incredibly simple parallel example of create a counter class.
- 21:45The counter has a value.
- 21:46You can run some code that goes for 100,000 times, increment the value, start 10 threads
- 21:52at all, jam on that.
- 21:54And then this is by Mark Shannon.
- 21:56He says, we would like this to print exactly 1 million.
- 22:00I'm not sure that that's necessarily true.
- 22:02You would, as a creator of this program,
- 22:04you wanted to exactly print a million,
- 22:06but there might be advantages
- 22:09to allowing code to run more parallel
- 22:12rather than less parallel.
- 22:14And say it's on the author of that code
- 22:17to make it thread safe.
- 22:18Yeah.
- 22:19If it's five times faster
- 22:19If it's five times faster
- 22:21because Python, the runtime doesn't make it thread safe.
- 22:24maybe you choose the time and the way that you run that code.
- 22:27That's all I'm getting at.
- 22:28Like we would like it to print exactly a million times as a correctness,
- 22:32but maybe it's not Python's job.
- 22:34No, I think maybe that comment is like not necessarily like we core developers
- 22:40should want this program to print exactly one million.
- 22:42I think it's more of like, oh, if you were someone who's writing this code,
- 22:46you would maybe expect it to print a million because they're like, oh,
- 22:48you would maybe expect it to print a million because they're like, oh,
- 22:48in three nine and before it prints a million.
- 22:51So like, that's fine.
- 22:52But then...
- 22:52But then...
- 22:53Yeah, so you know what changed in the GIL?
- 22:54Yeah, so you know what changed in the GIL?
- 22:55I actually don't know specifically what changed in the GIL.
- 22:59It was something to do with context switching in the GIL.
- 23:02Made this no longer change.
- 23:04My guess is that it's performance, like you said.
- 23:04My guess is that it's performance, like you said.
- 23:05My guess is that it's performance, like you said.
- 23:07Yeah, exactly.
- 23:07Exactly.
- 23:08They probably said we can make the GIL more fine-grained
- 23:10and get more perceived cooperative or primitive multithreading as it goes.
- 23:15and get more perceived cooperative or primitive multithreading as it goes.
- 23:16and get more perceived cooperative or primitive multithreading as it goes.
- 23:16Something like that, right?
- 23:17Exactly.
- 23:18Yeah, and that's kind of what I was hinting at there.
- 23:20Okay, so that's the story.
- 23:25And basically, Mark said,
- 23:26thread safety is a property of the program,
- 23:29the Python code you write, or someone's written,
- 23:31in the implementation of CPython
- 23:34and how it behaves, in this case, the GIL, right?
- 23:36Yeah, so Mark was, I think the big thing for Mark's talk
- 23:39Yeah, so Mark was, I think the big thing for Mark's talk
- 23:39was this synchronization quadrant,
- 23:42where he is basically trying to make some bets
- 23:46about what's going to happen next
- 23:47to try to solve some of the problems
- 23:49that we're going to start seeing or parallel Python, right?
- 23:53And that's either anytime that you have both mutability
- 23:57and shared references, you have problems with synchronization.
- 24:02And if you introduce more immutability or less sharing,
- 24:07then you're starting to solve these problems.
- 24:10But the unfortunate thing is that there's a lot of Python
- 24:12that happens in the shared and mutable section.
- 24:15And we don't want to have to like ask everyone to rewrite all their Python programs.
- 24:21So it's definitely like a tough like quantization problem.
- 24:24Like how how big of an issue would making changes like this be?
- 24:28But then also like we don't even really today give people a ton of the tools that they would need to be able to work with like immutable data structures.
- 24:36Because like we have frozen set and we have tuples frozen list, frozen dictionary, any of that.
- 24:39Because like we have frozen set and we have tuples frozen list, frozen dictionary, any of that.
- 24:41Because like we have frozen set and we have tuples frozen list, frozen dictionary, any of that.
- 24:44And so, yeah, Mark just basically gave a whole bunch of things
- 24:46where it's like, here's all of these ideas that I have
- 24:48for making this more easy, having more immutability.
- 24:54And we should probably start thinking about that now
- 24:56because we're starting to get into free threading time.
- 24:59Yeah, certainly a threading collections sort of deal would be great.
- 25:04Yeah, I think the final thing there was like,
- 25:05Yeah, I think the final thing there was like,
- 25:07oh, we should definitely be doing this on PyPI.
- 25:09And I think the free threading team is planning on creating
- 25:12some immutable data structures and putting them on PyPI at first before migrating them.
- 25:17Oh yeah, that's an interesting idea.
- 25:18Like take them for a test run before people, before they get baked into a pattern, right?
- 25:23Exactly.
- 25:24You know, one of the things that I think is a danger of those types of data structures
- 25:29and they, don't get me wrong, they're useful and they're good.
- 25:32But one of the dangers is they can give people a false sense of security, right?
- 25:37If you have four or five lines of code that is changing state, you know, check to see something that is in the list.
- 25:44And then in the next line, remove something from the list.
- 25:48Even if that list itself is thread safe, if it's immutable, that's one thing.
- 25:52But if it's a mutable list that you're trying to make a thread safe version of, it's still possible that the check was thread safe and the remove was thread safe.
- 26:01But something happened between those two where the thing's no longer in the list, right?
- 26:05It gives people this sense of, well, I've got a thread safe collection, so I'm good to go.
- 26:09It's like on a line by line basis, that's true.
- 26:12But as a block of code, it's still not true.
- 26:14And you still have to think more about these things.
- 26:16That doesn't mean you shouldn't have them.
- 26:17But it is like an awareness sort of thing.
- 26:20Because I'm doing thread safe.
- 26:22Look, from system.threading.collections, import, whatever.
- 26:26We're good to go.
- 26:27Like, better.
- 26:29Yeah, yeah.
- 26:29You actually have to use the data structures.
- 26:31You can't.
- 26:32You have to use the immutable ones.
- 26:33Don't use the mutable ones and expect.
- 26:35Yeah.
- 26:36So it's, but it is certainly in the right way.
- 26:36So it's, but it is certainly in the right way.
- 26:38There was some, there's some pretty extreme in terms of how much they would change programming
- 26:44paradigms and ideas, suggestions here.
- 26:46And I don't remember if they, how these are starting to blend together these different
- 26:50topics, but yeah, like one of, one of the challenges is that functions and types are
- 26:57mutable, right?
- 26:58And that makes it hard, even at a CPython implementation,
- 27:02runtime level of dealing with some of these things.
- 27:06But changing them breaks the style of Python somewhat.
- 27:11That's a trade-off, right?
- 27:12That's a trade-off, right?
- 27:12It's a huge trade-off, yeah.
- 27:14And the fact that everything is mutable
- 27:16and a lot of things are shared,
- 27:18like the standard library,
- 27:19the whole standard library is shared across everything.
- 27:22It's really difficult to say that, oh yeah,
- 27:25if you're in that top right quadrant of shared and mutable,
- 27:28which way does like the standard library move like you can't uh uh you can't make everything
- 27:35immutable and you can't make everything not shared so it's what do you do yeah for sure and it's also
- 27:40immutable and you can't make everything not shared so it's what do you do yeah for sure and it's also
- 27:41a performance issue that you could because you know like right here mark points out that
- 27:47where mutability is lots of day uh maybe it is there but not for a good reason like functions
- 27:52and class method resolution order, all that stuff.
- 27:56It's mutable, but should it be?
- 27:58The thing is, if it's going to remain mutable,
- 28:01you probably have to do locks and stuff down in CPython,
- 28:04which will slow it down.
- 28:05If it were immutable, you don't have to lock it.
- 28:07You can read from multiple threads all day long
- 28:09and it's not going to hurt anything.
- 28:11So it's actually a performance consideration,
- 28:13not just a flexibility, right?
- 28:15If you say, we really value this multi-threading
- 28:18and we wanted to operate as quick as regular Python,
- 28:21but scale really well,
- 28:22these are trade-offs you got to consider, but then we all have like scars from two to three.
- 28:27And this could be a little like that. Yeah. Yeah. I think it's going to, it's going to
- 28:29And this could be a little like that. Yeah. Yeah. I think it's going to, it's going to
- 28:32matter. And I think that like companies are going to have to maybe start even like profiling their
- 28:37own code and trying to see where they're hitting those, like those like stop or stop the world
- 28:42locks or any sort of like performance issue, like, and trying to like track down where in their code
- 28:47we're hitting those like really expensive operations. And if they're trying to write
- 28:52this like extremely high parallel code, having having a way to profile it would be sounds really
- 28:59like a good idea, because I think that there's like going to be once this starts happening,
- 29:04people are going to have to start thinking about like CPython the runtime. What are the expensive
- 29:09operations that are happening in my own code that maybe could be done differently to take
- 29:14advantage of free threading completely. Yeah. Well, and going back to the opening part with like
- 29:16advantage of free threading completely. Yeah. Well, and going back to the opening part with like
- 29:19the red safe collections and so on, it's really difficult for us as Python devs to create those
- 29:24because we could write that in Python, but that makes it fairly slow. You need that down at the
- 29:29machine level, right? Like probably CPython. We'll see if it's CPython or RPython or whatever,
- 29:35as we go through this series of talks. But at the time of speaking, recording, it's CPython,
- 29:36as we go through this series of talks. But at the time of speaking, recording, it's CPython,
- 29:37as we go through this series of talks. But at the time of speaking, recording, it's CPython,
- 29:41right? It would be way faster if there was a in the standard library C implementation of a thread
- 29:47safe thing that's not being coordinated by a bunch of calls from the Python level. Okay. I guess
- 29:54closing this one out, Mark suggested adding a freezing method to data structures like byte arrays.
- 29:59That's kind of what we were talking about. And Barry Warsaw said that he'd brought up a proposal,
- 30:04a PEP that was a freeze protocol that was rejected 20 years ago.
- 30:12Those were different times.
- 30:13Those were different times, right?
- 30:14How many cores do we have?
- 30:16Or was it like a dual?
- 30:18Single digit still.
- 30:18Single digit still.
- 30:19Yeah, certainly a single dual, maybe a quad core if you were awesome back then.
- 30:24That's not the case anymore.
- 30:25So the benefit of having something like this is certainly higher.
- 30:28So I was like, why was that rejected again?
- 30:29So I was like, why was that rejected again?
- 30:31We don't know.
- 30:32Yeah.
- 30:32Freezing comes up yet again in another one of the talks about a fearless concurrency as well.
- 30:39So I think that something like that is probably going to get resurrected,
- 30:43at least tried to be done again.
- 30:47This portion of Talk Python To Me is brought to you by Sentry's AI agent monitoring.
- 30:52Are you building AI capabilities into your Python applications?
- 30:55Whether you're using OpenAI, local LLMs, or something else,
- 30:59visibility into your AI agent's behavior, performance, and cost is critical. You will
- 31:05definitely want to give Sentry's brand new AI agent monitoring a look. AI agent monitoring gives you
- 31:12transparent observability into every step of your AI features so you can debug, optimize, and control
- 31:18the cost with confidence. You'll get full observability into every step of your AI agent.
- 31:24That is model calls, prompts, external tool usage, and custom logic steps.
- 31:29AI agent monitoring captures every step of an AI agent's workflow from the user's input to the final response.
- 31:36And your app will have a dedicated AI agent's dashboard showing traces and timelines for each agent run.
- 31:44You'll get alerts on model errors, latency spikes, token usage surges, and API failures protecting both performance and cost.
- 31:53It's plug-and-play Python SDK integration.
- 31:56Open AI for now for Django, Flask, and FastAPI apps
- 32:00with more AI platforms coming soon.
- 32:02In summary, AI agent monitoring turns the often black-box behavior of AI
- 32:07in your app into transparent, debuggable processes.
- 32:11If you're adding AI capabilities to your Python app,
- 32:14give Sentry's AI agent monitoring the look.
- 32:17Just visit talkpython.fm/sentryagents to get started
- 32:21and be sure to use our code,
- 32:24TALKPYTHON, one word, all caps.
- 32:26The link is in your podcast player's show notes.
- 32:28Thank you to Sentry for supporting Talk Python and me.
- 32:29Thank you to Sentry for supporting Talk Python and me.
- 32:32I don't know if you wanted to jump to that one
- 32:33because I think that one and the uncontentious talk
- 32:34because I think that one and the uncontentious talk
- 32:34because I think that one and the uncontentious talk
- 32:36is quite, they're pretty related.
- 32:37We were talking fearless concurrency?
- 32:37We were talking fearless concurrency?
- 32:39Yes.
- 32:39Yeah, let's talk that one.
- 32:41So that's by Matthew Parkinson,
- 32:43Tobias Rigstad and Rudolf Stoltz.
- 32:47Hopefully I did a justice to your name, folks.
- 32:50Yeah, so fearless concurrency.
- 32:51This was one of the more detailed ones.
- 32:54And so this one, I don't know how I feel about this one, Seth.
- 32:59This is one of those things where it's like,
- 33:03if we take this really wild idea that really changes the way people have
- 33:07traditionally done programming for concurrency,
- 33:09then we could get great benefits.
- 33:11But it also is like, I don't know what your assessment is.
- 33:15My sense is that most Python people don't think a lot about threading, haven't done much threading, and their skills of threading, problem solving, using fairly straightforward things like locks is still pretty much like, I think they have those in the language.
- 33:32You know what I mean?
- 33:33Like, not really like, yeah, oh yeah, yeah.
- 33:35I use event signals and all sorts of like producer consumers, like not very much of that.
- 33:39You know what I mean?
- 33:41And so anyway, tell us what this is about because it's an interesting concept.
- 33:46Yeah.
- 33:47So.
- 33:47Debate it.
- 33:48Yeah.
- 33:48This concept is all about, so like the central concept is regions and regions are essentially
- 33:55in Rust, they have this model where a mutable reference is only allowed to be like a mutable
- 34:01object is only allowed to be referenced once, right?
- 34:03Like that's the ownership model in Rust, but that's like not compatible with how Python
- 34:04Like that's the ownership model in Rust, but that's like not compatible with how Python
- 34:05Like that's the ownership model in Rust, but that's like not compatible with how Python
- 34:08programs are in general. Yeah, because we love our mutability. And so this is essentially like,
- 34:14okay, well, what if we could have kind of like a looser version of that, where you have objects
- 34:20that are doing mutability and all of that within a region, but then anything outside the region
- 34:27can't mess with it. And then if you have that situation, which is more common and more like
- 34:32understandable for like a Python programmer, then you can get a bunch of performance benefits,
- 34:37because you know that nothing outside of the region
- 34:40is going to be doing any sort of like that special mutability.
- 34:44Just out of nowhere, we're going to change something
- 34:46about your function signature or something.
- 34:49And so then when you have this situation,
- 34:51you can even do, yeah, like so this diagram is showing
- 34:53all these references into that region from a specific thread.
- 34:59We know because of how the region is created
- 35:02that the other thread can't modify anything inside.
- 35:04And so you get a bunch of performance benefits
- 35:06for all of the operations that are happening inside that region.
- 35:09So I think that's kind of like the, that's like the elevated top.
- 35:13Regions are like Rust, but better for Python programmers.
- 35:15Regions are like Rust, but better for Python programmers.
- 35:16Yeah, yeah, sure.
- 35:17And if you want some other thread to have access to it,
- 35:20you've got to make all the things in that region and let go of it
- 35:23so that it can be transferred ownership over to the other thread and so on.
- 35:28Yeah, it's an interesting idea.
- 35:32Like I said, I feel like it's powerful,
- 35:34but I feel like it might be a bridge too far, you know?
- 35:36I don't know.
- 35:37Yeah, I think that, again, immutability came up here.
- 35:41They even had some talking about, like, being able to freeze regions.
- 35:45And so, like, you create a region of objects
- 35:47and then freeze the entire region of objects,
- 35:50and then none of those references can get modified.
- 35:53And so the whole freeze protocol discussion kicked off again.
- 35:57Yeah, so maybe something to look forward to for each protocol in Python.
- 36:01Yeah, the region-based ownership,
- 36:03It was definitely an interesting. I feel like, yeah, like, like you said, there's, there's a bunch of people that were asking questions about like, how much is the benefit? Yeah, it's, it's this different, like to, to take advantage of it, you would have to change your code slightly. So it's not just this like free thing that happens. It's more of like, okay, if you're like a library or project that really wants to take advantage of tons of parallelism, you would use these features. It wouldn't be just like, oh, every Python programmer, once they upgrade, they just get a bunch of free performance.
- 36:32No, no, of course not. Of course not. Yeah. I feel like there was some interesting questions,
- 36:38like interesting discussion, but for some reason I kind of, I left it out on my notes here, but
- 36:42let me see. There was, so one of the things is there's basically four PEPs proposed or at least
- 36:43let me see. There was, so one of the things is there's basically four PEPs proposed or at least
- 36:48imagined. I don't know if they're actually proposed yet that would make this, this happen, but maybe
- 36:53it's coming from a different section, but a different freezing conversation somewhere else.
- 36:57but there was the conversation like, okay, well, I've got a list.
- 37:01The list has a bunch of pointers.
- 37:03Some other thread got a hold of one of the items that's somewhere in the list,
- 37:08but I freeze the list.
- 37:10And so the list is frozen,
- 37:12but then you still have this object graph that has leaked some of the mutable data.
- 37:20So you could use that one pointer to one part in the array
- 37:23and you could be making changes to it.
- 37:24So there's like this discussion of object graphs as their whole becoming invalid or like they're becoming problems with like trying to share those that were not obvious, right?
- 37:35Like really subtle programming challenges, not a race condition, but kind of a syntactical structure behavior problem that you run into.
- 37:43And you can say, well, this section is frozen, but someone got a piece of it.
- 37:46So now what do you say about it?
- 37:47You know what I mean?
- 37:48Yeah, I think the idea with like freezing and regions and all that is it would definitely be tracking the number of references that are held by objects that are outside of the region.
- 38:02And so like if you would then try to like freeze an object or freeze that region, it would know that it's being referenced by something outside of a region.
- 38:10And it would raise an exception instead of like allowing that to happen.
- 38:13Because like right now it would just allow it to happen.
- 38:16Whereas like getting an exception that, hey, a race condition is possible in this situation.
- 38:21We're not going to let you freeze this object or freeze this region like that.
- 38:24I think that's like a better user experience because if you're using regions, you probably
- 38:29want these properties.
- 38:29want these properties.
- 38:32And that is a big benefit of that proposed idea that what would have been a runtime, either
- 38:39race condition or deadlock becomes an exception that tells you this would have been a problem,
- 38:44which that's massive.
- 38:46yeah so okay interesting my first impression is that it's too much it's too much for the python
- 38:51people yeah i'm sort of counting myself i'm not like just throwing shade like i'm sort of counting
- 38:51people yeah i'm sort of counting myself i'm not like just throwing shade like i'm sort of counting
- 38:52people yeah i'm sort of counting myself i'm not like just throwing shade like i'm sort of counting
- 38:53people yeah i'm sort of counting myself i'm not like just throwing shade like i'm sort of counting
- 38:55myself in the same group to some degree even though i've done a lot of like block event-based
- 39:00style threading still you know no it's it is interesting i think that it is a really good
- 39:02style threading still you know no it's it is interesting i think that it is a really good
- 39:05idea for them to break the project down into multiple peps instead of trying to like you know
- 39:09land this huge jet plane at the very end of the project instead just like try to incrementally
- 39:14because I think that it'll be interesting going into the future, seeing how many of these peps
- 39:20land, right? Like, will it be all of them? Or will it be one of them? You know, like,
- 39:24I think there are some interesting things in this project, even if we don't get the entire
- 39:29region based ownership model. Yeah, yeah. Yeah. Okay. Interesting. Jumping back one in time,
- 39:30region based ownership model. Yeah, yeah. Yeah. Okay. Interesting. Jumping back one in time,
- 39:35we've got number three of nine. So I'm feeling like we're gonna have to go faster.
- 39:39Yes, yes, we might have to. This one is really interesting. This was a long
- 39:41Yes, yes, we might have to. This one is really interesting. This was a long
- 39:44at least a long write-up.
- 39:45This is the state of free-threaded Python.
- 39:48And the question is,
- 39:50does it make sense to move to the next phase of PEP 703,
- 39:54which is, I believe that's the one that defined
- 39:56free-threaded Python by Sam.
- 39:59So this was done by,
- 40:00this presentation was done by Matt Page,
- 40:02saying free-threaded Python has come quite far.
- 40:06And I believe since actually this was done,
- 40:09this PEP has actually moved forward to say,
- 40:11yes, we are moving on, right?
- 40:13So this is a bit of the lag that you were talking.
- 40:15So this is a bit of the lag that you were talking.
- 40:15Yes.
- 40:16So I just,
- 40:16I shared a link with you also the,
- 40:19this just came through from the steering council.
- 40:22How long ago?
- 40:23A day ago from this recording.
- 40:25Oh yes.
- 40:25We bring you the fresh news folks.
- 40:27Yes.
- 40:29Where PEP 779 basically removed the experimental tag from the free threaded build.
- 40:34And yeah,
- 40:35I think that this presentation probably had a good chunk to do with that,
- 40:40where they showed off.
- 40:41Here's the state of everything.
- 40:42Here's our proof that the community is adopting it at the expected rate at this point in the project, especially like the scientific computing community where like the benefits of free threading are huge.
- 40:54We're seeing all this uptake.
- 40:55We're seeing within the bounds of the performance allowance for single threaded performance.
- 41:01Can we remove the experimental so that we can see this like next wave of adoption?
- 41:06That was basically the whole point of Matt's.
- 41:08And it seems like the answer is yes.
- 41:10It does seem like it's yes.
- 41:11It does seem like it's yes.
- 41:11Yeah.
- 41:12That's very cool.
- 41:13Yeah.
- 41:14It means yes for 3.14.
- 41:16So what was it, June?
- 41:18That means yes in like four or five months.
- 41:20Yep.
- 41:20Stay tuned in October where you get your stable.
- 41:23But please test your betas.
- 41:24Which, yeah, we're already in the beta, aren't we?
- 41:26Yeah, we're already in the beta phase.
- 41:28So test your betas, folks.
- 41:29So I guess it's worth pointing out just a little bit for folks who haven't been tracking this
- 41:33super closely, like you and I.
- 41:35This free-threaded Python's PEP 703 deal, I haven't seen anything like it, but I haven't.
- 41:42there might've been other stuff like this and I just didn't notice,
- 41:44but I'm all about the threading.
- 41:46So I've been paying more careful attention in that it was accepted,
- 41:49but conditionally marked as experimental.
- 41:52And with the caveat that we may take it away from Python later,
- 41:55if we don't like it anymore,
- 41:56which is an odd acceptance.
- 41:59I thought.
- 42:00Yeah.
- 42:00That,
- 42:00that mechanism of,
- 42:01I think it was just this,
- 42:04this knowledge that this project would last multiple steering councils and
- 42:08multiple years.
- 42:09And we were kind of going into the brave unknown a little bit and acknowledging that, that,
- 42:16hey, if it doesn't work out, we're going to have to pull it all out.
- 42:18And that is unfortunate, but it's just reality.
- 42:21We don't know what we're going to experience, what we're going to find.
- 42:21We don't know what we're going to experience, what we're going to find.
- 42:21We don't know what we're going to experience, what we're going to find.
- 42:22We don't know what we're going to experience, what we're going to find.
- 42:23It's such a big change.
- 42:25And so one of those criteria was it can't slow non-threaded Python down too much, right?
- 42:32And it looks like that's within 10%, unless you're on a Mac, then it doesn't seem to matter
- 42:37for some reason.
- 42:38Apple Silicon.
- 42:39Yeah, Apple Silicon is magic.
- 42:41But also with memory, right?
- 42:43I think it adds a little bit of a memory overhead
- 42:45for extra data structures to track safe reference counting and stuff.
- 42:50Yeah, and actually the new acceptance criteria for the next stage
- 42:55actually explicitly mentions the memory allowance.
- 42:58This is like in Donghee's new post about it
- 42:59This is like in Donghee's new post about it
- 43:02is that there's actually like an explicit number now.
- 43:04I don't think there was before.
- 43:05I think it was just tracking the CPU performance.
- 43:08Yeah, interesting.
- 43:09And I guess it's worth pointing out, there's a couple of resources that you highlighted here.
- 43:14There's a resource page by QuantSight, which is a big data science crew, that talks about what are the different projects that are relevant, I imagine, to the data science folks.
- 43:26And what is their status with supporting being tested, being released for free threading, right?
- 43:31And what is their status with supporting being tested, being released for free threading, right?
- 43:31Yeah.
- 43:31No, these sorts of statuses.
- 43:33And there's also one from Hugo, which tracks which wheels have the free threading available
- 43:39for just like an easy pip install.
- 43:41And in theory, that kind of means that these projects have tested it with free threading.
- 43:46Yeah, it looks like we're at 20%, I guess.
- 43:48Yeah, we're doing pretty good for this stage of like, it's experimental and it might get
- 43:48Yeah, we're doing pretty good for this stage of like, it's experimental and it might get
- 43:52ripped away.
- 43:53Like that was what it was before.
- 43:55Exactly.
- 43:56People are trying it out.
- 43:58I mean, like, this is how you get proof of people willing to try it.
- 44:02I know that inside of the actual Language Summit discussion, they also talked about, like, wanting to dig in deeper into this data, where it's like, okay, the projects support it, but how many users are installing those wheels to kind of show, like, how much is the community testing out free threading?
- 44:19Because just because a project supports it doesn't mean that, like, the community is trying it out at the same level.
- 44:25Right.
- 44:25So maybe that'll be relevant for the future.
- 44:27I suppose at least for the ones that offer true rethreaded wheels, you could use PyPI data.
- 44:27I suppose at least for the ones that offer true rethreaded wheels, you could use PyPI data.
- 44:33Yep.
- 44:33The Lime Hall, Google Cloud, BigQuery, or yeah, BigQuery.
- 44:34The Lime Hall, Google Cloud, BigQuery, or yeah, BigQuery.
- 44:36The BigQuery thing.
- 44:36The BigQuery thing.
- 44:38There are other ones that are, well, it's just pure Python, so it probably works.
- 44:42That's harder to quantify.
- 44:44So yeah, basically that change came along here.
- 44:48It says we support moving to what they call phase two, something like that.
- 44:53So there's multiple phases still, but yeah, excellent.
- 44:55So there's multiple phases still, but yeah, excellent.
- 44:56talked about this fearless one. We're no longer afraid of it. People are tired of hearing about
- 45:02threading for a minute. How about governance? Yeah. So Eric Snow did a presentation entitled
- 45:08The Challenges of the Steering Council. That's pretty interesting here. Tell us about this one.
- 45:13Yeah. So this one was kind of talking about as a core developer, how is the experience of having
- 45:20a steering council governing the development of Python? How is that working out right now? What
- 45:26What's the good? What's the bad? And I think the highlights are having a rotating, a completely
- 45:33rotating governance set of people on a council. Even if that means that most people are still on
- 45:39the council year over year, you still have that whole complete stoppage of time because people
- 45:44are starting to kind of like wind down because they know an election is coming. And then,
- 45:49so like PEP development gets impacted by that, right? If you're not timing your PEP authorship
- 45:55right, then sometimes you just get these huge delays. Also talking about how much the need for
- 46:02consensus impacts people's ability to participate in the discussions. So before, you could just
- 46:09participate openly. You don't have to worry about like, oh, am I speaking as the steering council,
- 46:13or am I speaking as individual or core developer? But now there's such a need for consensus that it
- 46:19kind of puts steering council members in a weird spot where they can't participate in the discussion
- 46:24unless they've already talked with other people in the steering council or do that as easily.
- 46:29And I think there was one more.
- 46:29And I think there was one more.
- 46:31Yeah.
- 46:31One of the thoughts, one of the threads was I had a conversation with somebody who is a core developer,
- 46:37but also happens to be on the steering council.
- 46:39I felt like we were in agreement on this idea.
- 46:43But then when I spoke to them as steering council member,
- 46:46then the story changed a little bit because it was a committee response.
- 46:51And you're like, I think Eric Snow himself expressed frustration that like, I've, yeah,
- 46:56And you're like, I think Eric Snow himself expressed frustration that like, I've, yeah,
- 46:58I've worked on this project.
- 46:59I thought we had agreement.
- 47:00And then turns out for some reason it wasn't right.
- 47:03Yeah, I think, yeah, they, it's really hard to know if you have consensus when the like
- 47:09response, right, is delayed because you can't tell then if it's consensus because like the
- 47:15discussion is, you know, slowed down and no one's bringing up any new points.
- 47:18or if it's because like people have thoughts,
- 47:22but then they have to talk
- 47:23to their steering council fellow members.
- 47:25And then, you know, it's difficult to judge
- 47:27and you don't really want to tip the hat
- 47:29one way or the other during the discussion
- 47:31because you don't want to get people with false hope.
- 47:34You don't want to like tell people
- 47:36not to work on something
- 47:37when it's actually going to go through.
- 47:38So it's challenging.
- 47:40Yeah, two other issues.
- 47:42I guess it's also worth pointing out before I say this
- 47:44that Eric said, look, things are working pretty well.
- 47:47Python hasn't stagnated.
- 47:48peps are getting approved things are happening right so that's good but one challenge is just
- 47:53it's slower to get responses about peps and so on because it's volunteer committee work rather than
- 48:02one person who can just be the decider you know yeah it's it is really tough and especially and
- 48:04one person who can just be the decider you know yeah it's it is really tough and especially and
- 48:05one person who can just be the decider you know yeah it's it is really tough and especially and
- 48:07one person who can just be the decider you know yeah it's it is really tough and especially and
- 48:08this kind of comes through with like here's all these things that are happening to python all at
- 48:13once and uh yeah good luck steering council with like trying to make all of those things work
- 48:19together because the thing is the steering council wants all of these good projects that
- 48:23are having to python to all land and to all have a good time but they all interdepend on each other
- 48:28i know that there was like a like people were talking about delegation as like a potential
- 48:33solution for this and i think the steering council like loves delegation they want to delegate more
- 48:38but they sometimes have an issue with delegation when it comes to these topics that like overlap
- 48:43with other big projects that are happening concurrently in Python, where you can't delegate
- 48:48someone for free threading because free threading touches everything. And so if you delegate
- 48:53something for free threading, then that person is not looking at all the other projects that are
- 48:58happening in Python. And that's a problem. Yeah. Yeah. I think another two other things I want to
- 49:00happening in Python. And that's a problem. Yeah. Yeah. I think another two other things I want to
- 49:03touch on real quick. There's a lot of interesting stuff in this one. One is visibility into what's
- 49:08happening in the steering council discussions, right? And that talks, it's a little bit addressing
- 49:13the surprise, but also just knowing. Kind of like you did for the language summit, you brought a lot
- 49:18visibility and awareness of what's happening there. A lot of this wouldn't be known, especially what
- 49:23happened in the discussion, if it weren't for something like that. So Guido pointed out that
- 49:28California, where he lives, has the Brown Act, which requires all meetings, like governmental
- 49:33meetings, to be open to the public for local governmental groups in charge of infrastructure
- 49:38without private deliberations barring personnel issues or something like that right so basically
- 49:43there's um regulations or rules for saying like here's how the stuff is open you know maybe all
- 49:49the conversations are lives all the meetings are live streamed or who knows you know something like
- 49:54that yeah no the there was a lot of different options thrown out there for like how to make
- 49:54that yeah no the there was a lot of different options thrown out there for like how to make
- 49:59these meetings or the deliberations or decision making of the steering council more open one of
- 50:04we don't put out there that like oh maybe they should just be open like everyone can see it like
- 50:09a live stream or like the meeting minutes are just you know transcribed instantly and then published
- 50:14the next day or whatever like something like that or because right now they publish meeting minutes
- 50:19and they're they're getting more regularly doing that like actually getting the meeting minutes out
- 50:24on time i know there was like some uh there was definitely some issue with that in the past where
- 50:29like the meeting minutes were really delayed and so it's really hard to to keep up to date with
- 50:34what actually got discussed.
- 50:35You want the 2025 version, not the live stream,
- 50:38but you put your AI assistant in all the meetings.
- 50:40Sure, yeah.
- 50:41And let it creep meeting notes.
- 50:44Honestly, it probably wouldn't be that bad.
- 50:46There might be a few things like,
- 50:49oh, you got that wrong, sorry.
- 50:51But in general, I think it'd be pretty good.
- 50:52And then the last thing here is
- 50:54there was some conversation of like,
- 50:56well, deciding by committee's tough
- 50:57and how much of the community should we listen to?
- 51:00And somewhere it was proposed that maybe,
- 51:03Maybe things like discuss.python.org.
- 51:06We've had polls and people said what they wanted and didn't want, right?
- 51:10And Barry wisely points out, like, polls are useful,
- 51:13but there's a whole bunch of people, millions of users,
- 51:16that are not participating in discourse.
- 51:19And I just want to take a moment to, like, restate.
- 51:24I think that Scott Hanselman has such an amazing topic or idea here
- 51:28where he talks about the dark matter developers, the unseen 99%.
- 51:32and I'll link to this.
- 51:33So obviously we know what dark matter is in astronomy,
- 51:36but like these are people who just go to their jobs.
- 51:38They don't spend their evenings on discussion boards.
- 51:41They don't go to conferences
- 51:43and participate in panel discussions.
- 51:46They're not on social media.
- 51:47They just use Python or whatever language
- 51:50and they do their thing and it matters deeply to them,
- 51:52but you won't ever notice them in these polls
- 51:55or PSF surveys or whatever
- 51:57because they just don't do those things.
- 51:58There's probably a good chunk of them.
- 52:00Yeah.
- 52:00And the steering council has the difficult job of representing these folks too, because
- 52:05they try to do what's best for Python.
- 52:07And that's for everybody, not just people that vote and polls on Discord.
- 52:10Right, right.
- 52:10That's what Barry was saying.
- 52:11It's like, it's tricky though.
- 52:12It's like, how do you measure that?
- 52:13You know what I mean?
- 52:14Yeah, it is super, super tricky.
- 52:16All right.
- 52:17All right.
- 52:17All right.
- 52:18Packaging.
- 52:19Yeah.
- 52:19So this one was really quite a quick talk or it was mostly just talking about, hey,
- 52:23this PEP is happening.
- 52:25The packaging governance process.
- 52:26I know that this got discussed a lot more in the packaging summit.
- 52:30Here, I think it was mostly just like, hey, this is happening.
- 52:33Here's what the steering council needs to know.
- 52:35Here's what core developers need to know.
- 52:37This whole thing came out of the wheel next directive, which is like wheel next.dev.
- 52:42They've got their own website.
- 52:44And it's basically trying to adopt the steering council model, but for packaging, because right
- 52:50now packaging peps tend to be delegated to like one or two people.
- 52:54And obviously, if things 10x or 100x in complexity and concurrent projects, it is just not possible for one person to just be doing that work.
- 53:03And so trying to adopt a council model, similar to the steering council.
- 53:07And I think the biggest open questions right now are things like, how is that initial council and how is the voting body going to be formed?
- 53:15Because the voting body for the steering council is core developers.
- 53:18But what is the voting body for Python packaging?
- 53:20But what is the voting body for Python packaging?
- 53:22Right, exactly.
- 53:23And again, it runs into some of the issues of sort of delegating, but packaging touches
- 53:28everything and so on.
- 53:29Yeah.
- 53:30Tricky.
- 53:30Okay.
- 53:31Excellent.
- 53:31And you referenced this one, Python Unmobile by Russell, Keith-Magee and Malcolm Smith.
- 53:34And you referenced this one, Python Unmobile by Russell, Keith-Magee and Malcolm Smith.
- 53:35And you referenced this one, Python Unmobile by Russell, Keith-Magee and Malcolm Smith.
- 53:36I just had Russell on the show not too long ago to talk about some of this work as well.
- 53:41But he says, after many years, this year, I can say that Python Unmobile is there, met
- 53:46with a large round of applause from the room.
- 53:48Yep.
- 53:49Yeah.
- 53:49It was it was an awesome moment, especially because I covered kind of like one of the last status reports before the big hurrah.
- 53:56We did it with Russell and Malcolm.
- 53:59Yeah, basically both of the peps for Android support and iOS support are finished.
- 54:04And they are tracking really, really close to basically adding tier two support for iOS and Android to Python.
- 54:11And tier two support basically means that if any feature change or bug fix or anything ends up breaking support for that platform,
- 54:19then a release can't proceed.
- 54:21So the platform basically needs to be supported
- 54:23for a release to happen.
- 54:24And that's a huge deal
- 54:25because it means that people can be confident
- 54:27that support isn't going to just be taken away
- 54:30or not surprised it doesn't work, which is great.
- 54:33or not surprised it doesn't work, which is great.
- 54:33So basically it just means there's a whole new,
- 54:36hopefully a whole new set of users
- 54:38that can use Python to build on these mobile platforms.
- 54:40Yeah, that'd be great.
- 54:41So specifically PEP 730 and 738,
- 54:44meaning that CPython builds and runs on iOS
- 54:48and builds and runs on Android, right?
- 54:50And that the core development team
- 54:54considers breaking that build
- 54:56part of breaking Python, right?
- 54:59There's still work to be done
- 55:01in terms of tooling, right?
- 55:03Like I'm not going to get a Python plugin
- 55:05for Xcode and drag a storyboard across
- 55:08and then publish it, right?
- 55:09Some of that stuff is coming from the Beware team
- 55:12backed by Anaconda, which is great.
- 55:14But I think this announcement is like
- 55:16the runtime CPython bits are in place.
- 55:19the runtime CPython bits are in place.
- 55:20Yeah, definitely.
- 55:21So like, yeah, it's not like,
- 55:23oh, suddenly Xcode just works
- 55:25and you can just write an Xcode project in Python
- 55:28just as easily as you would write,
- 55:29you know, a web app in Python.
- 55:31But yeah, the fact that it works at all,
- 55:33like the fact that you can run it on an iPhone
- 55:34like the fact that you can run it on an iPhone
- 55:36or on an Android phone,
- 55:38like that's huge.
- 55:39And the core developer team is willing to say,
- 55:41And the core developer team is willing to say,
- 55:42yeah, this is going to keep working.
- 55:43They should.
- 55:44It's not a flash in the pan, these mobile phones.
- 55:48Some people use them.
- 55:49Allegedly.
- 55:51Allegedly.
- 55:51How many do I have around me?
- 55:53I know.
- 55:55As I have one in view.
- 55:57Yeah, exactly.
- 55:57Where's the iPads and all the other stuff?
- 56:00Yeah, if I never see Xcode again in my life,
- 56:02I would be too soon.
- 56:04It's just such a bad, bad piece of software.
- 56:06It's such a bad tool for building software.
- 56:08I've had to work with a lot for our mobile apps.
- 56:10I've thankfully not have to dealt with any app development yet
- 56:11I've thankfully not have to dealt with any app development yet
- 56:13in my career. It's been all web development.
- 56:17It's such, you don't appreciate
- 56:20the freedom that you have. I know open source means freedom in some ways,
- 56:24but just the ability to go, I made a change. I published it.
- 56:28The world has it. It's not like I've had a debate with random people
- 56:28The world has it. It's not like I've had a debate with random people
- 56:32who are in a hurry and don't care about what I've built, and then they tell me that it infringes
- 56:36on something somebody else built, even when that's actually not true, because they don't understand
- 56:40what it does. That's even outside. A lot more people involved in mobile publishing. And rules
- 56:41what it does. That's even outside. A lot more people involved in mobile publishing. And rules
- 56:43what it does. That's even outside. A lot more people involved in mobile publishing. And rules
- 56:48that don't align with your incentives. Like we want to extract money from you. Anyway, that's a
- 56:54long story of through app in-app purchases. Yeah. Okay. Another one, I hinted to this, like,
- 57:01are we going to need to change the name of CPython? Because CPython means literally the C language
- 57:07implementation of python what a core developers want from rust and do they want rust in their
- 57:12c python you know is this a uh reese's pieces reese's peanut butter cup sort of thing you got
- 57:18your rust in my c or something yeah yeah yeah uh yeah this was this was a really interesting one
- 57:22your rust in my c or something yeah yeah yeah uh yeah this was this was a really interesting one
- 57:25because i think that um the room was maybe a little bit surprised by like how like open uh
- 57:32core developers were about maybe the idea of something optional being in cpython that is
- 57:39written in rust um because like cpython there's the core runtime right there's the syntax there's
- 57:44the interpreter there's all that stuff that like everyone uses on every single python session but
- 57:49then there's also all these standard library modules uh like os and sys and ssl and all of
- 57:56these other libraries right and those modules are kind of their own thing they're their own little
- 58:02project that just happens to live inside of cpython and i think the result of all of this
- 58:08conversation of like oh what what does what do core developers want from rust was like hey let's try
- 58:14let's try something uh maybe having a standard library extension module written in rust and like
- 58:20what would that take what would that look like um would we need to change the build system would we
- 58:25need to you know what would actually need to happen for for that to be a possibility um and i think
- 58:30there's some like huge benefits to having rust I mean David talked about a whole bunch of them
- 58:35where it's like this it's this new language there's lots of new programmers that are interested in it
- 58:39has all the memory safety stuff it has all the performance stuff and also yeah brief threading
- 58:42has all the memory safety stuff it has all the performance stuff and also yeah brief threading
- 58:42has all the memory safety stuff it has all the performance stuff and also yeah brief threading
- 58:43has all the memory safety stuff it has all the performance stuff and also yeah brief threading
- 58:44works really great with it there's just like tons of benefits to to having rust be a part of like a
- 58:50python python developers toolkit it's like how can we can we also have that in the cord for libraries
- 58:57and I think the answer was like try it out and see what happens and maybe who knows right like
- 59:03they definitely like core developers caveat it as like it'll definitely have to be an optional part
- 59:08of the standard library because not everyone is going to be using Rust on CPython and yeah maybe
- 59:16not one of the core parts of this of the actual of the interpreter in the runtime because they're
- 59:22they're quite well used and well maintained right now.
- 59:26So we'll see.
- 59:27I think it's going to be interesting to see if,
- 59:28if David and some other interested folks will,
- 59:31will put together something like a standard library module that uses rust.
- 59:34Yeah.
- 59:35Maybe in 2035,
- 59:36we'll still be doing this.
- 59:36We'll still be talking about,
- 59:38but we'll be talking about how the C adaptive layer to integrate with rust is
- 59:43working.
- 59:43So we can still keep all these C extensions running instead of the other way
- 59:46around.
- 59:47Yeah.
- 59:47Yeah.
- 59:48A couple of interesting takeaways.
- 59:49David points out, our best estimate is that somewhere between a quarter and a third of all native code being uploaded to PyPI for new projects is using Rust.
- 59:58Yeah, so this uses like, basically use this, it's py-code.org, where it can introspect into Python, like packages, the actual files that are uploaded, and then looks for Rust.
- 1:00:11And so like any package that is using Rust
- 1:00:15and it's a new package or a new release,
- 1:00:17you can see like what percentage of new projects
- 1:00:21are using Rust versus like C or C++ or something else.
- 1:00:24So David was able to extract that data point.
- 1:00:28Yeah, there's a lot of Rust happening for new projects.
- 1:00:30Obviously, old projects are likely very C, C++ dominated,
- 1:00:34but what are new Python developers choosing to use?
- 1:00:35but what are new Python developers choosing to use?
- 1:00:36but what are new Python developers choosing to use?
- 1:00:37Yeah, they didn't choose C.
- 1:00:39They just chose not to rewrite it in Rust yet, which is a different barrier, I suppose.
- 1:00:45Not saying they should, but I agree that choosing new projects is an interesting metric.
- 1:00:51So a couple other things from here is like, should we rewrite CPython in Rust?
- 1:00:56There's a lot of people like, or a lot of comments of like,
- 1:00:58there's a lot of people who just don't want to learn Rust.
- 1:01:01They don't care about Rust.
- 1:01:02This is a challenge for CPython is that the core developers in particular
- 1:01:07have a special skill of writing C
- 1:01:10and writing CPython in particular.
- 1:01:12And this moved the cheese for a lot of folks.
- 1:01:15And they like, how much do they care, right?
- 1:01:16Like they took Rust on Linux,
- 1:01:19Rust in Linux core as an example, right?
- 1:01:22People just, they don't want to change,
- 1:01:23which I'm not saying they should, but.
- 1:01:25Yeah, it's a really difficult question,
- 1:01:26Yeah, it's a really difficult question,
- 1:01:27especially when there's like this really tight ownership
- 1:01:31of like one or a few people
- 1:01:33with like this very specific part of code.
- 1:01:35And, you know, they've been maintaining it
- 1:01:37since for a really long time,
- 1:01:39and it's hard to try to force that sort of change onto people.
- 1:01:43But then things that are new or things that are optional,
- 1:01:46that's a really great place to start.
- 1:01:48I think learning from the Rust and Linux project
- 1:01:52is a really great idea for Python,
- 1:01:55because it's in a lot of ways,
- 1:01:57even though Linux maybe is an order of magnitude more complexity,
- 1:02:00I think that the situation or the structure of the code
- 1:02:04in the project is pretty similar,
- 1:02:06where there's like this really big core.
- 1:02:07And then there's like a ton of different smaller sub projects that are all have
- 1:02:11their own little owners, governance, contributors happening in the background.
- 1:02:15Yeah.
- 1:02:15A hundred percent.
- 1:02:16I mean, it is, it is 2025.
- 1:02:19We could try, try again.
- 1:02:21I mean, we could just vibe code it like, Hey, cursor, rewrite CPython and Rust,
- 1:02:25or you go to jail.
- 1:02:27Is that the meta these days?
- 1:02:28Is that the meta these days?
- 1:02:28Is that the meta these days?
- 1:02:30That's there's this really great video.
- 1:02:33Senior engineer tries vibe coding.
- 1:02:34It's always telling it, like, if it doesn't do it, it'll go to jail.
- 1:02:38But also it says, please, like, or you go to jail, please.
- 1:02:41It's amazing.
- 1:02:42I mean, as much as I joke, honestly, I do think AI code assistance could help in supporting
- 1:02:49the transition.
- 1:02:50I know that's good at C and it's good at REST.
- 1:02:52Not that you should vibe code it.
- 1:02:53That's not what I'm saying.
- 1:02:55But anyway, we live in weird times, Seth.
- 1:02:58We do.
- 1:02:58We really do.
- 1:03:00I think the other constraint here that maybe a lot of people don't track is that it's not just, I need to somehow make CPython work on Linux, Windows, and Mac.
- 1:03:12And if we build it in Rust, that's a different tool chain.
- 1:03:14There are a bunch of edge cases and platforms that are not very commonly used that maybe Rust itself doesn't even support that Python has promised to keep running on, right?
- 1:03:25Yeah.
- 1:03:26Or, I mean, even if not promised, right?
- 1:03:28Like there's people that are just running, running on these platforms.
- 1:03:29Like there's people that are just running, running on these platforms.
- 1:03:30Like there's people that are just running, running on these platforms.
- 1:03:32And then if something would break, they would only show up when something breaks.
- 1:03:36And what do you do?
- 1:03:38Right.
- 1:03:38Like you've been supporting these people for a very, very long time.
- 1:03:39Like you've been supporting these people for a very, very long time.
- 1:03:39Like you've been supporting these people for a very, very long time.
- 1:03:42And what, what, what happens then?
- 1:03:44What, what was stability guarantees?
- 1:03:45Do you give those people that, you know, maybe you're not like a tier one platform, but if
- 1:03:50Do you give those people that, you know, maybe you're not like a tier one platform, but if
- 1:03:50you've been, you know, making them use like they've been using Python totally normally
- 1:03:51you've been, you know, making them use like they've been using Python totally normally
- 1:03:54for all this time.
- 1:03:55What does that mean?
- 1:03:56So, yeah, well, we just talked about tier three iOS and Android.
- 1:03:56So, yeah, well, we just talked about tier three iOS and Android.
- 1:03:58support like does it work there i maybe i don't know but you've got like this little micro python
- 1:04:05circuit python chip that i got that's like i don't know like size of a thumb or something
- 1:04:10does the build system work for that i don't know yeah but i'm running python on it today yeah i
- 1:04:14does the build system work for that i don't know yeah but i'm running python on it today yeah i
- 1:04:15think that like one of the things that got identified was the state of gcc support for
- 1:04:20rust as as like something interesting so that's something to track if you're if you're interested
- 1:04:25in Rust and CPython working together,
- 1:04:27that's definitely like a project
- 1:04:29that's outside of Python and Rust's,
- 1:04:32like, and, you know,
- 1:04:33Maturin and PyO3s
- 1:04:35if you want to watch that project.
- 1:04:37Yeah.
- 1:04:37Did say we need to go faster.
- 1:04:39Lightning around.
- 1:04:41Close things out here.
- 1:04:42I guess there's really,
- 1:04:44there's just the Pyodide.
- 1:04:45We didn't talk about the docs
- 1:04:47or the lightning talks.
- 1:04:48What else should we say
- 1:04:49before we call it a wrap on this?
- 1:04:51Should we go,
- 1:04:52let's go into the lightning talks
- 1:04:53and look at Guido's.
- 1:04:55I think that one was the most well-received
- 1:04:58and interesting lightning talk,
- 1:05:00which is contrasting how Python is developed today
- 1:05:01which is contrasting how Python is developed today
- 1:05:02which is contrasting how Python is developed today
- 1:05:05versus how it was developed by Guido
- 1:05:08and what sorts of things are we kind of like leaving behind
- 1:05:12by developing Python in this way?
- 1:05:14And is there anything that we can learn from how we use it?
- 1:05:16And is there anything that we can learn from how we use it?
- 1:05:17Does he mean more committee, more community agreement?
- 1:05:19Does he mean more committee, more community agreement?
- 1:05:21Or what was he getting at?
- 1:05:23I think it's the complexity side was the part that was really big for him, where it's like,
- 1:05:28we're trying to, if you want to land a feature in CPython, you need to write a perfect pep,
- 1:05:35come with a pull request that is, you know, performant and secure and the API is perfect
- 1:05:42and it's been vetted and it's been used. And like, there's this super, super high bar to clear,
- 1:05:47to add a feature to see Python.
- 1:05:51And you're not allowed to get it wrong.
- 1:05:53The first go around basically is I think was what he's mostly mentioning.
- 1:05:57Because demanding perfection means it's like the,
- 1:06:01the code equivalent of don't let good be the enemy or the perfect great be the
- 1:06:05enemy of the good or something like that. Right. Sure. Yeah, exactly. Yeah.
- 1:06:07enemy of the good or something like that. Right. Sure. Yeah, exactly. Yeah.
- 1:06:08Stuff like that where it's like, Hey, we, if,
- 1:06:10if Python were developed in that way early on,
- 1:06:13it wouldn't have worked out because that would still be in the lab or an idea
- 1:06:16it wouldn't have worked out because that would still be in the lab or an idea
- 1:06:16it wouldn't have worked out because that would still be in the lab or an idea
- 1:06:17or something exactly so i think that's a really interesting one to check out if you're looking at
- 1:06:21lightning talks okay cool now i i know some features have to be absolutely dead center in
- 1:06:22lightning talks okay cool now i i know some features have to be absolutely dead center in
- 1:06:28the core of the cpython runtime like free threading or a no GIL initiative or some new memory model
- 1:06:35or whatever but a lot of these things probably certainly with the standard library could maybe
- 1:06:41You talked about the immutable, the thread-safe concurrency data structures.
- 1:06:46Maybe there's a more formalized path of starting these things
- 1:06:50as third-party libraries on PyPI.
- 1:06:53And once they reach a certain bar maybe of adoption and maturity,
- 1:06:57then they make a step towards that.
- 1:06:59It would be interesting if, I know people can just go and create a project and do it,
- 1:07:02but like here's the prescribed way of non-C runtime features being added to the language.
- 1:07:09and it starts out in public and it makes its way over.
- 1:07:13Yeah, I think that got discussed
- 1:07:14in the last language summit too.
- 1:07:16I'm not sure if there's been any progress
- 1:07:18on like actually making a solid model
- 1:07:20for like here's how you go from PyPI to PEP
- 1:07:22to standard library.
- 1:07:24But it's definitely,
- 1:07:25I think it's just going to keep coming up
- 1:07:27until that happens.
- 1:07:28Because it's really common, right?
- 1:07:29Like so many features get developed this way now.
- 1:07:32It's also interestingly,
- 1:07:34some of the ideas of that direction have been rejected,
- 1:07:37like moving requests into cpython standard library was rejected because it would harm the growth and
- 1:07:44status of requests not cpython even though request is clearly better than what's built into cpython
- 1:07:50for your access you know not throw no shade that stuff's been around for a long time but yeah i
- 1:07:54for your access you know not throw no shade that stuff's been around for a long time but yeah i
- 1:07:54mean request is built on it so it obviously does some job well yeah yeah exactly it's just like a
- 1:07:59mean request is built on it so it obviously does some job well yeah yeah exactly it's just like a
- 1:08:00more user-friendly higher level api in front of it and we have httpx for like concurrent basically
- 1:08:07asyncio requests equivalent.
- 1:08:09So there's certainly history or examples
- 1:08:12of stuff starting out there becoming very popular
- 1:08:15but not wanting to go in,
- 1:08:17but specifically things that you might want to.
- 1:08:19Like, for example, would data classes be a thing
- 1:08:22if Pydantic was on a trajectory
- 1:08:24to sort of fill that role or attrs from Hennig
- 1:08:26to sort of fill that role or attrs from Hennig
- 1:08:27or something like that, right?
- 1:08:29Maybe not, I don't know.
- 1:08:30Yeah, no, I think that that whole road of experimentation
- 1:08:34and then moving into the standard library,
- 1:08:35like, we're just going to keep seeing it
- 1:08:37because it's just, it's such a great way
- 1:08:38to get stuff in the hands of users really, really quickly.
- 1:08:41Yeah. And I don't think just like,
- 1:08:43if I just went out and made a library,
- 1:08:44said I'm doing a library
- 1:08:45and I think it would be fun to have this as part of Python.
- 1:08:47Like people go, good for you, Michael.
- 1:08:49They would ignore it. Right.
- 1:08:51But if it was a little bit blessed by the steering kit,
- 1:08:54like we're experimenting and considering this idea
- 1:08:57as core developers, it starts here,
- 1:08:59but if it gains traction, it becomes Python.
- 1:09:01I think that is a different positioning
- 1:09:04than just like a random project that looks interesting.
- 1:09:07Yeah, definitely.
- 1:09:08I think that last year,
- 1:09:10one of the things that got suggested was like,
- 1:09:12hey, maybe we allow people to have those sorts of projects
- 1:09:15once they reach some amount of maturity
- 1:09:18and like direction to be housed under the Python GitHub org
- 1:09:22to try to give them some sort of like legitimacy of like,
- 1:09:22to try to give them some sort of like legitimacy of like,
- 1:09:23to try to give them some sort of like legitimacy of like,
- 1:09:25yeah, this project is on the track to going here
- 1:09:28and here's us showing that it is, right?
- 1:09:31Yeah, yeah, yeah.
- 1:09:32I feel like I should just say one more thing though.
- 1:09:34I do think there's a lot of value in having Python be smaller
- 1:09:38and having a bigger ecosystem outside of it.
- 1:09:42I'm not suggesting that everything should just be moved in into Python.
- 1:09:45I do think that just go like, I don't care what CPython does.
- 1:09:48If I like this HTTP library, I'm going to use it.
- 1:09:50And if it wants to implement itself in Rust or OCaml or whatever,
- 1:09:54I don't care.
- 1:09:54If that's better, they can go do that.
- 1:09:57And then I'll use it and it'll be great, right?
- 1:09:59and that doesn't have to go through committees and all this kind of stuff.
- 1:10:03So I'm not necessarily saying like everything should try to like find a hub
- 1:10:07and spoke model into the core Python,
- 1:10:09but those things that do intend to be there,
- 1:10:11it'd be cool to see like this sort of progressive path.
- 1:10:14People can get to it sooner. Anyway. Yeah.
- 1:10:16Final thoughts on that before we call it a show.
- 1:10:18I think we nailed it. Honestly.
- 1:10:21No, we definitely did. We definitely did. Yeah, no, let's,
- 1:10:26let's wrap it up. Thank you for doing this. This writeup.
- 1:10:29It's really interesting.
- 1:10:30I always value this look into, you know,
- 1:10:32to where's Python going.
- 1:10:33It's a lot to take from it.
- 1:10:35Final thoughts on this year's Language Summit?
- 1:10:38It is a really exciting year to be a Python developer.
- 1:10:41I think that 3.14 is,
- 1:10:44it's got so many really interesting things
- 1:10:46and changes to try.
- 1:10:48I am quite excited to get my hands on the beta,
- 1:10:51but then also the stable releases.
- 1:10:53I really am excited to see what people actually
- 1:10:56then go and do with the stuff, right?
- 1:10:58like building web apps with Python,
- 1:11:00building mobile apps with Python,
- 1:11:01building these massively parallel
- 1:11:04applications with Python.
- 1:11:05It's a pretty good time
- 1:11:06to be a Python developer right now.
- 1:11:06to be a Python developer right now.
- 1:11:09It's only getting better.
- 1:11:10Absolutely.
- 1:11:11All right, Seth.
- 1:11:11Thanks for being back on the show
- 1:11:13and thanks for doing the write-up.
- 1:11:14Thanks for having me.
- 1:11:15Yep. See you later.
- 1:11:16This has been another episode
- 1:11:17of Talk Python To Me.
- 1:11:19Thank you to our sponsors.
- 1:11:21Be sure to check out
- 1:11:21what they're offering.
- 1:11:22It really helps support the show.
- 1:11:24Take some stress out of your life.
- 1:11:26Get notified immediately
- 1:11:27about errors and performance issues in your web or mobile applications with Sentry. Just visit
- 1:11:33talkpython.fm/sentry and get started for free. And be sure to use the promo code
- 1:11:38talkpython, all one word. Want to level up your Python? We have one of the largest catalogs of
- 1:11:43Python video courses over at Talk Python. Our content ranges from true beginners to deeply
- 1:11:48advanced topics like memory and async. And best of all, there's not a subscription in sight.
- 1:11:53Check it out for yourself at training.talkpython.fm.
- 1:11:57Be sure to subscribe to the show, open your favorite podcast app, and search for Python.
- 1:12:01We should be right at the top.
- 1:12:03You can also find the iTunes feed at /itunes, the Google Play feed at /play,
- 1:12:08and the direct RSS feed at /rss on talkpython.fm.
- 1:12:12We're live streaming most of our recordings these days.
- 1:12:15If you want to be part of the show and have your comments featured on the air,
- 1:12:18be sure to subscribe to our YouTube channel at talkpython.fm/youtube.
- 1:12:23This is your host, Michael Kennedy.
- 1:12:25Thanks so much for listening.
- 1:12:26I really appreciate it.
- 1:12:27Now get out there and write some Python code.
- 1:12:51*music*