Latest / Talk Python To Me / #331: Meet the Python Developer in Residence: Lukasz Langa
Transcript
- 0:00Python is a technology and community built upon the goodwill and volunteer time of thousands of
- 0:05contributors, from the core devs inside CPython to the authors of hundreds of thousands of external
- 0:10packages over on PyPI. Until recently, the only full-time folks have been at the PSF doing very
- 0:16important work, but that work has been largely outside of CPython the technology itself.
- 0:21In July 2021, the PSF created the Python Developer in Residence position. The first
- 0:28person in that role is Lucas Lange, and he's here to tell you how it's going and how it'll benefit
- 0:33Python at large. This is Talk Python To Me, episode 331, recorded August 25th, 2021.
- 0:40Welcome to Talk Python To Me, a weekly podcast on Python. This is your host, Michael Kennedy.
- 0:58Follow me on Twitter where I'm @mkennedy and keep up with the show and listen to past episodes
- 1:03at talkpython.fm and follow the show on Twitter via at Talk Python. We've started streaming most of our
- 1:10episodes live on YouTube. Subscribe to our YouTube channel over at talkpython.fm/youtube to get
- 1:15notified about upcoming shows and be part of that episode. This episode is brought to you by us over
- 1:22at Talk Python training and the transcripts are brought to you by Assembly AI. Lucas, welcome back
- 1:27to Talk Python To Me.
- 1:29Lucas Lange: Very happy to be here. It's the first time you can see me as well, I guess. So it's kind of
- 1:33kind of a new thing for me. So first times, first times.
- 1:36Lucas Lange: You've been on the show three times before.
- 1:39Lucas Lange: Yep.
- 1:39Lucas Lange: You talked about, let's see, the very first one was gradual typing of production
- 1:44applications. And that was applying type hints and mypy over on Instagram, which was fantastic work. And
- 1:51Lucas Lange: I loved what you're doing there. Then we talked about the Python language summit. You
- 1:55Lucas Lange: gave us a wrap up on that or a rundown on that for 2018 and then diving into CPython 3.8 and
- 2:02Lucas Lange: beyond. So here we are again. Thanks for being back.
- 2:06Lucas Lange: Yeah. Happy to be here. Like 3.8 is now already an old release, right? It's already in
- 2:11security only fixes mode. So it was new at the time. Lucas Lange: Yeah. I think when we were talking about
- 2:16it, it's like, what are the new exciting features? I guess, you know, while we're on that topic,
- 2:19Lucas Lange: just real quickly is, you know, what are the new features that you're excited about now,
- 2:23Lucas Lange: either 3.9, 3.10 or 3.11? Like what's out now, what's just about out and what's coming
- 2:29Lucas Lange: soon?
- 2:29Lucas Lange: There's quite many. The one that I'm kind of living with the most right now is actually
- 2:34Lucas Lange: kind of just better error messages. So this is kind of like a trend that is still kind of
- 2:40Lucas Lange: happening, right? So there's further changes for 3.11 later, which is already like the main
- 2:45Lucas Lange: branch right now of development, right? So 3.10 is already in release candidate mode. So
- 2:50Lucas Lange: like we're going to get the second release candidate pretty soon. And then,
- 2:54Lucas Lange: you know, the final release. So all new features now go to 3.11 already,
- 2:58Lucas Lange: but the better error messages like really kind of, they're kind of this icing on the cake that
- 3:02Lucas Lange: make stuff much nicer for you. There's a bunch of typing changes that I was really looking
- 3:08Lucas Lange: forward to like back in PEP 484 times, like when we first added string and well annotations
- 3:14Lucas Lange: to Python. I always kind of wanted them to feel more native inside your code. And now with Python 3.10,
- 3:23Lucas Lange: you can use, I guess it's PEP 604, like union types, you know, like that kind of are not so
- 3:30Lucas Lange: verbose. They use the pipe operator instead of spelling out, you know, capital case union of
- 3:37Lucas Lange: whatever, which is kind of more compact and also more readable through this, right? Because
- 3:43Lucas Lange: now types that aren't super trivial don't look as scary anymore, right? Because like you kind of
- 3:49Lucas Lange: don't have to have the square brackets so much and whatnot. Yeah. Yeah. For people who haven't explored this deeply, there
- 3:55Lucas Lange: previously was basically a parallel, a mirrored hierarchy of types that weren't actually the types, but they
- 4:04Lucas Lange: describe the types. So from typing import capital L list, that would say you're returning a lowercase L list as your type.
- 4:11Lucas Lange: And then it got even more interesting when you have like optional, right? I have an optional user that's returned from this query. Now you can just do things like
- 4:19Lucas Lange: user pipe none and things like that. Yeah, absolutely. So this was fun, but also like what
- 4:24Lucas Lange: they really kind of like to use is that like the lowercase types just feel more natural, right? So, you know, kind of just putting
- 4:32Lucas Lange: dicts and lists and whatever, like just straight out of built ins and just applying generics to them just kind of looks right. Like feels right. So yeah, it always felt weird. Like why do I have to do an import just to talk about this thing I'm already using, right?
- 4:44Lucas Lange: Yeah. Because like, if you actually look at how the feature was enabled to
- 4:49Lucas Lange: allow lowercase list of string and whatnot, like this is now part of the interpreter. This was a
- 4:54Lucas Lange: kind of changed like deeply in the C code of the interpreter back in 2014 when we first released
- 5:01Lucas Lange: PEP 484. The value of typing wasn't really so clear cut yet. It was a new idea. We wanted to have this out.
- 5:09Lucas Lange: And we wanted to have people actually tested and say, you know, and is this something that Python could actually see value in?
- 5:16Lucas Lange: So it was a little too early to make, you know, drastic changes to the interpreter just because it would be handy to have for typing.
- 5:24Lucas Lange: Like it's kind of, you know, icky in the sense that between here and there, we clearly have this transition period where typing just becomes more natural to use.
- 5:36Lucas Lange: And you know, more ergonomic and obviously the tooling like mypy matures, but it's what you have to do if you're dealing with a language that is 30 years old. Right?
- 5:46Lucas Lange: So we didn't have this clean room experience because the language was already successful. It was already out there.
- 5:52Lucas Lange: So yeah, like a bunch of new languages now have this comfort, like have this luxury of just being able to just, you know, can look at an empty page and just design from scratch. Like we had to evolve what we had.
- 6:04Lucas Lange: Yeah, yeah, for sure. I mean, Python is 30 years old, right?
- 6:06Lucas Lange: But you know, language that gives me sort of that comes to mind when you say that is Swift. Right? Swift took a bunch of these ideas like you have to explicitly.
- 6:16Lucas Lange: Say here's a nullable reference type and whatnot, but like all of that stuff was done looking back at Python,
- 6:22Lucas Lange: at C# at C++ and all these languages that, you know, and then like sort of put together the pieces. Right?
- 6:28Lucas Lange: Yeah, absolutely. Like Swift in particular, I kind of like, you know, kind of it fits my brain.
- 6:34Lucas Lange: I talk with Corey Benfield every now and again about it.
- 6:36Lucas Lange: Like he's now working on it actually at Apple.
- 6:38Lucas Lange: So yeah, I do feel it's, it's a good evolution of Objective-C since, you know, kind of it's where it all
- 6:45Lucas Lange: Yeah, you know, started from.
- 6:47Lucas Lange: It's definitely an improvement. I don't want to go too far down the rat hole,
- 6:50Lucas Lange: But I do wish it had something like a better standard library like Python has. I feel
- 6:55Lucas Lange: Like the language is good. But then when I want to do stuff, I'm like, oh, it's,
- 6:58Lucas Lange: There's so much missing from like the foundation of it in terms of the functionality.
- 7:03Lucas Lange: Anyway, long story short, because it still depends on the whole Objective-C sort of like
- 7:07Lucas Lange: really funky class library stuff.
- 7:10Lucas Lange: Oh yeah.
- 7:10Lucas Lange: Yeah. I'm sure I'll get mail about that.
- 7:11Lucas Lange: All right. So sorry, I super derailed you. What else is exciting that's coming in the near term?
- 7:18Lucas Lange: Of course, like the biggest kind of feature that was most controversial,
- 7:22Lucas Lange: probably is the match statement, right? So pattern matching in Python, it is a huge feature.
- 7:27Lucas Lange: It kind of changes how, you know, some of the code that you're dealing with looks.
- 7:32Lucas Lange: And also it kind of introduces for the first time this concept of context specific
- 7:39Lucas Lange: keywords, right? Like that's something that maybe not so many what's new in Python 3.10 posts
- 7:45Lucas Lange: It's kind of touched on, but just notice that you can still use match and case as regular
- 7:51Lucas Lange: variable names. You can still name your functions that you can still use this as argument
- 7:56Lucas Lange: names and whatnot and whatnot. But when the Python grammar discovers when the parser sees
- 8:01Lucas Lange: that, oh, this is in a place where it fits a construct that looks like a match statement,
- 8:07Lucas Lange: it'll deal with that and it'll parse that successfully. That is what we could do,
- 8:12Lucas Lange: having this new peg parser that it started in Python 3.9 like it was released then already,
- 8:19Lucas Lange: but without any new features, right? Like now in Python 3.10, we're getting the match
- 8:23Lucas Lange: statement. I'm still kind of, you know, to be honest with you, before this area where I can
- 8:29Lucas Lange: tell you that I have a lot of experience writing match statements, it's like super useful for me
- 8:34Lucas Lange: and whatnot. Like I've written a few of them where it actually made sense and made the code.
- 8:39Lucas Lange: Well, I couldn't really say shorter because usually it actually doesn't, but much
- 8:44Lucas Lange: more readable because it's kind of flatter. It's easier to parse. Like visually, I mean by a
- 8:50Lucas Lange: person. But it's not something that I really use daily. So like whenever somebody is really
- 8:56Lucas Lange: worried about like, hey, like what is Python becoming? It's such a complex feature.
- 9:00Lucas Lange: Like, you know, what about the kids? Think of the children. Like I always tell them like, hey,
- 9:04Lucas Lange: like how many descriptors did you implement in your last week or month or year?
- 9:10Lucas Lange: Like probably none.
- 9:10Lucas Lange: True. And how many meta classes?
- 9:12Lucas Lange: Exactly.
- 9:13Lucas Lange: So like how many meta classes have you worked with? That's a good point.
- 9:16Lucas Lange: It's almost like another feature like this, where sometimes it will make perfect sense,
- 9:20Lucas Lange: but most often, just like with assignment expressions, like most often you won't see them. You
- 9:27Lucas Lange: You won't be using those.
- 9:28Lucas Lange: Yeah.
- 9:28Lucas Lange: Okay. Well, fantastic. You know, you're talking about the foundational stuff like the peg parser,
- 9:35Lucas Lange: right? That's not a feature that a bunch of people are saying, you know, I can't wait for a
- 9:41Lucas Lange: better parser, right? But it's one of these enabling things. And I feel like this whole role that
- 9:46Lucas Lange: you're in is sort of in that same idea, right? The same vein that that it might not be super
- 9:54Lucas Lange: public or generate a bunch of new features, but it might be making things a lot smoother for
- 10:00Lucas Lange: everyone who wants to come along and do those things. What do you think?
- 10:04Lucas Lange: The way I look at it is that there's a lot of us on the core team and even more people
- 10:11Lucas Lange: around the core team who are kind of, well, we call them drive by contributors, right?
- 10:16Lucas Lange: Yeah.
- 10:16Lucas Lange: Like, you know, they would find an issue, just produce a bunch of pull requests and
- 10:20Lucas Lange: maybe then kind of disappear. Or maybe they're around, but like not producing more for us.
- 10:24Lucas Lange: And we are obviously very happy with any contribution. And the sad reality is that like,
- 10:29Lucas Lange: we have more of those than we can realistically review.
- 10:33Lucas Lange: Yeah.
- 10:33Lucas Lange: So the problem isn't even that, you know, you need more people to actually be able to,
- 10:39Lucas Lange: actually produce value. We need people to evaluate the value that we're already getting
- 10:45Lucas Lange: from the community and from each other to be able to, you know, actually merge them into
- 10:50Lucas Lange: mainline and to see how the language evolves. Obviously every year, you know, this changes
- 10:56Lucas Lange: over the years how Python is developed. Like we're going to have a bunch of people who are
- 11:01Lucas Lange: super invested and they're going to be spending crazy amounts of time, including on weekends and
- 11:06Lucas Lange: whatnot, like to work on Python, even for free. I know I did that for like, you know,
- 11:10Lucas Lange: a decade. So those contributions are super valued, but usually those really,
- 11:15Lucas Lange: those people change, right? Like, you know, you cannot really do this in a consistent
- 11:20Lucas Lange: manner day in day out for a long period of time. You know, your life situation changes,
- 11:26Lucas Lange: you know, your job changes or whatnot. And you know, like you stop contributing. And what happens
- 11:31Lucas Lange: to Python then? Well, we lose some value. Currently we have over 1400 open pull requests,
- 11:38Lucas Lange: and I've been on a mission to kind of bring that number down. Currently, as I'm looking
- 11:42Lucas Lange: at it, it's 1421.
- 11:43Lucas Lange: I was looking at this morning here, I put it up on the screen for people watching live and
- 11:48Lucas Lange: wow, wow, wow. That is a lot of information coming in and not just the sheer number of open
- 11:55Lucas Lange: ones. But the thing that struck me is I'm reading down 26 minutes ago, an hour ago, two hours
- 12:00Lucas Lange: ago, three hours ago, three hours ago, four hours ago, five hours. Like that's hard to keep up no
- 12:06Lucas Lange: matter what, right?
- 12:07Lucas Lange: Yeah. Some of those are already reviewed, like the faster implementation of Gzip decompress that you
- 12:12Lucas Lange: have like somewhere in the screen, like a little lower than the first one.
- 12:16Lucas Lange: Yes, like this on lowest one at the moment.
- 12:19Lucas Lange: So, so the thing is like there's so many of those that, you know, kind of somebody
- 12:24Lucas Lange: actually has to come in and you know, day in day out, like butts in seats, just review the
- 12:29Lucas Lange: value that people are already providing for you. Like this particular change actually extracted
- 12:34Lucas Lange: from an older rejected change, like is actually providing clear value, right? Like now we're
- 12:41Lucas Lange: going to have Gzip compress and decompress be faster, right? But it is actually not change that is
- 12:46Lucas Lange: obvious, right? Like you have eight files that are changed. You really need to see that,
- 12:51Lucas Lange: Oh, there's a lot of code that changed. Some of it actually wasn't, it was just moved so that we
- 12:55Lucas Lange: could reuse it better. Some of it actually has subtle changes. So this isn't something that many
- 13:02Lucas Lange: volunteers will be willing to do on their free time because it's mostly kind of, well, it's work.
- 13:07Lucas Lange: It really is work.
- 13:08Lucas Lange: It's the janitorial typo. Just keep it clean. Keep it going. Yeah.
- 13:13Lucas Lange: Exactly.
- 13:14Lucas Lange: Yeah, exactly.
- 13:15Lucas Lange: So let's go ahead and actually introduce this main topic here, the big announcement for you.
- 13:20Lucas Lange: On your blog here you have, I am the new CPython developer in residence. Congratulations.
- 13:25Lucas Lange: Ah, thank you. I'm still very excited about this. Like back when we only had volunteers doing this and maybe,
- 13:31Lucas Lange: while Guido being, you know, kind of tolerated as the BDFL at Dropbox, because obviously he was being paid to actually move my
- 13:40Lucas Lange: PyPy forward. Right? That was his team. But obviously he did a lot for Python as well. And that was
- 13:46Lucas Lange: Kind of understood by Dropbox that it's fine. And many of us were in the same situation. Like I was
- 13:52Lucas Lange: tolerated as a CPython core developer at Facebook and some others were at their own respective
- 13:58Lucas Lange: companies. So I was super frustrated by this because, you know, there's tremendous
- 14:03Lucas Lange: value that we're giving to the entire community, including multi-billion dollar corporations.
- 14:08Lucas Lange: Yes.
- 14:09Lucas Lange: And we only thought like, hey, like the expectations are high and we want to provide
- 14:13Lucas Lange: the best tooling that we can for the industry. But it is kind of a hard sell,
- 14:18Lucas Lange: you know, when your kid wants to go out and you're like, oh no, I'm fixing this bug. But at
- 14:23Lucas Lange: the same time you're doing this for free. So you're thinking, you know, like, where did I go wrong
- 14:28Lucas Lange: in life? Like, you know, my values are somewhere, not where they're supposed to be.
- 14:31Lucas Lange: So Red Hat actually hired Victor Stinner like full time to work on Python, but it was still
- 14:36Lucas Lange: Red Hat. He's still an employee of a company that is for profit. So now,
- 14:41Lucas Lange: Yeah.
- 14:43Lucas Lange: the CPython developer in residence is different, right? It is sponsored by a PSF sponsor.
- 14:47Lucas Lange: In this particular case by Google, like Google as a company reached out to the PSF
- 14:53Lucas Lange: specifically to sponsor stuff like this. And that is amazing. I am very happy that they did,
- 14:58Lucas Lange: because you really believe that this is something that might, you know, kind of alter how
- 15:02Lucas Lange: we think about maintenance of community driven projects like Python.
- 15:07Lucas Lange: Yeah. And thank you to Google for doing this. It's so easy for them to say,
- 15:11Lucas Lange: Well, maybe we could just hire some core developers and they could work on
- 15:14Lucas Lange: speeding up the Google Cloud stuff for Python and we'll let them also contribute back.
- 15:19Lucas Lange: Right. That would be the sort of natural historical way of doing something like that.
- 15:24Lucas Lange: Yes.
- 15:24Lucas Lange: But here it's like, no, let's actually directly sort of effectively hire a person,
- 15:32Lucas Lange: but put them in an independent role that just makes Python better. And that's interesting,
- 15:37Lucas Lange: Right?
- 15:37Lucas Lange: Yeah. Like amazing thing about this is that, you know, while
- 15:40Lucas Lange: I do hope that some of the work that I already did was useful for Google as well,
- 15:44Lucas Lange: like there is no job description written by them and there are no like tasks that they're
- 15:50Lucas Lange: directly giving me.
- 15:51Lucas Lange: Right? Like it's really independent in this sense.
- 15:54Lucas Lange: And this is what makes it super healthy and like, you know, kind of, I think,
- 15:57Lucas Lange: well, sustainable for the future that it is actually me being able to talk to the
- 16:03Lucas Lange: steering council, which I do regularly and to the PSF about like,
- 16:07Lucas Lange: Hey, what do we actually need? And we don't have to take into consideration,
- 16:11Lucas Lange: you know, kind of direct value for our sponsors.
- 16:14Lucas Lange: Like we are providing indirect value, like, but you know, we don't have a roadmap where
- 16:20Lucas Lange: there are certain milestones that we need to reach like it's not like that. So I'm
- 16:24Lucas Lange: very happy about this difference because we did have sponsors before that did have
- 16:29Lucas Lange: either projects that they really wanted to move forward.
- 16:32Lucas Lange: Right? You know, and we still have those like, so for example, packaging and whatnot,
- 16:36Lucas Lange: or events that happen. Right? So Facebook sponsored, you know, core development
- 16:41Lucas Lange: spins, sprints. So we had those at the campus two years in a row and then Microsoft
- 16:46Lucas Lange: took over and we had Bloomberg and then we had COVID, you know, so like those things do happen
- 16:52Lucas Lange: and I'm very happy for those. But this is a kind of a game changer. Like we have not done
- 16:58Lucas Lange: this way of sponsoring a project before where we're actually thinking about the software
- 17:02Lucas Lange: word in Python software foundation where we directly sponsor work on the code on the source
- 17:09Lucas Lange: code. Yeah. The PSF has what seven, eight, nine full-time employees, but you are the first
- 17:14Lucas Lange: employee who is in a sort of software developer role. I think the closest we had before
- 17:20Lucas Lange: was a project management role for the new pip. Is that right?
- 17:24Lucas Lange: Yeah. So like we, we have that, like there's also E who works on our infrastructure,
- 17:29Lucas Lange: right? So what is also important for Python and this is the
- 17:32Lucas Lange: dealt with by the PSF is to keep the website running and to keep my PI running, right?
- 17:39Lucas Lange: Yeah. And so on. So obviously all of this requires constant supervision.
- 17:44Lucas Lange: And it's also something that you can spend your life like working full-time on. And this
- 17:48Lucas Lange: is what E is doing. However, that wasn't contributing to CPython as a repository directly.
- 17:54Lucas Lange: And this is the entire change.
- 17:56Lucas Lange: Yeah, that's fantastic. Quick shout out to just the two other visionary sponsors. We've got Bloomberg
- 18:01Lucas Lange: and Microsoft through Azure. So I think that's awesome. I think this whole visionary
- 18:06Lucas Lange: sponsor, Google was the first one in that category, right?
- 18:08Lucas Lange: Yes. That is a change in how the PSF was looking at sponsorship before. Like,
- 18:13Lucas Lange: I'm very happy to see that like this entire developer in residence position
- 18:18Lucas Lange: was something that I was pretty stressed by when I first got to know that,
- 18:23Lucas Lange: Oh, this is actually going to be happening because I do believe that my particular
- 18:28Lucas Lange: performance kind of will make or break future ideas on whether this should be extended to
- 18:34Lucas Lange: more people, right? Or just closed down altogether. So it's not only providing,
- 18:40Lucas Lange: value to the project. It's literally providing kind of proof that this development model works.
- 18:46Lucas Lange: So yeah, there's certain responsibility around it. I think I already caught a rhythm that I can
- 18:52Lucas Lange: sustain and I think, you know, kind of splits my own coding with actually
- 18:58Lucas Lange: reviewing and accepting other contributions, which are the bulk of what I'm doing. Because
- 19:02Lucas Lange: like, you know, otherwise, if I just focused on coding all week, I might maybe if I'm lucky and
- 19:08Lucas Lange: other people review my work, make maybe five, maybe six changes to see Python. Like we're doing
- 19:14Lucas Lange: careful reviews because like even simple changes might have actual far reaching consequences. But when I'm
- 19:19Lucas Lange: reviewing other changes, we sometimes have like 50 or over 50 changes that I can actually
- 19:25Lucas Lange: merge into mainline. So I'm very happy about that. You know, like that that is obviously
- 19:30Lucas Lange: a much better deal for everybody.
- 19:32Lucas Lange: Yeah, it's one of these enabling roles, not just sort of heads down coding roles, which I think
- 19:37Lucas Lange: is the important thing.
- 19:39Lucas Lange: Absolutely.
- 19:39Lucas Lange: Yeah. Paul Everitt out there in the live stream says,
- 19:41Lucas Lange: you mentioned the stress from the responsibility. Agreed. It takes some bravery to do it.
- 19:45Lucas Lucas Lucas Lucas: Oh, thank you.
- 19:46Lucas Lange: At the same time, I was literally giving talks before about, you know, yeah, we should
- 19:51Lucas Lange: do this. So, you know, like I kind of put myself out there even before this, this was a
- 19:56Lucas Lange: position. So at least applying because like, obviously it wasn't at all obvious to anybody
- 20:01Lucas Lange: like who is going to be chosen for this. I have this applying was, was sort of in the cards.
- 20:07Lucas Lange: Like I had to man up and do it, you know?
- 20:09Lucas Lange: Yeah, that's cool. Let's sort of explore a bit your background. Like,
- 20:13Lucas Lange: It's not just that you are a user of Python. I don't know, even a really good Python
- 20:17Lucas Lange: developer themselves might not be a good fit for this role because it really is like
- 20:23Lucas Lange: closely working with people contributing to the code base and the core developers and all
- 20:27Lucas Lange: that. So, you know, maybe give people a sense of some of the things that you did previously to
- 20:32Lucas Lange: to this in the cPython space. Like for example, you create a black. I think maybe people have heard of black.
- 20:38Lucas Lange: Yeah. If anything, this, this was actually probably on something that made it harder for me to get this position.
- 20:44Lucas Lange: Because obviously everybody is scared. Like, hey, are you going to reformat all of this
- 20:48Lucas Lange: library now? Like, you know.
- 20:48Lucas Lange: Oh, you're bringing the black guy. He's going to totally format it different.
- 20:52Lucas Lange: yeah.
- 20:54Lucas Lange: The biggest PR ever.
- 20:55Lucas Lange: No, like, so joking aside, like I'm not new in the project. And that was obviously important. It's kind of hard for me to
- 21:02Lucas Lange: you know, kind of now enumerate the reasons why I was chosen. Like, you know, kind of,
- 21:06Lucas Lange: I can only tell you what I told the PSF when I applied, because that was actually like the
- 21:12Lucas Lange: only time in my life where I actually had to write like a proper cover letter and actually
- 21:17Lucas Lange: kind of, you know, do some soul searching and say like, hey, am I actually a good fit for this?
- 21:22Lucas Lange: And you know, I think that's my mission statement.
- 21:24Lucas Lange: Exactly. Like, yeah, pretty much. So, you know, I've been around for a while. I've done some changes,
- 21:30Lucas Lange: big and small. There's a bunch of peps with my name on them. So I guess, you know, kind of,
- 21:34Lucas Lange: it's not just, you know, tiny typo fixes and introducing new bugs. It's also introducing peps.
- 21:42Lucas Lange: Some of them might be more clear cut wins than others.
- 21:45Lucas Lange: Yeah, you appear in a lot of the peps. You were the release manager as well, right?
- 21:49Lucas Lange: Yes, I still am for 3.9. 3.9 is now currently already pretty late in the game in the sense that we will be
- 21:56Lucas Lange: releasing Python 3.9. 7 just next Monday. So probably not when, you know,
- 22:02Lucas Lange: the listeners of the podcast are going to, well, like they're probably going to see this
- 22:07Lucas Lange: already released, but that for now, like for the ones like watching the live stream.
- 22:11Lucas Lange: Yeah. Next Monday is when we're going to release 3.9. 7. So that's already the seventh
- 22:16Lucas Lange: bug fix release of Python 3.9. There's going to be a bunch of more of those,
- 22:21Lucas Lange: and then it's going to graduate or retire into the mode where only security fixes
- 22:27Lucas Lange: are considered for inclusion. This is where Python 3.8 is already. I've been managing the releases of that.
- 22:34Lucas Lange: How long do you
- 22:34Lucas Lange: remain the release manager until 3.9 is retired or does it get handed off at some point?
- 22:40Lucas Lange: No, no, no. So like for,
- 22:42Lucas Lange: You become a release manager for the entirety of a life cycle of two releases,
- 22:48Lucas Lange: right? This was true for a long time. Like I didn't dig up like, you know, kind of prehistory,
- 22:55Lucas Lange: but since like the Python 3 releases, I looked at, like that was the case. Python 2.7,
- 23:01Lucas Lange: I think was, you know, Benjamin and 2.6. I'm not sure that it was him. Like it was probably
- 23:06Lucas Lange: Barry Warsaw. But the thing is like 2.7 was, you know, the longest release managing job ever.
- 23:13Lucas Lange: So, you know, kind of you could just burn yourself out on that one release. So that's fine.
- 23:18Lucas Lange: For us currently, we're managing two releases. Like, so how long is that? Well, with the development of
- 23:25Lucas Lange: Given Python version where 3.11 is already being developed right now, it takes around a year and a half
- 23:32Lucas Lange: for it to actually, you know, get out there as the final release. We do have a cadence where we release new versions every year. But that's only because once one release becomes beta, we can already switch the branches. And now new features go to a yet new version. So currently, it's a little weird.
- 23:51Lucas Lange: I think that happened on your watch, right? That happened on your watch. Wasn't it 18 months before?
- 23:56Lucas Lange: Yes. So 18 months of a cadence was never really a hard calendar event. Like it was more like, you know, a guideline where like, yeah, we're going for 18 months. Sometimes it was 19, sometimes it was 20. But it was problematic for many reasons. So yes, like one of the peps that I authored was a PEP saying, hey, we should change the cadence of development to make it on annual release cadence, which helps with downstream
- 24:21Lucas Lange: distributors like Linux distributions. And for many other reasons, like, you know, for us, like that's in the PEP. But yeah, like to just close on your original question, like, it takes around eight years from starting the job to like actually saying, oh, now I'm a retired release manager. So it's a long term contribution.
- 24:41Lucas Lange: That's a big commitment, isn't it?
- 24:42Lucas Lange: Yeah, wow, that's amazing. Well, thank you for that. That's, that's wild. So when you touched on this a little bit, but on your original blog post,
- 24:51Lucas Lange: announcing it, which I'll link to in the show notes, of course, you talked about what can one person do is the developer in residence. And you called out a bunch of specific things here about how you can basically be a multiplier effect for people who want to contribute, who are not core developers, you want to maybe like sort of give us the rundown on those things?
- 25:12Lucas Lange: Sure. So like, the blog post, I'm still happy with it, because like, it kind of shows that it wasn't just winging it, like I actually thought it through, but like, you know, kind of it lists a bunch of things that are ideas, and then you actually start doing the job and some things become clear, right? So like, all of the things I wrote are true. But what I for example, didn't quite like word out in the blog post that I realized is important is that very many changes that I touch, are kind of 90% there, you know, where I cannot just merge with the
- 25:42Lucas Lange: them as is, but really what I need changing is the doc string is just bad, or the comment is misleading, or whatever. So like, you know, a bunch of simple things that, you know, kind of, it feels just wrong to just review the change and say, hey, like, I request you do this small knit, you know, because I cannot merge it as is.
- 26:03Lucas Lange: Yeah, you got to do the line break, because this code is 99.
- 26:07Lucas Lange: Yeah, and 90 characters long, like you could just break that line and then commit it, right?
- 26:11Lucas Lange: Yeah, so this is what I do, actually, very often right now, I just kind of take the change locally, you know, run the tests that, you know, kind of are important for this particular case, I do the change that I would ask for just myself, you know, like without actually looping in the original author, most people actually leave that tick on their GitHub pull requests, making my job easier, like, so like, yeah, thanks for that. And then, you know, kind of, yeah, maybe they forgot.
- 26:36Lucas Lange: I just did a PR last night, and I allow maintainer to edit the PR. Yes.
- 26:40Lucas Lange: Yes, this is something I'm using very often right now. Like, because like, if you forgot to, for example, put a news entry for this, and you've never done this before, like, yes, there's a bot for this that Mariada wrote. So like, you know, you just need to go and read how to do this, and you will be able to do this from now on. But you know, when will you do that? Maybe tomorrow, maybe in a week, maybe you're just gonna leave this pull request, you know, to go stale. So instead, I just go and do this for you.
- 27:09Lucas Lange: This kind of level of multiplication really, I think is kind of, you know, closing the gap, like because very many changes, and sometimes it's just sad to look at, you know, like you have a change from 2017 that is clearly great, you know, like, clearly valuable. And then there was some knit that, you know, prevented it from being merged. And now it's 2021. And it no longer merges, because there's conflicts with other unrelated things.
- 27:33Lucas Lange: It's so out of date. It's no longer just a knit. It's now like a big now.
- 27:37Lucas Lange: Now it's hard to merge. And obviously, not just that, maybe that original person who created the change and worked hard on it now is discouraged or moved on to other projects. Because you know, like it wasn't merged for four years. So this is what we want to change, right? We want to make the, not just the first time contributor, but like any contributor, well, life or experience, like much better. Like at least providing feedback. Like,
- 28:01Lucas Lange: Like not all feedback will be positive. Like, this is already a mature project. And sometimes very good and easy ideas actually aren't if you look close enough, you know, like, this is the frustrating part where even kind of clear cut advantages might be disadvantages for a different group of users, right? Or on a different platform that you're not a user of, but you know, we have to actually look at the big picture. But at least you're going to know from somebody like me that, hey, like,
- 28:30Lucas Lange: This is good, but we cannot take it because of X, Y, Z.
- 28:35Lucas Lange: You know, it's super frustrating or disappointing to put work into doing a PR, submitting the PR, and then it's not that it was rejected. It gets no response. And that's, I think, really frustrating. Like I spent a whole day because I was thinking this would make this thing. I almost works for me, make it perfect for me. And here's the thing. And the answer could be no, it's not the right direction, but no answer at all is just like, ah, I'm not sure I want to do this.
- 28:58Lucas Lange: You know?
- 28:59Lucas Lange: Yeah.
- 29:00Lucas Lange: Related to that sort of, Rodrigo out in the live stream has a pretty good question. I think let me throw that out to you. And you know, what are some of the advice to potential future drive by contributors? How could they make your life easier?
- 29:10Lucas Lange: Well, like in the future, we'll move to GitHub issues. So a bunch of this will become easier for the contributors themselves. But currently that we still have bugs, Python.org. There is a required step, pretty much for the
- 29:26Lucas Lange: required step pretty much for anything that isn't a trivial typo, which is you need to have a bugs, Python.org account where we know that you signed the CLA. Right? So the contributor license agreement saying I release my, you know, code under Apache, for example. Right? So that we can actually use it and merge it and it's fine. So this is something that, you know, kind of is the important original step. And once you're already on bugs, Python.org. And your change is not trivial.
- 29:54Lucas Lange: Please click that, you know, open new issue button and write what you're doing and why. Maybe it's already there. Maybe you already know that you're fixing a particular thing that was already reported by somebody else. But if not, like spend this five to 10 minutes describing what is happening and why you want the change applied. Very many changes simply do the thing that they want to do. Many of them don't even write in the pull request name, like what they're doing. It's simply the original GitHub update file.
- 30:22Lucas Lange: Which really, you know, is a puzzle now for anybody else because we don't really know why this thing was touched in the first place. So essentially just describe like where you're coming from. Like what is this change doing? Like that is already, that's already great. That already kind of gives context to us.
- 30:40Lucas Lange: Would you suggest that people create an issue and get a little bit of buy in from you all before actually doing the change and the PR? Like, would it make sense to say I'm considering this? I'm happy to do a PR. Here's the plan. Would you accept this if I did it?
- 30:58Lucas Lange: Depends, right? Lucas Lange: Okay. Because like that is the worst centrist, bleak answer that anybody can give. Depends, right? When you're doing bug fixes, you should just go ahead and, you know, do your best and make the bug fix.
- 31:11Lucas Lange: Yeah. Here's the failing test. Here's the fix. Yeah.
- 31:13Lucas Lange: Yeah. But if you are saying, hey, this library should have this new function that I am using in my own project. So I just want to put it in a safe functools or whatever. So before actually going ahead and creating that pull request, like it's probably
- 31:17Lucas Lange: might sense to discuss it with us because a growing standard library, well, isn't so clear cut a value as you think, right? Because it's a maintenance burden.
- 31:38Lucas Lange: Yeah, absolutely.
- 31:39Lucas Lange: And more importantly, you know, now it has to consider all the usage groups that the original author might not care about, but we have to, we necessarily have to. So yeah, for features, definitely file an issue, you know, describe your problem. You might actually, if that makes it easier for everybody to discuss, just submit a pull request saying, hey, this is the feature if you want to talk about it. So we actually talk about something concrete instead of an idea. But if you, for example, say that, hey, we need to rewrite multiprocessing.
- 32:08Lucas Lange: So it does this other thing instead of creating a multi file gigantic pull request, like let's discuss first.
- 32:15Lucas Lange: Talk Python To Me is partially supported by our training courses. At Talk Python, we run a bunch of web apps and web APIs. These power the training courses as well as the mobile apps on iOS and Android. If I had to build these from scratch again today, there's no doubt which framework I would use. It's FastAPI. To me, FastAPI is the embodiment of modern Python and modern API.
- 32:37Lucas Lange: You have beautiful usage of type annotations. You have model binding and validation with Pydantic and you have first class async and await support. If you're building or rebuilding a web app, you owe it to yourself to check out our course modern API's with FastAPI over at Talk Python Training. It'll take you from curious to production with FastAPI. To learn more and get started today, just
- 32:44Lucas Lange: Just visit talkpython.fm/ FastAPI or email us at sales at talk Python dot FM.
- 32:51Lucas Lange: Another question out there I think is good from Paul is your PR review velocity. Do you expect it to go up as
- 32:51Lucas Lange: As you get better and maybe automate or go down as you hit the heart of
- 33:01Lucas Lange: Hard to say.
- 33:01Lucas Lange: It's like clearing out your inbox a little bit, right? Like some of them are using
- 33:03Lucas Lange: Yeah, I think it's a little bit.
- 33:05Lucas Lange: Yeah, I think it's a little bit.
- 33:07Lucas Lange: Yeah, I think it's a little bit.
- 33:09Lucas Lange: Like, oh, that's a whole day. Oh, no.
- 33:23Lucas Lange: Essentially, it is not very easy to kind of, you know, foresee what's going to happen a given
- 33:28Lucas Lange: week. But one thing for now has been constant. Like, you know, I need to get the number
- 33:34Lucas Lange: of pull requests down like below the number that we have right now because like there's
- 33:38Lucas Lange: there's going to be some that are on page like 35 of the, you know, open pull requests page.
- 33:44Lucas Lange: So I will probably never get to them otherwise. So I need to bring the number down.
- 33:48Lucas Lange: And so far, just by myself, I was unable to do it. Like just I cannot do it. Like I had one week
- 33:54Lucas Lange: where I really said like, hey, just, you know, 40 hour work week be down. Like I need to see if I can
- 34:02Lucas Lange: really bring this number down, you know, and I almost merged 100, you know, so that was not
- 34:09Lucas Lange: something I can do every week. And I still didn't meet the, you know, the goal because I did leave
- 34:16Lucas Lange: the account below 1400 when I went to sleep and I, you know, woke up the next day and it was already
- 34:22Lucas Lange: over, you know?
- 34:23Lucas Lange: Yeah, we saw the rate of incoming ones. That's a lot.
- 34:26Lucas Lange: Yes. So I'm doing around 50 ish a week right now. And you know, kind of it sounds super high, but
- 34:31Lucas Lange: you know, some of them are backboards to branches that we maintain. I list those because some of
- 34:38Lucas Lange: those backboards aren't trivial, right? Like they will conflict because, you know, the files changed in
- 34:42Lucas Lange: between or they require some push, you know, from a person because the bot didn't do what it's supposed to do. So, you know,
- 34:49Lucas Lange: it's also work. But 50 isn't really, you know, kind of me kind of flexing. I can do so many
- 34:54Lucas Lange: changes. It's really the rate of change that you can see. So there are enough new changes,
- 34:59Lucas Lange: right? That I guess I can always forever just stay on page one and just deal with those. But that would
- 35:07Lucas Lange: feel unfair, right? You know, that, you know, kind of that is some reversal of priorities
- 35:12Lucas Lange: where the last that comes in.
- 35:14Lucas Lange: Yeah. You almost need to go to the last page and work your way forward.
- 35:17Lucas Lange: Exactly. So, so sometimes I would look at the older ones, you know, basically just asking a interesting
- 35:23Lucas Lange: query to the search, you know, pull request search on GitHub and see what's there for, for example,
- 35:30Lucas Lange: this file or, you know, what's already approved and that I can, you know, kind of maybe push over the line and so on. So there's going to be some balance there. I don't expect to go any faster than I currently am because I can't really automate much there. Like there might be some instances where if we analyze the pull requests better, we find that, oh, there's an entire genre of pull requests.
- 35:52Lucas Lange: We can just bulk close, but I can't really, you know, okay, now I like put this on the report. Like it's like, oh, I closed 1500 pull requests. I'm so great. Now, like the ones that I put on the weekly report are all that I like with my own eyes look at and review. So I don't see how automation can really help me, you know, do that faster. Like we need to be careful, right? Like it's still a language used, you know, for some important stuff. And, you know, in
- 36:22Lucas Lange: Yeah, it's still a language used in our industry and beyond. So, you know, kind of a higher rate of change sounds nice, but it also, you know, is risky, right? If you don't do it responsibly. So I think that the 50 ish number that I'm currently at, like, is enough that I don't feel like, you know, I could be doing more. It's around what I can reasonably with a clear mind, like review day in, day out. And I still have some time to actually code, which is also fun because now you're contributing something of your own. But yeah,
- 36:52Lucas Lange: Like I don't think I can get to 100 every week, like regardless of the automation I can come up with.
- 36:57Lucas Lange: Yeah. And maybe they get harder.
- 36:58Lucas Lange: Oh yeah, they might.
- 36:59Lucas Lange: Because you could go, all right, this one, I can quickly close this. I can quickly close this. But as you sort of cycle, iterate over that list, like you get stuck more with the hard ones.
- 37:08Lucas Lange: Yeah, absolutely.
- 37:09Lucas Lange: Yeah. So you mentioned the weekly report, you're doing a weekly report that's just out in public. So for example, I'll link in the show notes to your weekly report for July 26 to August 1st. Was this like your second or third week?
- 37:22Lucas Lange: Something like that?
- 37:23Lucas Lange: Yeah.
- 37:24Lucas Lange: So if people want to keep up with what you're doing, it's right out there, isn't it?
- 37:27Lucas Lange: It would be out there anyway, right? Because like, even if you don't look at the reports that I'm writing, like you can still go to my profile on GitHub and just see like what the stream says there. And if it doesn't say anything, like, you know, that's kind of worrying. It's like, hey, is this guy even working? What is he doing?
- 37:41Lucas Lange: Check your Instagram, see if you're on the beach, just hanging out.
- 37:45Lucas Lange: Exactly. And I was actually last, just last week. Yes. So the weekly reports are kind of, you know, thought of by the way.
- 37:52Lucas Lange: I mean, personally, since like the PSF wants me to blog about what I'm doing, but not at this cadence. Right. But I personally just want to kind of tell you what I'm working on. Because ultimately what I'm doing is work on an open source project for the community. Like Lily hired by the Python social foundation. So there is no agenda that is personal, like, you know, to me or driven by some corporation. Like I'm literally maintaining this for you. So like, why not just let you in?
- 38:22Lucas Lange: On what I've spent my time on most of those I expect are going to be pretty boring after a while. Because like a big part of it, like at the bottom is always just a list of PR so we can actually click through and see like, Oh, what did, what did I do there? But you know, I always try to like keep it interesting by, you know, kind of finding some highlights that, you know, I found particularly interesting a given week.
- 38:42Lucas Lange: Yeah, I think this is really valuable. I don't help people a lot to sort of see what the role is doing. So originally this role was based on Django's fellowship program, right?
- 38:54Lucas Lange: Oh, yes.
- 38:54Lucas Lange: Yeah, that's really cool. So you're able to, Django had this idea of bringing on people to help deal with the lower, not lower level, the more maintenance oriented stuff, right? Like exactly what we've been talking about. And I know one of the things you talked about somewhere in one of your articles. I can't remember which.
- 39:10Lucas Lange: Was basically, you're very excited about this role, but you're also a little nervous because you want to make sure that you're the first one doing it and you want to make sure that it is going strong for the next year and the year after and whoever comes along you want. This is a good thing. You want to keep going. Right. So that's a little bit.
- 39:28Lucas Lange: Oh, yeah.
- 39:29Lucas Lange: You're kind of breaking the ground there, right?
- 39:30Lucas Lange: Yes. So this is important for many reasons, obviously. Right. Because like, you know, we can go ahead and talk about like how this can transform Python if there's enough people doing this full time and whatnot.
- 39:40Lucas Lange: Yeah.
- 39:41Lucas Lange: And this is all true. But you know, there are also kind of more like down to earth reasons why I would like more people to be able to experience work as I am right now, because it's just a wonderful way to work. And not only am I working on something that was my hobby for like a decade now. So I can just day in day out, just kind of, you know, I feel like I'm just kind of just doing the hobby right now. So it's amazing. But also, and this is something that, you know, like kudos to
- 40:09Lucas Lange: Google, like the sponsorship level for this is Bay Area level of salary for a software developer. So like, it doesn't really matter that I'm here in Poland, you know, kind of where very many companies would apply some location specific salaries to a position. And now like this is Lily kind of the like, well, like I don't want to say premium grade, but like industry strong salary here.
- 40:10Like the sponsorship level for this is Bay Area level of salary for a software developer.
- 40:17So like, it doesn't really matter that I'm here in Poland, you know, kind of where very
- 40:23many companies would apply some location specific salaries to a position.
- 40:28And no, like this is really kind of the like, well, like I don't want to say premium grade,
- 40:33but like industry strong salary here.
- 40:36It's not like you had to go and say, I'm really going to take a hit, but I really
- 40:40want to do this.
- 40:41So let's just do it.
- 40:42Right.
- 40:42So it's a proper job.
- 40:43Not at all.
- 40:43Not at all.
- 40:44Which is exactly why I think, you know, it's both important to the project, but also important
- 40:50to all those people who are already contributing.
- 40:52They're already providing value.
- 40:54And now if they got paid, like, you know, actual industry strong rates for their work, like
- 41:01this has the overall kind of opportunity, or this has this enough value that it can change
- 41:07a person's life, right?
- 41:08Like some of our contributors are not in the US or in countries that are like, you know,
- 41:14I don't know, Eastern Europe or East Asia or wherever else.
- 41:17And there, like this kind of amount of money, like might actually make or break, you know,
- 41:22kind of somebody's, well, entire livelihood.
- 41:25So it's amazing that this opportunity exists.
- 41:27At the same time, like for now, like, you know, let's not get ahead of ourselves.
- 41:32Like this is a contract for one person for 12 months, right?
- 41:37It might not get renewed.
- 41:38Like we might not get a sponsorship for next year.
- 41:42So the PSF might actually have to be on the lookout for more sponsors later, or maybe for a new
- 41:48developer, if they just don't feel like, you know, kind of the current one is doing the job
- 41:54like well enough.
- 41:55So like, you know, all those things might still be in motion.
- 41:57So I myself don't really kind of, you know, already put this in the bank.
- 42:01They're like, Hey, like I'll be doing this now for like, however long.
- 42:05Like now I'm really spending this first year of really producing like the most I can,
- 42:11a reason we can't, right?
- 42:12Because it might just be a 12 month gig that I will be having like fond memories of, you know,
- 42:18in a decade, or maybe it's a start of something much bigger.
- 42:22So why not take the chance and just, you know, try your best?
- 42:24Yeah, absolutely.
- 42:25So let's dream just a little bit and then maybe I'll put a call out to it.
- 42:30Would it make sense?
- 42:31Would you want, could you do more with like a team of people if there were
- 42:35five developers in residence?
- 42:36So would the PR look like 20 open ones, the oldest one a month open, things like that?
- 42:42Like, would that be good?
- 42:43Would you want to see that?
- 42:44Having five people available for work like this would entirely change how I'm approaching
- 42:51this because currently, like, I don't really have a much in terms of coordination with others,
- 42:57right?
- 42:57Like I just look at whatever current work is happening and try to help out there.
- 43:02But if you had five people, you could actually hit this problem head on.
- 43:05Like, you know, we have 1400 open pull requests.
- 43:08Like, it's not a question now, like, if we get them down to zero, but like, but when, right?
- 43:14Now we actually can plan to do this, you know, like methodically.
- 43:18And a lot of bigger style things that we always wanted to have in Python, we could now just
- 43:23plan to implement ourselves.
- 43:24Now, if I'm just the only person doing this, it feels irresponsible to just, you know, hide
- 43:30somewhere, you know, in a basement in Poland and start churning out my favorite feature,
- 43:34right?
- 43:35Like, that's not what this world is about.
- 43:36But if you have five people, you can reasonably expect that some of them might actually work
- 43:41full time providing new features or finishing unfinished ones, which there are plenty of
- 43:46for inclusion in a future version of Python.
- 43:49It could be somebody says, I'm the one who just goes to all the bug PRs and just checks
- 43:54those.
- 43:54And there could be somebody working on performance and like, you could specialize and things like
- 43:58that even.
- 43:59Oh, you specialize, but I really kind of think that if all of them are developers in
- 44:03residence, it would be great if they like kind of had like this on-call rotation for doing
- 44:08things as I'm doing now.
- 44:09So just responding to the external community, right?
- 44:13Because like the important thing that I wrote in the original post and I still believe in is,
- 44:17you know, like the drive-by contributor experience is extremely important, right?
- 44:21So like we would always have to have somebody doing this, but at the same time, nobody really
- 44:26wants to do only that.
- 44:27Like everybody has to provide, well, wants to provide value of their own so that they
- 44:32can, you know, touch it and say like, ah, I did this.
- 44:34This is good.
- 44:34Yeah.
- 44:35So yeah, I already have a bit of this, you know, like not as clear cut, not sponsored by
- 44:41the PSF directly, but Pablo, the release manager of Python 3.10 and 3.11 is both sponsored by
- 44:48Bloomberg to work halftime on Python performance.
- 44:52And also by him doing the release managing job for Python 3.10 and 3.11.
- 44:57He coordinates with me very often right now, especially that now we are in the release
- 45:02candidate stage of Python 3.10.0.
- 45:05And the greatest thing about this is that he's in London, right?
- 45:07So yeah, maybe, maybe far if I were to walk to him, but in terms of time zones, that's amazing.
- 45:13Like he's just one hour away.
- 45:15So, you know, we mostly have very synchronized work days.
- 45:19So I would talk to him like essentially every day.
- 45:22And that is also something that I missed doing remote work before, because, you know, kind
- 45:27of if you are working for a company that is in the Bay Area and you're the only one in your
- 45:32time zone, it kind of gets lonely, you know?
- 45:34Having more people around that now I have like Pablo, I have Victor, other, Sergey, Storchaka.
- 45:41And most of our communication is async, right?
- 45:44So it's not like everybody's talking when I'm not around.
- 45:47Like everything is happening on the mailing list anyway.
- 45:51So it feels like I'm much more integrated into the team compared to my previous stints at,
- 45:59you know, doing remote work.
- 46:00So I enjoy this a lot.
- 46:01So it sounds like it would make a big effect.
- 46:03That's fantastic.
- 46:04We look at that list of the sponsors, the visionary sponsors, and there's three companies doing
- 46:09really good stuff.
- 46:09But you gave a implicit sort of call out to this.
- 46:13And I've said it plenty of times.
- 46:15There are many companies out there who their entire core of their business is built upon Python
- 46:20and they make billions of dollars.
- 46:22Shouldn't they consider contributing something to build that foundation a little bit stronger,
- 46:28right?
- 46:29Like maybe make Python a little faster.
- 46:31Their developers go a little, you know, more efficient or whatever.
- 46:34Yes.
- 46:34So like the good thing about this is that, you know, we always can use more money.
- 46:39So obviously we need more sponsors.
- 46:40Many of the companies are trying.
- 46:43Simply the thing that they need is, you know, some sort of like plan or well, not like a legal
- 46:49contract, but at least some sort of understanding what the money is going to go for.
- 46:54What do they get out of it, right?
- 46:55Because in their balance sheets, they have expenses.
- 46:59And they have revenue.
- 47:01They don't usually have charity.
- 47:03Right.
- 47:04It's tricky for them to make it fit.
- 47:07I think it's kind of, you know, now with the developer in residence position, this kind of
- 47:11changes the game because you're no longer just sponsoring the Python social foundation and kind
- 47:16of, you know, yeah, you might have expectations, but maybe that will go for PyCon.
- 47:20Maybe they'll go for sponsoring of events or minority groups or whatever else.
- 47:24Like if your company really is interested in providing, you know, like support to the core
- 47:31development, like now you can.
- 47:32And I think like, well, hopefully like that is my hope.
- 47:36Like we're going to see more sponsors of that kind of.
- 47:39Yeah, absolutely.
- 47:39People who are actually interested can go to Python.org slash sponsor slash application.
- 47:45And it shows you what the tiers are, what they cost, what you get.
- 47:48You get a lot of inside access and a lot of visibility into Python at the visionary level
- 47:52that otherwise you wouldn't get.
- 47:54So there's, there's something to be said for that.
- 47:56People should check that out, right?
- 47:57You got to meet with the PSF board.
- 47:59A lot of cool stuff there.
- 48:00Workshops, job fairs.
- 48:03I think there's a lot of things on here that could go down as this is a legit value.
- 48:07Get a meet with the Python steering council, the sprint recognition and so on.
- 48:12So I just want to encourage companies out there.
- 48:14Like we don't need tons of them.
- 48:16If we had four others, right?
- 48:18You said that would make a huge difference, right?
- 48:20Absolutely.
- 48:20And also kind of like, let's be clear, right?
- 48:23Like, you know, kind of if a sponsor of a developer in the residence job, right?
- 48:28I came in with like a laundry list of like, this is the things that I want you to do.
- 48:32Like we'd probably have to kind of, you know, come to an understanding that this is not what
- 48:37this is about.
- 48:38But if people who happen to be employees of a company come in with changes that make sense
- 48:45and actually provide value for us, and now we have people to do full-time code review
- 48:51and inclusion of those changes, it's more likely that things that you care about are going to
- 48:56be included, right?
- 48:57So you can be ethical and impartial to, you know, kind of, well,
- 49:02sources of, you know, money flowing into your account, like, and also provide value to the
- 49:07sponsor.
- 49:07It's not a zero-sum game.
- 49:09Like, you know, let that be clear and explicitly said, because I feel like this is also important
- 49:13to know that if, for example, there is a company that really, really focuses on an operating system,
- 49:20like, I don't know, maybe they're running everything on Windows or macOS, right?
- 49:24Like, you know, and now they're like, hey, like, we really need somebody to make AsyncIO work
- 49:29better on Windows, or we need to fix this fork problem on macOS once and for all or whatnot.
- 49:35Like, you know, if they provide, you know, some changes and now there's people to do the review,
- 49:40more likely than not, we're going to have better support for Windows and macOS.
- 49:43Like, you know, everybody wins.
- 49:45Yeah, absolutely.
- 49:46Another benefit I'll throw out there, just thinking about this, is a lot of companies
- 49:51have, like, continuing education programs and credits.
- 49:55Like, hey, you have a bachelor's degree.
- 49:57Do you want a master's degree?
- 49:58If you're willing to go to school outside of work, we'll provide that for you.
- 50:02And the reason is, now you have people who work for you that have master's degrees and
- 50:05not bachelor degrees, right?
- 50:07So this could be a similar thing, like, hey, we want to provide a position for people to come
- 50:13work as the DIR or part of the DIR, and then maybe they come back and work for us afterwards.
- 50:18But they would be so much more knowledgeable about Python, having spent a year in this role.
- 50:23There's a lot of benefits like this.
- 50:24You know, you won't believe this, but like, obviously, the project is a million lines of
- 50:28code, right?
- 50:29Like, half of it is in C, half of it is in Python.
- 50:31So I don't know about most of it, right?
- 50:36Like, I've seen much of it, but like, I probably don't have expertise in most of it, but nobody
- 50:42cares when they submit pull requests.
- 50:44So then I look at them.
- 50:45So for many of them, it's my first actual stint at, you know, like touching a part of Python
- 50:51that I might know as a user, you know, from the outside, right?
- 50:54Yes.
- 50:55But then looking at like, how does Dunder main actually work in Python?
- 51:00It's this special module that, you know, like your execution starts with, like, how does
- 51:05this actually work?
- 51:06So you go and see, and you actually kind of dig and you understand like, ah, okay, like,
- 51:10I understand this because you have to take into account, you know, starting your Python
- 51:15interpreter, like, you know, with, I don't know, code from the standard input, or maybe
- 51:19somebody is starting a ripple, or maybe you're from a file, or maybe it's a zip file or whatever.
- 51:23So now I know more than I just knew like two weeks back about Dunder main.
- 51:27So very true.
- 51:29Like, you know, you bring somebody in who is motivated and maybe knows a bit about, you
- 51:33know, what CPython already is built on.
- 51:36But necessarily, you're going to get experience in parts that you would otherwise not touch,
- 51:41right?
- 51:42Because now you're reviewing the bulk of pull requests that are coming in, not the ones that
- 51:46you would write yourself.
- 51:47Yep.
- 51:47Absolutely.
- 51:48I remember one listener sent me a message and said, I was really surprised to hear you
- 51:52say there was like, this whole section of the standard library you didn't know about.
- 51:56That describes a lot of, there's a lot of stuff out there, right?
- 51:59You might just barely touch it.
- 52:01You might have no use for it.
- 52:02There's a lot.
- 52:02You would, this would force you to just give that depth.
- 52:05It's big.
- 52:05It's big.
- 52:06Absolutely.
- 52:07So Rodrigo asked previously about what drive-by contributors can do to help you.
- 52:12What can, you know, this is speaking to a smaller audience, of course, but still I think it's
- 52:17relevant.
- 52:18What can the core developers and the steering council and the people on the inside do to
- 52:23help you be more successful and efficient?
- 52:25Most of them know me.
- 52:26So the most important thing for them, and I really mean it, is like, just tell me what I
- 52:32should be rather doing.
- 52:33If you feel like there's something else I should be touching on, or if I did something
- 52:37that you don't like for any reason, just write me, just tell me, right?
- 52:41Like, because like, it's different from the external contributors.
- 52:43Most of the core devs I know one way or another, so we can be direct with one another.
- 52:49And I think like the make or break of this position is for me to provide value for both groups.
- 52:56So if there's anything that a particular person needs or wants, or even feels like, Hey, you
- 53:02know, you're focusing too much on this thing or, Oh, have you looked at this?
- 53:05Like, this is not something you've touched yet, but this is extremely important.
- 53:08Just let me know.
- 53:09So communication is key for us right now.
- 53:11And another thing that I kind of still don't quite know how to tackle is that I don't feel
- 53:19comfortable just now, like assigning a bunch of things to volunteers.
- 53:23You know what I mean?
- 53:24It's like now there is a bunch of pull requests where they're fixing something that actually
- 53:29broke because of a change that some core developer did five years back.
- 53:32So of course they have the best context on this change, but I feel kind of icky just, you know,
- 53:39going and doing this 10 times a day, you know, because it really feels like now you're being
- 53:45this manager of Python telling people, Hey, go fix your shit.
- 53:48Like, no, that is not what I mean.
- 53:50It's like, as I said, the project is huge.
- 53:52And, you know, very often it is really a bunch of people, like a low number of people who have
- 53:59the best context on given part of Python.
- 54:02So yeah, like if I do this too much again, like, you know, tell me if I'm not doing this
- 54:08and instead of going ahead and doing changes, you know, that you don't like in your particular
- 54:13favorite piece of Python also let me know, like, this is still something I'm pretty new
- 54:18at.
- 54:18Like, I'm just going to like issue my second invoice like next week.
- 54:23I'm pretty excited about that, but you know, like it's still a new thing for me.
- 54:26So I guess, you know, for the core devs.
- 54:29Yeah.
- 54:29Let's talk like whenever something is clearly well, improvable, if that's a word, like let
- 54:35me know.
- 54:36Yeah, absolutely.
- 54:37How much input into this role did the steering council have and how much did Guido have?
- 54:42Or was this a PSF plus Google sort of thing?
- 54:45So I actually spoke with nobody from Google.
- 54:48So directly, I don't know the people behind this position, like on their side.
- 54:55I know a bunch of core devs who happen to work at Google and they're very supportive of the
- 54:58position.
- 54:59So that's the extent of it.
- 55:00The steering council meets with me every second week.
- 55:03So it's mostly kind of me talking, hey, this is what I spend my time on.
- 55:08You know, they ask me like, how can we improve your output or whatever?
- 55:11Like, you know, or just they will, would just tell me about things that, you know, they find
- 55:17interesting or important that I might look at, but it doesn't feel like they're really kind
- 55:22of going and telling me what I should be doing.
- 55:24Like, you know, point blank.
- 55:25They're just having like suggestions on and how this role should be moving.
- 55:30So this is kind of, this is a short, well, 20, 30 minute meeting every two weeks.
- 55:35So kind of high level.
- 55:36I do have one just like it with Eva from the PSF and E.
- 55:41So it's really, you know, kind of the Python server foundation internally also needs to communicate
- 55:47because they have all the keys to say, being able to restart a bot, right?
- 55:52Or, you know, kind of make changes on a given server or maybe change some workflow on GitHub
- 55:57that affects everybody and so on and so on.
- 56:00So we just also meet every second week to make sure everybody's on the same page.
- 56:05And also there's some very low level stuff.
- 56:07Like for example, figuring out like, hey, what calendar am I working on?
- 56:11Like is Labor Day a day off for me?
- 56:14Or is some other holiday that is here in Poland, but not in the US a day off for me?
- 56:20Or don't I get any day off at all?
- 56:22And I work on Christmas Day.
- 56:24I don't know.
- 56:24So all of those, all of those things, you know, have to be actually discussed with the PSF directly.
- 56:30Yeah.
- 56:30And Kordevs, like, you know, kind of, we do talk a lot.
- 56:34And Guido in particular was very supportive of me starting this role.
- 56:38So I'm very grateful for this because it's kind of like, you know, kind of just getting,
- 56:43getting a little bit of, you know, like an email, just a bunch of sentences, just actually kind
- 56:48of saying like, hey, I believe this is a great decision.
- 56:50You're going to do great.
- 56:51Like, okay.
- 56:52I don't know.
- 56:53Like, I still feel like I'm a beginner in a lot of this.
- 56:56It's really reassuring and kind of lifts your spirit.
- 56:59So, so yeah, like, I guess we are in constant contact using super old ways like email and
- 57:05discourse to an extent.
- 57:07And now like VCs.
- 57:08So yeah, like we're doing Google meets and Zooms with others.
- 57:13They actually have too many, well, communication methods right now.
- 57:17So like me talking with Kordevs, I'm on IRC right now so that others can actually reach
- 57:21me as well.
- 57:22Others would talk to me through WhatsApp and whatnot.
- 57:25Like I have like 10 chat, like message apps right now open just to be able to talk to
- 57:30everybody I need to talk to.
- 57:32So that needs fixing, but I don't know who is supposed to do that.
- 57:35Yeah, I don't either.
- 57:36It's a growing problem, not a shrinking one, but it sounds like you're doing a good job.
- 57:40Even Rodrigo out there in the live stream says, listen to this hypes me up to go and contribute
- 57:45to Python.
- 57:45So hopefully that sentiment is multiplied across all the people who are contributing work that,
- 57:51you know, it'll, it'll get more attention sooner.
- 57:54So well done.
- 57:55Absolutely.
- 57:56I'm happy to hear that.
- 57:57Yeah, absolutely.
- 57:57All right.
- 57:58Well, we're about out of time to talk about the new role.
- 58:01So let me ask you the two final questions, which I've asked you before, but it's been a
- 58:05while since you were on the show.
- 58:06So time for an update.
- 58:07If you're going to do some Python, you know, you always run across different external packages,
- 58:12things on PyPI and whatnot.
- 58:13Have you found one that you're just like, wow, this thing is amazing.
- 58:16We should talk about it, get more awareness of it.
- 58:19It's already growing, so I'm not going to tell anything that is like now like extremely,
- 58:23you know, novel, but I'm extremely digging rich, right?
- 58:27Like the kind of text formatting, like library for CLIs, like anything that we write, like
- 58:33would use their progress bars and, you know, a bunch of other stuff that that's there for
- 58:37column formatting and whatnot.
- 58:39Like I find it very approachable and the results are like, yeah, this is a console.
- 58:44This is a text console.
- 58:44Just to be clear, right?
- 58:46Like it just looks fantastic.
- 58:48And the code for it is very nice.
- 58:50Like it's, it's a very declarative.
- 58:52So Rich, I like a lot.
- 58:54And Will, the author of it is now working on a text UI library that is much more Pythonic
- 59:00than the previous propositions that we had to say, like, you know, a curses or you were with.
- 59:06So yeah, like I'm hyped for that as well.
- 59:08It's called textual.
- 59:08Yeah.
- 59:09Textual looks really interesting.
- 59:11Yeah, exactly.
- 59:11So those would be my easy propositions for the day in terms of third party packages.
- 59:17Cool.
- 59:17The one that I actually thought of Rich earlier, when you talked about the better error messages,
- 59:21there's a cool article called FastAPI and Rich Tracebacks in development that talks about
- 59:26how to take Rich and then plug it in.
- 59:29So whenever there's a stack trace, you get like super colorized error messages and all sorts
- 59:35of cool stuff.
- 59:36And yeah, pretty neat.
- 59:38Pretty neat.
- 59:39This changes a lot, actually, because, you know, I find that, for example, between using
- 59:43GCC, right?
- 59:44The C compiler and using Clang, like just the fact that it colors my, you know, errors, like,
- 59:51you know, tiny thing.
- 59:53But it makes Clang just feel nicer to me because it just values my time.
- 59:58It just makes me, makes it easier for me to read the relevant parts of the message.
- 1:00:03So this sort of thing, like might just feel like, ah, you know, this is not really that
- 1:00:07important in my app.
- 1:00:08But like, it might save you a lot of time later on when you're like actually debugging stack
- 1:00:13traces that you're looking at like at 2am or whatnot.
- 1:00:15So I think this is extremely important, like not just because it's aesthetically pleasing,
- 1:00:21which is important in itself, but also functionally, right?
- 1:00:24Like, you know, this is the reason we are using syntax highlighting, right?
- 1:00:27Because it actually lets you see more information at the same time, right?
- 1:00:32So absolutely, like Rich provides this in a very smart way, like to your application.
- 1:00:38So not just your Python stack traces, but whatever you're displaying, like might be like this.
- 1:00:43It will automatically format numbers.
- 1:00:46It will automatically highlight, you know, dates and files and file paths and whatnot and whatnot.
- 1:00:51So tremendous value added.
- 1:00:53Yep.
- 1:00:53Tables, all kinds of cool stuff.
- 1:00:55Yeah, it's definitely getting a lot of love out there.
- 1:00:57And then if you're going to write some Python code, what editor are you porting these days?
- 1:01:02I am deeply invested in VS Code right now because it is in a very, very peculiar position where
- 1:01:08it's actually very good for CPython development, like core development, because it's both a good
- 1:01:13C editor with, you know, support for just jumping through definitions and whatnot.
- 1:01:17And also like has a great Python plugin, right?
- 1:01:21Like, you know, PyLens, right?
- 1:01:22So it's both a type checker and, you know, this language server that does a lot of help,
- 1:01:26like for you specifically.
- 1:01:28So it's just a good package all around, like to just do a CPython core development.
- 1:01:33Is it my perfect editor?
- 1:01:35Well, almost like if the Vim plugin for it was official, officially maintained and a little
- 1:01:41more sturdy, like I would be the happiest person there.
- 1:01:44But well, clearly this is super low key feature.
- 1:01:48Like it's not a very popular thing.
- 1:01:50Must not be because otherwise, you know, like looking at what Microsoft is now doing with
- 1:01:54GitHub and whatnot, like that would have been implemented if more people asked for it.
- 1:01:59So I might be of a dying breed of Vim users.
- 1:02:01I don't know.
- 1:02:02Still, like gets the job done, like for with the current Vim plugin and system, like, you
- 1:02:07know, with the window splits and whatnot.
- 1:02:10I'm very happy with it.
- 1:02:11And now seeing that my development environment can actually be run in a browser, like what
- 1:02:16else could you ask for?
- 1:02:17It's pretty amazing.
- 1:02:18Yeah, exactly.
- 1:02:19You're doing your podcast live stream recording from a browser and you're editing in a browser.
- 1:02:24All right, Lucas.
- 1:02:27Well, it's been great to have you here.
- 1:02:29Final call to action.
- 1:02:30You know, people want to learn more about the DIR.
- 1:02:32Maybe want to help you out or consider sponsoring this in the future or more people.
- 1:02:37What do you say?
- 1:02:38First of all, if you are a Python user, like you are very, very welcome to bring issues
- 1:02:44to us when they happen.
- 1:02:45Right.
- 1:02:45So whether this is on bugs, Python, the dorg, obviously a very good place so that your report
- 1:02:52will historically, you know, maintain there and we can have a discussion that is open and
- 1:02:57actually work towards a solution.
- 1:02:59But also in informal ways.
- 1:03:01You know, if you reach to us via RSC or ask stuff on the mailing list or discourse, like
- 1:03:07we're very happy to hear your feedback.
- 1:03:09So you don't have to write code like on day one.
- 1:03:12Don't worry.
- 1:03:12You might never write code for us to fix your problems.
- 1:03:15Just report them.
- 1:03:16It's great.
- 1:03:17If you have stuff that works very well for you, you might also spend a minute, you know,
- 1:03:22telling us because this is something that nobody gets enough, you know, in this industry.
- 1:03:26We only get bug reports, you know, and yeah, like if you do want to contribute, there's
- 1:03:31many ways to do this.
- 1:03:32If you want to code, absolutely.
- 1:03:34Just don't think it's super, super trivial to get large changes into a 30 year old programming
- 1:03:41language.
- 1:03:41I could make an entire talk just about that.
- 1:03:43Right.
- 1:03:44Every little change has huge implications for some small percentage of people, but there's
- 1:03:49millions.
- 1:03:50And so that's a lot.
- 1:03:51Sometimes very surprising ones.
- 1:03:52Yes.
- 1:03:53But yes, absolutely.
- 1:03:54We need more people doing the work and there's plenty of it.
- 1:03:57So you might still have tremendous impact for the world.
- 1:04:01You know, maybe your code is going to run on Mars.
- 1:04:03You don't, you never know.
- 1:04:04Yeah.
- 1:04:04Even if you're just reviewing PRs and making the little tiny fixes or stuff like that, that
- 1:04:09could be a big contribution.
- 1:04:10Totally.
- 1:04:11And finally, for the current sponsors, thank you.
- 1:04:14You make this possible.
- 1:04:16So like, really, thank you.
- 1:04:18And for people and companies considering sponsorship for next year, if there's anything that you're
- 1:04:24not seeing that you would like to see that would convince you that it's worth it.
- 1:04:28Also let the PSF know, like we might adjust what we're doing so that you're more comfortable
- 1:04:33with sponsoring because really like, you know, this is a very unique programming language
- 1:04:39in the sense that it is community driven and community owned.
- 1:04:43So yeah, please talk to us.
- 1:04:45Yeah.
- 1:04:45Awesome.
- 1:04:46Well, thanks so much for being here.
- 1:04:47Catch you next time.
- 1:04:48Thank you.
- 1:04:49Bye-bye.
- 1:05:15Bye-bye.
- 1:05:19Bye-bye.
- 1:05:22Bye-bye.
- 1:05:24Check it out for yourself at training.talkpython.fm.
- 1:05:27Be sure to subscribe to the show, open your favorite podcast app, and search for Python.
- 1:05:31We should be right at the top.
- 1:05:33You can also find the iTunes feed at /itunes, the Google Play feed at /play,
- 1:05:38and the direct RSS feed at /rss on talkpython.fm.
- 1:05:42We're live streaming most of our recordings these days.
- 1:05:46If you want to be part of the show and have your comments featured on the air,
- 1:05:49be sure to subscribe to our YouTube channel at talkpython.fm/youtube.
- 1:05:54This is your host, Michael Kennedy.
- 1:05:55Thanks so much for listening.
- 1:05:56I really appreciate it.
- 1:05:58Now get out there and write some Python code.