Latest / Talk Python To Me / #208: Packaging, Making the most of PyCon, and more
Transcript
- 0:00Are you going to PyCon or a similar conference this year?
- 0:02Join me and Kenneth Wright as we discuss how to make the most of PyCon
- 0:06and what makes it special for each of us.
- 0:08We also cover a buffet of other topics, packaging, pip, nth,
- 0:13developing Python on Windows, async and await, and more.
- 0:15This is Talk Python To Me, episode 208, recorded April 3rd, 2019.
- 0:21Welcome to Talk Python To Me, a weekly podcast on Python,
- 0:38the language, the libraries, the ecosystem, and the personalities.
- 0:41This is your host, Michael Kennedy.
- 0:43Follow me on Twitter, where I'm @mkennedy.
- 0:45Keep up with the show and listen to past episodes at talkpython.fm
- 0:48and follow the show on Twitter via at Talk Python.
- 0:51Hey, folks, a quick announcement.
- 0:53The Talk Python training application has been out for a week or so,
- 0:56and the reception has been great.
- 0:58Many people have let us know that the offline access
- 1:01and native mobile device experience has been a big boost for them.
- 1:04It's also rewarding to see so many people joining the free Python courses
- 1:08that we offer right in the app.
- 1:09Just create an account, log in, and tap the free courses you want,
- 1:13or access the ones that you purchased.
- 1:14Check it out at training. talkpython.fm/apps.
- 1:18It's 100% free.
- 1:19The Android app is out right now,
- 1:21and we're publishing the iOS version to the App Store tomorrow.
- 1:24Now, let's chat with Kenneth.
- 1:26Kenneth, welcome to Talk Python.
- 1:28Hi, Michael.
- 1:28Yeah, it's great to have you back.
- 1:30I know we're going to have such a fun time
- 1:32talking about a whole bunch of things.
- 1:33How have you been?
- 1:34I've been well.
- 1:34I've also been unaware, but, you know, things ebb and flow.
- 1:37Yeah, that's certainly the way of things, isn't it?
- 1:40Well, I'm glad you're doing well now.
- 1:41It sounds to me like you're coming to us
- 1:43kind of like from some radio past here.
- 1:46Yes, I'm coming to you from the transatlantic accent of the 1950s.
- 1:49You might not know that the old radio voice that you hear,
- 1:52it is the responsibility of two different factors.
- 1:55One of them is this microphone.
- 1:57I'm using an astatic microphone.
- 1:59This is model number D-104.
- 2:01I found it in an antique shop.
- 2:03It doesn't use XLR, but I made my own XLR connection for it.
- 2:07And it is a crystal microphone, and it sounds absolutely wonderful.
- 2:11That is responsible for the 50s sound.
- 2:13The other component is they actually trained people to speak
- 2:16in something called the transatlantic accents.
- 2:19It was supposed to be something that old style of speaking you would hear in movies.
- 2:23It wasn't the way people talked.
- 2:25It was actually you would go to school,
- 2:27and you would learn how to speak this accent
- 2:29if you wanted to be an actor or an actress or work in media.
- 2:31So just a useful piece of information there.
- 2:34That's so interesting.
- 2:35I had no idea.
- 2:35Well, it's fun to have a bit of a blast from the past,
- 2:38and I'm pretty impressed you made your own XLR cable.
- 2:41That's cool.
- 2:42You know, people know you from many of the popular projects,
- 2:45probably the biggest being requests,
- 2:47but a bunch of others, pip, EMP, and Responder, and some other things.
- 2:51So maybe we won't go too much.
- 2:55That's a whole bunch of other stuff.
- 2:56Don't want to make it a catalog.
- 2:58But maybe we won't go into so much to how you got into programming
- 3:01because you've been doing it for a whole long while.
- 3:04I think we mentioned it on the other show, how I got into it, right?
- 3:07Yeah, exactly.
- 3:07The story is in a previous episode that we already talked about.
- 3:10That's right.
- 3:10So maybe let's just catch up with you on what you're up to today.
- 3:14I believe when I spoke to you previously, you were at Heroku,
- 3:18and now you're hanging out over in the DigitalOcean space.
- 3:22What are you doing?
- 3:22Yeah, I'm deep in the sea at DigitalOcean.
- 3:24I'm a developer evangelist advocate, actually.
- 3:27That's my title.
- 3:28I'm a senior developer relations advocate over at DigitalOcean.
- 3:31And I spend my day-to-day interacting with developers
- 3:35and helping understand them and their needs
- 3:37and helping communicate that to the brand
- 3:39and helping communicate the brand to the developers.
- 3:42So it's a good thing.
- 3:43Yeah, that sounds super fun.
- 3:45How much of that is Python?
- 3:46How much of that is Linux?
- 3:47How much of that is DevOps?
- 3:49What's that look like?
- 3:51It's really to be determined.
- 3:52I'm still figuring that out.
- 3:53At first, it seems like it's going to be more Python than I thought,
- 3:56just because my audience is Python, and it's what I'm really good at.
- 3:59Python is part of the Linux standard base, and that's really important.
- 4:04Python, as part of the Linux standard base,
- 4:07and what that means is you don't have Linux without Python.
- 4:10If you remove Linux from Python or Python from Linux,
- 4:13you don't have Linux anymore.
- 4:15It's not Linux.
- 4:16Linux is not Linux without Python installed in it.
- 4:20So that is an important distinction that a lot of people don't realize.
- 4:24And that's why a lot of these key distinctions
- 4:26about what decisions we're making in Python community versus 2 and 3
- 4:29and what are we going to call the binary
- 4:31in these different distributions is really important
- 4:35because Linux depends on Python to function.
- 4:39It's like Bash except for way more powerful and more expressive.
- 4:43And I love Bash.
- 4:44Bash is one of my favorite languages
- 4:46because if you're operating with subprocesses inherently,
- 4:50then you use Bash.
- 4:52But if you're doing anything else, then you use Python, basically.
- 4:56That's my policy.
- 4:57All right.
- 4:57That's a cool idea.
- 4:58Yeah.
- 4:59And so as far as my job is concerned,
- 5:02I want to work with developers.
- 5:03And I have this coworker named Eddie Zaneski,
- 5:06who's a great guy who goes to a lot of conferences,
- 5:08and he's managing the developer relations team.
- 5:11And I don't report to him,
- 5:13but he kind of oversees some of the strategies of what we're doing,
- 5:17kind of lower-level strategies.
- 5:19And he is focused on Kubernetes.
- 5:23So he's really in-depth in Kubernetes.
- 5:25So I tried to get into that world,
- 5:27and I focused a lot.
- 5:28I tried to write an operator,
- 5:28and I kind of got beat up.
- 5:31I got really far, actually.
- 5:32I learned a lot,
- 5:34and I got really advanced
- 5:35in some advanced Kubernetes stuff.
- 5:37But I learned where my place is.
- 5:39And my place is,
- 5:41I want to focus on the deployment experience of a droplet
- 5:44and this accessibility of the people using droplets
- 5:47and just enabling the developers of people who are using Linux
- 5:52to have a great experience.
- 5:53And that's people who are using Python, too.
- 5:55So I think that it all kind of fits together into the big picture.
- 5:58So I'm supporting Python people as much as I always have.
- 6:01I also want to support general Linux usage and their education,
- 6:06because that's a lot of things.
- 6:07Another big thing my community team does
- 6:09is write those great tutorials that everyone knows and loves.
- 6:12Yeah, the tutorials there really are fantastic.
- 6:14Often, I'll be just randomly searching the internet for like,
- 6:17how do I do this with Ubuntu?
- 6:19And I end up like right there with you guys.
- 6:21Well, thank you very much.
- 6:21My team is responsible for that.
- 6:23Right on.
- 6:24I'm not claiming anything.
- 6:25It's a different part of my team.
- 6:26But it takes a significant effort to maintain that.
- 6:29So some of them will be at PyCon,
- 6:31some of the editorial team.
- 6:32So feel free to reach out to me,
- 6:35and I'll point you in the right direction
- 6:36to talk to some of the people
- 6:37that help maintain those articles.
- 6:38Because writing them is one thing,
- 6:40but keeping them up to date is another thing.
- 6:42So it's interesting to solve and solve.
- 6:44Yeah, some of them even have dropdowns, right?
- 6:48Like this version of Linux, like 1804, 1604, 1610, or whatever.
- 6:54And that's a whole nother level.
- 6:55That's pretty impressive.
- 6:56I've never seen that on any other knowledge base.
- 6:59No, I haven't either.
- 7:00Maybe under documentation, right?
- 7:03Versions for doc, but not for just random tutorials.
- 7:05It's really cool.
- 7:06Yeah, knowledge base is never.
- 7:08Oh, maybe for a project, right?
- 7:11Yeah, exactly, exactly.
- 7:12Yeah, I also, I could do other things.
- 7:14Do you want me to talk about that?
- 7:15Yeah, absolutely.
- 7:15I mean, let's talk about some of your open source stuff
- 7:17that you've been up to lately.
- 7:18Not much.
- 7:19I might, like, cool.
- 7:21I want to focus on the things that are unrelated to that.
- 7:24So I'll talk about the open source project
- 7:26that I'm excited about, which is called Py Theory.
- 7:28I basically wrote a system that is capable of representing any music system, musical system.
- 7:35Nice.
- 7:36So it has one built in called Western, which is a diatonic system, which means it uses 12 notes
- 7:42per octave.
- 7:43It does make an assumption that you're using octaves, but that's kind of a base assumption.
- 7:49I'm not aware of any musical systems that have, like, double octaves or anything like that.
- 7:54I'm sure they exist or could exist, but, you know, one thing at a time.
- 7:57So you could have another system that has, say, eight per octave or seven or two.
- 8:03And so those could be put in very easily.
- 8:06It's strings.
- 8:07You define a system.
- 8:09And then you have notes.
- 8:11And the notes represent tones.
- 8:13And the tones represent frequencies.
- 8:15And the frequencies represent symbols.
- 8:17The frequency, actually, the tones represent math formulas, actually.
- 8:22And the math formulas can be represented by pitches.
- 8:25And the pitches can be represented by decimals or symbolic.
- 8:29It's just very accurate math and music theory stuff.
- 8:33iPython Notebook is linked to in the ReadMe,
- 8:36where I use it to find correlative musical keys.
- 8:41So if you have A minor, it's the same.
- 8:44It contains all the same notes.
- 8:46C major, right?
- 8:47It's all the keys on the keyboard.
- 8:49So, like, how do you find that out?
- 8:51I don't know how to find that out.
- 8:52So I told my computer to find out for me.
- 8:55So I can put in, like, F sharp, F minor.
- 8:57And it'll tell me what other keys use the same notes,
- 9:01which is really useful if you're sampling, for example.
- 9:04If you have, like, a sample that's in G minor,
- 9:05and you're like, can I use this in my song?
- 9:08Does it fit?
- 9:09Then you can plug it into my little iPython Notebook.
- 9:12And it'll tell you.
- 9:12Interesting.
- 9:13It's kind of like the design color wheel of music,
- 9:17where you pick, like, one spot,
- 9:18and it'll say, these are, like, the complementary colors.
- 9:20This is, like, the complementary sounds and notes and so on.
- 9:23It's just one application of it.
- 9:24It has infinite applications,
- 9:25but no one's really using it because no one understands it.
- 9:28But it's a really cool library.
- 9:31Yeah, it's cool.
- 9:32There's a bunch of people doing, like,
- 9:33theoretical musical analysis with Python these days, actually.
- 9:38I think they would find my library useful if they knew it existed.
- 9:41So I wanted to talk about it.
- 9:44Yeah, that's awesome.
- 9:44So PyTheory, that's cool.
- 9:45I'll put a link in the show notes as well.
- 9:47Have you seen the FoxDot live coding musical performance stuff?
- 9:51Yeah, I've played a lot with a few of those.
- 9:53There's the one that uses, like, Erlang.
- 9:55No, what's the Java?
- 9:57Scala?
- 9:58No.
- 9:58There's the JVM language that looks like Scheme.
- 10:04What's that called?
- 10:04Yeah, I don't know.
- 10:05I've done Scheme.
- 10:06I'm sorry.
- 10:07Yeah, yeah, it's all right.
- 10:08There's a live performance thing that's like that.
- 10:10I think the Fox one might be that.
- 10:13Nice.
- 10:13I'm trying to be too accurate.
- 10:14I'll be more casual.
- 10:17No, those are really fun, watching those.
- 10:20But this sounds more like formal analysis, not just like, let's make some noise.
- 10:23And then also, you've been probably doing a lot of photography.
- 10:26I know you're a big into photography.
- 10:28Yeah, I'm doing a lot of photography, and I'm doing a lot of videography.
- 10:31Lately, I have a GoPro, and it's my new favorite device.
- 10:33The GoPro Hero 7 is fantastic.
- 10:35And that company does not get enough credit.
- 10:38I have not done any research at all.
- 10:40I just use the damn thing, and I love it.
- 10:42And it is so seamless, and they have put so much thought into the hardware as well as the software,
- 10:48that I am making a claim that they must, the only company who's put that much thought into things is Apple,
- 10:54and potentially Olympus, and Leica, and a few other, Fuji, potentially.
- 11:00Those are the companies I'm aware of who puts that much thought into things.
- 11:03So I think they have engineers that used to work at Apple, or Nest, or stuff like that.
- 11:09Sure.
- 11:09Yeah, it's cool.
- 11:10Those are incredible devices.
- 11:11I mean, just the quality and stuff.
- 11:13It doesn't need a gimbal.
- 11:14It's amazing.
- 11:15That's how they sell it, is that it doesn't need a gimbal.
- 11:18You can violently shake it in your hand, and it doesn't need a gimbal.
- 11:22But that's not the cool part.
- 11:24The cool part is the workflow is so seamless.
- 11:27I don't have to plug it in.
- 11:28It just syncs over Wi-Fi, and I can just share the videos.
- 11:30I don't have to edit them.
- 11:31You can change the thing that it makes, but it just makes this amazing montage video
- 11:35that's exactly what I wish I could do out of the box.
- 11:38So I upload a vlog every day, and it takes me like, it takes about half an hour to wait
- 11:42for it to sync and to make sure that there's nothing that I don't want uploaded, uploaded.
- 11:47But it's just a great workflow experience.
- 11:49They know what they're doing, and they don't get enough credit for that.
- 11:51Yeah, cool.
- 11:52Well, I've definitely considered using them, not in the technical space, but definitely
- 11:57consider using them for some things.
- 11:58And it seems great.
- 12:00So if you see me at PyCon, I will have a GoPro, and I will be filming you.
- 12:02Right on.
- 12:04Are you going to do like a live walk around V-blog type thing?
- 12:08I'm going to be vlogging, and I'm going to be heavily documenting PyCon, yes.
- 12:11Right on.
- 12:11That'll be cool.
- 12:12Definitely.
- 12:12I'm going to be wearing bright colors, so it'll be very evident that I'm making an appearance.
- 12:16And I want to not disturb anyone who doesn't want to be filmed, obviously.
- 12:20So it'll be an interesting balance between those two things.
- 12:23Nice.
- 12:24You have to put some big bright lights on you, so it's obvious you're a camera person.
- 12:27Yeah, well, I'm practicing wearing bright colors and bright shoes, and I painted it orange.
- 12:31So, you know, it'll be pretty bright.
- 12:34So we'll see.
- 12:35No, it sounds super cool, and I'm looking forward to checking out the video.
- 12:37That's going to be great.
- 12:38Thank you.
- 12:38Yeah, another thing that we were talking about right before we hit record that you've been
- 12:42up to that is, you know, maybe a little bit different for folks is you've been doing
- 12:46a lot of C colon backslash, not so much dollar sign these days, right?
- 12:50I have.
- 12:50I'm using PowerShell because I'm running Windows 10 as my main and only operating system.
- 12:55Well, no, I use all operating systems every day, but including Android and iOS.
- 12:59My primary operating system is Windows.
- 13:02That's super interesting.
- 13:04You know, I used Windows as my primary operating system for a long time.
- 13:07These days, I'm on my Mac for development and Linux for production.
- 13:11But, you know, what's the story there?
- 13:13Like, how do you get onto Windows?
- 13:14I'm not sure why I did it.
- 13:15I did it because I was bored mostly.
- 13:17Yeah.
- 13:18And it was a challenge.
- 13:19And a part of reasons I could give, like playing games is one, but I don't really do that.
- 13:26It's just an excuse.
- 13:27It is an excuse.
- 13:28Yeah.
- 13:29I really enjoy it.
- 13:30And I'm really hyper-efficient Windows.
- 13:31And Windows is not what it used to be.
- 13:33It's actually a better operating system than macOS, I'll say.
- 13:36It's not as well designed when it comes to some of the polish, but it's so much more powerful.
- 13:42And I'm going to make some assertions in that way.
- 13:44Very simple.
- 13:45And I won't explain them.
- 13:46All right.
- 13:47But WSL is a very powerful system that is better than having the system built on Unix.
- 13:56It's better to have an operating system built on itself and that you can dip into Unix at any time.
- 14:02Right.
- 14:02So just for folks listening, just to set the context, WSL is Windows.
- 14:06Subsystem for Linux.
- 14:07Subsystem for Linux.
- 14:09Yeah.
- 14:09So this is like, basically, you go to the Windows 10 store and you say, I want Linux.
- 14:12Here's a couple of distributions.
- 14:13You say, yes, Ubuntu or whatever.
- 14:15You're good to go.
- 14:16Basically, if you're saying you click, I want Ubuntu, you click install.
- 14:20After you exchange a few settings, and then you have Ubuntu available.
- 14:24And then on the command line, whenever you're in the command line, which you set up to look pretty,
- 14:28I have a pretty shell just like all of you do.
- 14:30And it has git status just like all of you do.
- 14:32It's very easy to set up.
- 14:34And I type WSL space and any command I run runs in Linux.
- 14:39And it just runs in line.
- 14:40And I can, so if I want to type WSL space LS, it runs it in Linux and just returns.
- 14:46And I just ran that in Linux.
- 14:48And if I don't, if I want to run a regular LS that's in my Windows system, I run LS.
- 14:52And if I want all the Linux command utilities, I get them from installing git bash.
- 14:56And I just tell it to install it.
- 14:57There's like the third option when you're installing it is right from this, the command line prompt
- 15:02instead of from MSys or whatever.
- 15:04And it gives you all the Linux command line tools in Windows.
- 15:09So it just like gives you the perfect setup really easily.
- 15:11And you type WSL space.
- 15:13And then I could type, if you don't have WGET installed, like for example, on Windows,
- 15:17you just do WSL space WGET.
- 15:19Yeah.
- 15:19Or you just type WSL enter and it drops you into your shell.
- 15:23You know, so it's just perfect.
- 15:25Right.
- 15:25That's super cool.
- 15:26Current directory gets passed along and all that stuff.
- 15:29I think that's great.
- 15:30I've heard about it.
- 15:31I haven't done a ton with WSL, but it sounds, sounds pretty neat.
- 15:35This portion of Talk Python To Me is brought to you by Linode.
- 15:40Are you looking for hosting that's fast, simple, and incredibly affordable?
- 15:44Well, look past that bookstore and check out Linode at talkpython.fm/Linode.
- 15:49That's L-I-N-O-D-E.
- 15:50Plans start at just $5 a month for a dedicated server with a gig of RAM.
- 15:55They have 10 data centers across the globe.
- 15:57So no matter where you are or where your users are, there's a data center for you.
- 16:01Whether you want to run a Python web app, host a private Git server, or just a file server,
- 16:05you'll get native SSDs on all the machines, a newly upgraded 200 gigabit network, 24-7 friendly
- 16:12support, even on holidays, and a seven-day money-back guarantee.
- 16:15Need a little help with your infrastructure?
- 16:17They even offer professional services to help you with architecture, migrations, and more.
- 16:22Do you want a dedicated server for free for the next four months?
- 16:25Just visit talkpython.fm/Linode.
- 16:30I think it is great that you're working in Windows.
- 16:32So many people use Python on Windows, right?
- 16:36We need developers working there as well.
- 16:38The problem that this really solves for me is I never have to add Python or Windows compatibility
- 16:43to any Python software I'm building now.
- 16:45Because it's built in from day one.
- 16:48You do that as you develop it, right?
- 16:50Exactly.
- 16:50Responder is built completely in Windows, so I don't have to add Windows compatibility.
- 16:54Yeah.
- 16:54And that's exactly why I was excited to hear you doing this, right?
- 16:58Because so many folks only work in Linux, or they only work in some variation of macOS
- 17:03and Linux.
- 17:04And then poor sucker that comes along and wants to use this project on Windows, and then they
- 17:09hit some corner case that doesn't work, and it's frustrating, right?
- 17:12I will add a quick asterisk.
- 17:13It is very, very painful if you want to do low-level programming.
- 17:17Because I want to build a, there's the Love 2D library that is for building games, and
- 17:23I want to port that to Python.
- 17:24I can't do it myself.
- 17:26I think I might approach the PSF to see if they will fund this happening, and I can organize
- 17:31it.
- 17:31And I cannot figure out an easy way to do this on Windows.
- 17:35I think I need a Linux or macOS system in order to easily just build the binary.
- 17:40Because the binaries are too tightly tied to that OS, that kernel.
- 17:44Unless I drop completely into WSL, which I want to avoid.
- 17:48Right, right.
- 17:49That's not really building it for Windows, right?
- 17:51That's like making it run on Windows.
- 17:53Yeah, unless I use Visual Studio, which I don't want to do.
- 17:55So I, because I use Visual Studio code, not Visual Studio.
- 18:00And I don't want to install, you know, a 14 gig IDE to run my little game.
- 18:06So I don't know.
- 18:07Well, I'm figuring it out.
- 18:09Anyway, we can move on.
- 18:10Yeah, yeah.
- 18:10Sounds good.
- 18:11No, but I think it's pretty cool.
- 18:13And I'm sure there's a lot of benefits that are coming out into the various projects that
- 18:18you're working on and giving feedback to running over there.
- 18:21So super.
- 18:21Speaking of projects, I did talk about your most well-known one, Requests.
- 18:26So pretty interesting stuff you got going on there.
- 18:29You know, one thing that I've been super excited about lately is async and await.
- 18:33Yeah.
- 18:34It's not perfect.
- 18:34I think it's a bit of a letdown.
- 18:36You think so?
- 18:36All right.
- 18:37I think it's pretty nice when you're doing stuff with other systems.
- 18:42I mean, computationally, let's hear the counter-arguing.
- 18:45Async and await is a fantastic primitive that allows you, it gives you the, it gives Python
- 18:49the inherent ability to give you async and await programming just like JavaScript has, right?
- 18:55Because they have async and await and it works.
- 18:57And it gives you, but the community hasn't caught up yet to that.
- 19:02Yes.
- 19:03Requests, for example, doesn't support async and await.
- 19:06So if you want to do HTTP, you have to use some crappy HTTP library.
- 19:09AIO, HTTP, client session, et cetera, et cetera.
- 19:12Yeah.
- 19:12I'm not saying those are bad, but they're not, they're not the thing you want.
- 19:16Yeah.
- 19:16You're probably converting your HTTP layer to use a different thing, right?
- 19:22Probably it was built in requests and now it's not.
- 19:23And that's not a problem with async and await.
- 19:25Async and await are perfect primitive.
- 19:26It's just a community thing.
- 19:29It's a trade-off of effort and reward and the effort and reward ratio is the reward of putting
- 19:37async into requests is very low.
- 19:41The effort is very high.
- 19:43I'm doing it anyway.
- 19:45Yeah.
- 19:47Because I like you guys.
- 19:49I like you all.
- 19:50I'm very excited about this, actually.
- 19:52I'm doing it with the help of Tom Christie, thankfully.
- 19:54Yeah, cool.
- 19:55He's helping me out.
- 19:56And what we're doing is we're going to introduce request3, which is, it'll be a new package
- 20:01called request3.
- 20:03You'll pip install request3.
- 20:04And it will have a dependency called requestcore.
- 20:07And requestcore will be a low-level library that has two functions.
- 20:10It'll have request and it'll have blocking request.
- 20:13And they both will optionally accept the pool manager, which can accept the, in the pool manager,
- 20:19you provide an event loop if you have one.
- 20:21And in your arguments for how many pools you want and stuff like that.
- 20:26You also always must provide a timeout.
- 20:28That's the new thing.
- 20:29So historically in requests, you don't provide a timeout.
- 20:34It can block forever.
- 20:35And I'm making the assertion that, no, you must always provide a timeout because that is proper.
- 20:40Yeah.
- 20:40And so that's the new thing in request3.
- 20:42And so Tom Christie is working on requestasync.
- 20:45And that's coming together.
- 20:46And it looks like in the next probably year and a half, we'll have it out.
- 20:50That's cool.
- 20:50I'm looking forward to it.
- 20:51I think it'll be great to have that out there, right?
- 20:53Like it's just one more advantage, one more feature people can take advantage of by moving to modern Python, right?
- 21:01And if all this stuff's built on requests, you know, they're like, oh, great.
- 21:04There's this async stuff, but I can't really use it because I don't want to rewrite that layer.
- 21:07But now, right, you more or less can.
- 21:09I mean, minor changes to slightly alter the imports and stuff.
- 21:13I have to make great changes.
- 21:14Ideally, you have to make very little changes.
- 21:16That's the goal.
- 21:17Yes, exactly.
- 21:18That's a good breath, right?
- 21:20And you can try this method out now because I wrote something called request threads.
- 21:24It just spawns a bunch of threads, but it gives you the API feel of using async and await today.
- 21:31And it uses a twisted to do that.
- 21:34And it works on Python as well, so you can do that if you'd like.
- 21:38Cool.
- 21:38But I did all that work and no one cared.
- 21:40So that's the thing.
- 21:41No one cares, except for the people that do care.
- 21:43And the people that do care are like, it's threads.
- 21:45Why do I care?
- 21:46I want real async.
- 21:47And so the people that want real async are a very quiet audience that care a lot.
- 21:52And they don't mind doing the work of doing it by hand.
- 21:56But I want to make their lives better anyway.
- 21:58So that's what I'm trying to do.
- 21:59Yeah, I think that's great.
- 22:00You know, certainly those sorts of changes can dramatically improve the concurrency, parallelism stuff.
- 22:07The problem I'm trying to figure out is the async stuff, all it's really going to do is help people who are doing evil things.
- 22:13Yeah, hitting a bunch of servers.
- 22:16That concurrently, probably up to no good.
- 22:19I'm just kidding.
- 22:20It's a joke.
- 22:20Yeah, yeah.
- 22:21I'm sure there will be some fraction of that, which is true.
- 22:26But there's also all the microservices and other API stuff, right?
- 22:29Oh, absolutely.
- 22:30I just guarantee requests is used for evil.
- 22:32There's no doubt in my mind.
- 22:34Well, that's an interesting point, right?
- 22:35Like, you make a ton of these libraries, right?
- 22:38I sometimes have these thoughts with my courses, right?
- 22:41Am I teaching somebody who is going to take this knowledge that I'm putting out there and turn around and go do something I would rather not help them do?
- 22:50You are.
- 22:50You're equipping people with knowledge.
- 22:52That's why you have to teach them ethics, too.
- 22:53Yeah.
- 22:54You should add an ethics section to your courses.
- 22:56I should.
- 22:57It's not a joke.
- 22:58I'm serious.
- 22:58That was the first thing they taught me in computer science when I dropped out.
- 23:02But it was ethics, computer science, and it was so helpful.
- 23:05I think there's something to that.
- 23:06I mean, certainly in, like, a screen scraping section I had, you know, I talked about terms of services and how you work with that.
- 23:14And so a little bit.
- 23:15But, like, you know, it's like saying, yeah, if you're going to rob a bank, you know, don't use my gun.
- 23:20I don't know.
- 23:21Like, it feels like the people who really just don't are not going to do great stuff are not really going to care.
- 23:26If you're going to try to write some virus or hack some system, yeah.
- 23:29Well, it's like locks.
- 23:30Locks are to prevent innocent people from stealing.
- 23:32That's all they are.
- 23:33Yeah.
- 23:34Right?
- 23:34Cryptography is different because it can actually keep things safe.
- 23:38But regular locks are to keep innocent people from stealing.
- 23:42So that's what ethics are.
- 23:44When you're teaching ethics and introducing them to people in your courses, you can just introduce them as you're teaching, like, remind people of ethics.
- 23:52As you equip them with information and power, you have to guide them because they are being given tools that they weren't aware of before.
- 23:59And they're like, oh, now I could do this bad thing.
- 24:01And they are innocent people.
- 24:03And you have to kind of guide them towards the light.
- 24:06You know what I mean?
- 24:06Yeah.
- 24:07I suspect that you're right, that there's a lot of folks who, you know, with a little guidance wouldn't do anything.
- 24:12But, yeah, I guess it is true that...
- 24:14I've experienced that a lot as mentoring people.
- 24:16I start...
- 24:17As they gain power, they're like...
- 24:20They start talking about all the things they could do.
- 24:22And then I have to correct them immediately.
- 24:24You know?
- 24:25Yeah.
- 24:25I've seen that multiple times.
- 24:26The light comes on.
- 24:28You're like, wait a minute.
- 24:29I could what?
- 24:30And I did that myself when I was young.
- 24:31So I think it happens with every developer.
- 24:33That's an interesting point.
- 24:34So, you know, on this async and await thing, it sounds to me like what you're saying is the constructs are sound.
- 24:41The programming API is super sound.
- 24:44But what we really need for it to not be a letdown and be really amazing is for more of the libraries to take advantage of it and have it sort of more pervasive if we want to use it.
- 24:55I know Request needs to use it more.
- 24:57I'm not aware of any other shortcomings.
- 24:59I don't know of any other application where it's really required.
- 25:02Do you?
- 25:03Sequel Alchemy.
- 25:03Okay.
- 25:04Yes.
- 25:04It would be very...
- 25:06I mean, if you're running a website and it can take, you know, synchronously...
- 25:10It could take...
- 25:11Yeah.
- 25:11Sequel Alchemy is exactly the same as Request, basically.
- 25:14It's just making outbound calls.
- 25:15Yeah.
- 25:16I mean, it's a network call.
- 25:17Yeah.
- 25:18Exactly.
- 25:18It's a network call.
- 25:19Anywhere where you're making a network call.
- 25:20Right.
- 25:21Redis.
- 25:21All those network.
- 25:23That's exactly the thing.
- 25:24Anytime you're talking to something else, right?
- 25:27Typically, that's HTTP through requests or it's some other thing.
- 25:32You know, MongoEngine talking to MongoDB.
- 25:34Sequel Alchemy talking to Postgres.
- 25:36The Redis API talking to the Redis endpoints, right?
- 25:40These types of things.
- 25:41You know, you could massively scale.
- 25:44So...
- 25:44Someone's going to go out and build those things.
- 25:46They're going to listen to this podcast or they're going to notice on their own.
- 25:49And they're going to go out and build their own library.
- 25:51And it's going to be called like Redis Async.
- 25:52And that's the problem.
- 25:53Exactly.
- 25:54There is a Redis Async.
- 25:55There's like a...
- 25:55And that's good.
- 25:56Maybe it's called Async Redis.
- 25:58I'm not entirely sure.
- 25:59But yeah, there certainly are.
- 26:01No, it's not inherently bad.
- 26:02I think that's good that people are doing that.
- 26:04Some people shame people for doing that.
- 26:06And it's not bad.
- 26:07Yeah.
- 26:07It's good that they're doing that.
- 26:08But that effort does need to be concentrated on the original library.
- 26:11And if the original library is hesitant to accept those changes, then a fork should take place or a new library should be built that is intended to supplant it.
- 26:21Yeah, for sure.
- 26:22You know, another one is Open.
- 26:23Like the built-in Open.
- 26:24All the file IO stuff.
- 26:26Codex.open?
- 26:27No, just like...
- 26:28Open.
- 26:28I want to open a text file and read it.
- 26:30With Open, you know, text file as stream.
- 26:33Right?
- 26:34Because file IO is perfect for this kind of stuff.
- 26:37You use an iterator when you're...
- 26:38I iterate over Open, don't I?
- 26:40Yes.
- 26:41Because it's not...
- 26:42It doesn't block.
- 26:42Open is immediate, isn't it?
- 26:44I mean, it's waiting on external...
- 26:45It's like waiting on disk, right?
- 26:47Especially if the disk is network.
- 26:48Well, it's waiting on a system...
- 26:50It's waiting on a system call.
- 26:51Yeah, yeah.
- 26:52I don't think you can await a system call.
- 26:54They have...
- 26:55So there's a...
- 26:56Oh, gosh.
- 26:57What is it called?
- 26:57I forgot the name.
- 26:59So there's an async and await enabled version.
- 27:02I think it's aiofiles.
- 27:04I'm pretty sure what it is.
- 27:06Okay.
- 27:06Okay.
- 27:07So, I mean, there's just like...
- 27:08There's all these layers.
- 27:09Yeah.
- 27:09aiofiles is what it's called.
- 27:12Gotcha.
- 27:12Gotcha.
- 27:13Right.
- 27:13There's just like all these little parts where if that was with Open, if there was like some mechanism,
- 27:21I don't know.
- 27:21Like, I'm not really sure how it would distinguish.
- 27:23It's okay to block.
- 27:24You don't need to async all the things.
- 27:26I know.
- 27:27It's okay to block in your async loop too.
- 27:29Like, it's like...
- 27:31You have to decide.
- 27:33And that's why I think it's okay for that files thing to be there.
- 27:36I almost propose that someone outside of the LUT community, outside of the standard library
- 27:42community, make their own async standard library and just make it a PyPI package and just curate
- 27:48all the little ones.
- 27:49And it just has Redis.
- 27:50It has Postgres.
- 27:53It has files.
- 27:55And it's just all namespaced properly.
- 27:57And you just install it as one package and you're good to go.
- 27:59I think that'd be really a good effort for someone to make that.
- 28:02That sounds like a great, great effort.
- 28:03I love it.
- 28:04So one thing that somebody did, Bill, that I am a huge fan of is called unsync.
- 28:09You in sync.
- 28:11Familiar with this?
- 28:12No.
- 28:13What does it do?
- 28:13So unsync is great.
- 28:14So what it does is like, you already talked about request threads and all these things,
- 28:18like using threads.
- 28:18So you can do threads.
- 28:20You can do multi-processing.
- 28:22And you can do IO bound async and await programming, right?
- 28:26And all three of those have different APIs.
- 28:28So what unsync does is it's a decorator you can put onto your functions.
- 28:32And if you put it onto a async function, it'll run it in an async event loop, an asyncio
- 28:38event loop.
- 28:39If you put it on a function that's not async, it'll run it on a thread.
- 28:45And you can also put on a function and say it's CPU bound and it'll run it in a separate
- 28:49process.
- 28:49But the way you program it is all with async and await and all those become like a unified
- 28:54API.
- 28:54I love it.
- 28:55I might be able to use that for request three.
- 28:56Yeah, you could.
- 28:57It's implemented in 126 lines in one file, Python.
- 29:01Thank you.
- 29:02That sounds inherently useful.
- 29:04It's super cool.
- 29:06I really like the way it works.
- 29:07It's on PyPI?
- 29:09Yeah, it's unsync on PyPI.
- 29:10Cool.
- 29:11I'm going to highlight that.
- 29:12I think efforts like that are good bridges, right?
- 29:15Like if some part doesn't accept it, like maybe it just automatically goes to threads, but that
- 29:20doesn't mean you start programming in threads.
- 29:21That's great.
- 29:22So it's an abstraction upon all the abstractions.
- 29:24Yes, but you still program with async and await and it like manages its own asyncio
- 29:29event loop on a background thread and things like that.
- 29:30I love it.
- 29:31I love it.
- 29:31I love it.
- 29:32Yeah, it's pretty slick.
- 29:33It might not be appropriate for what I'm doing, but I'll check it out for sure.
- 29:35It could be inspirational to what you're doing.
- 29:37Absolutely.
- 29:38Without question.
- 29:38Yeah.
- 29:39Yeah, yeah.
- 29:39All right.
- 29:39Moving on.
- 29:40Next thing on our notes is pipm versus poetry.
- 29:42Yeah.
- 29:43I want to reframe that to not pipm versus poetry because I don't want it to be adversarial.
- 29:47How about pip and pipm and poetry as a thing?
- 29:53No, I'll just talk.
- 29:54So yeah.
- 29:55So shed some light on this whole world.
- 29:57Like pipm is-
- 29:58A tool.
- 29:59It's got a lot of attention lately.
- 30:00It's a tool for installing dependencies and managing them using the pip lock file and so
- 30:05on.
- 30:06Poetry is also in that space.
- 30:08Pip, we all know pip.
- 30:09That just installs stuff straight up.
- 30:11All right.
- 30:12So what's the story with all these?
- 30:13Pip installs and uninstalls things.
- 30:15That's all it does.
- 30:16Pipenv installs, uninstalls things, and it manages a toml file for you that other people can reproduce
- 30:22your build with an analog file.
- 30:24It gives you deterministic builds.
- 30:26It also gives you the ability to write that file as you're going.
- 30:30So it enables an efficient workflow for building applications.
- 30:36It's intended for, it's called Python development workflow for humans.
- 30:41So it's a workflow tool.
- 30:42Right.
- 30:43Because the alternative is maybe I decide I'm going to use SQLAlchemy.
- 30:46So then I drop to the command prompt and I go with my activated virtual environment and
- 30:51I pip install SQLAlchemy.
- 30:53And I go back and I start using it.
- 30:54And maybe I forget to put that into a request.
- 30:56Sorry, requirements.txt file.
- 30:58Yeah.
- 30:59Yeah, yeah.
- 30:59Or something like this.
- 31:00And then I get doesn't work.
- 31:02And then, but pip.inf, along with Poetry, right?
- 31:04When I pip.inf install a thing, it actually updates the requirements pip block, right?
- 31:10It will update the toml for you.
- 31:12And the nice thing about, I want to mention that, you know, it's just managing a virtual
- 31:16environment for you.
- 31:17So you can still pip install stuff one off if you don't want it to go into the toml file.
- 31:21People don't realize that.
- 31:22So if you just want to one off install SQLAlchemy for a few minutes and see if it works
- 31:26before you have it go into the toml file, you can just pip.
- 31:29Right.
- 31:29Before I commit to it, for sure.
- 31:30Yeah.
- 31:31Just pip install.
- 31:31And it's just, it works.
- 31:33It's just a layer.
- 31:35So, but Poetry is, and pip.inf adheres to the standards that we have set.
- 31:40Poetry is a different tool that solves different problems.
- 31:43It intends to solve the packaging problem.
- 31:46And it considers pip.inf to not be a packaging tool.
- 31:49I consider pip.inf to be a packaging tool because it deals with packages.
- 31:52That's what it does.
- 31:53Poetry does not consider pip.inf to be a packaging tool because what Poetry does is it packages
- 31:58tools.
- 31:59So it takes the, I can't remember the exact name of the file, the pyproject.toml file,
- 32:05which is another standard for replacing setup.py, which is not the goal of pip.inf.
- 32:11The goal of pip.inf is to replace requirements.txt, which has its uses case.
- 32:16Requirements.txt is for applications.
- 32:19And pyproject.toml slash setup.py is for applications.
- 32:23I'm sorry, it's for libraries.
- 32:25Libraries, yes.
- 32:26A library can be an application.
- 32:28I have a workflow for this.
- 32:30If you're using pip.inf and you're building a library, you do pip.inf install dash e period.
- 32:36And that's all you need to do.
- 32:38It'll automatically go in and it'll grab all of your setup.py defined requirements and stick
- 32:45them into your lock file for you.
- 32:47This is a null issue.
- 32:48But anyway, Poetry, what it does that it adds is it adds a caret operator to the definitions
- 32:56of the different version specifiers because they found that to be necessary from the Node.js
- 33:01community.
- 33:01That is out of spec.
- 33:03It's like this version or higher, something to this effect, right?
- 33:06Yeah.
- 33:07And that's not to spec with what we have documented in the Python packaging community.
- 33:13So they haven't done the due diligence to add that to that, which is fine.
- 33:17I think it's fine for people to do stuff on their own and then catch up later.
- 33:19So they might add that later.
- 33:21You know, maybe we can get a caret operator and a pip, but we don't have it in pip.
- 33:25So it's not valid for us.
- 33:26So that's why I don't like the approach that Poetry is taken, mostly because of the caret operator.
- 33:31But the thing that Poetry does is that Pipem doesn't.
- 33:34And that makes it really nice is it lets you upload your packages.
- 33:36Right.
- 33:37I can say Poetry Build and Poetry, was it Publish?
- 33:40Yeah.
- 33:40Yeah, Publish.
- 33:41Exactly.
- 33:42It has a beautiful website and it's a good effort.
- 33:44It really is.
- 33:45But it's not comparable to Pipem.
- 33:47It does some of the same things, but it's a different tool that does different things.
- 33:51And trying to shoehorn it into saying that they're the same and this versus that is not a healthy discussion.
- 33:58And that's why I got really upset originally when it started happening and it escalated quite quickly.
- 34:02Yeah, I remember it was kind of like a blow up on Reddit or something like this, right?
- 34:07Yeah, I didn't realize that the people on Reddit in the Python room are not the Python community, but Redditors that use Python.
- 34:13That's a big distinction.
- 34:15And these are not exactly necessarily the same openness or considerateness or whatever, right?
- 34:21General Python rules do not apply.
- 34:22I got pretty thrown under the bus and attacked.
- 34:25And people said a lot of things about me that weren't true.
- 34:28But it was like a hyperbolic thing where they would take a little thing and blow it up.
- 34:33And they said things that were slightly true, but they escalated it to a point where it was no longer true.
- 34:40Does that make sense?
- 34:41Yeah, for sure.
- 34:42I definitely have an ego of some sort.
- 34:45But they said I was a narcissist and a flagrant liar and all this other stuff.
- 34:50It's just not true.
- 34:51That's pretty outrageous.
- 34:52It was right after PiCon last year.
- 34:54So I've recovered from that thing.
- 34:56It was like a whiplash of the good and the bad, right?
- 34:59It was horrible.
- 35:00Because PiCon is so great.
- 35:01I mean, you come home from that and you're just like, ah, I wish I was still there.
- 35:04I don't think that'll ever happen again.
- 35:06And I learned a lot about PR from that too.
- 35:08So it was a good experience.
- 35:09And I don't blame poetry.
- 35:10The poetry person, I can't remember his name, Sebastian.
- 35:15He was kind of involved with the thing that happened, but he was just defending himself because they were involving him and I was involving him.
- 35:22And we have a good relationship, I think.
- 35:24And the projects don't hate each other.
- 35:28It's just the people that love poetry hate PipEnv.
- 35:31And that's the problem.
- 35:32Because PipEnv is more popular and it's recommended.
- 35:36And it's recommended for a reason.
- 35:38It's because we did the due diligence to get recommended, to become part of the PiPA, to work with those people.
- 35:44And it is a political sphere and politics are involved.
- 35:49So you can't just be mad and yell at the man when there is no man.
- 35:55It's just a community.
- 35:56They were making it an us versus them when it's just an us.
- 36:01And that's the issue at hand.
- 36:03That's not great.
- 36:04This portion of Talk Python To Me is sponsored by Backlog from NewLab.
- 36:10Developers know the importance of organization and efficiency when it comes to collaborating on a team.
- 36:15And Backlog is the perfect collaborative task management software for your team.
- 36:20With Backlog, you can create tasks, track bugs, make changes, give feedback, and have team conversations right next to your code.
- 36:26You track progress with features like Gantt and burndown charts.
- 36:29You document your processes right alongside your wikis.
- 36:33You can integrate with the tools you use every day like Slack, JIRA, and Google Sheets.
- 36:37You can automatically register issues from email or web form submissions.
- 36:40Take your work on the go using their top rated mobile apps available on Android and iOS.
- 36:44Try Backlog for your team for free for 30 days using our special URL at talkpython.fm/backlog.
- 36:52That's talkpython.fm/backlog.
- 36:56So one of the interesting distinctions I think around pipenv.
- 36:59Like let's just focus on pipenv for the moment.
- 37:02Maybe pipenv versus pip or versus requirements.txt or whatever is when I go and I create a pip block file and I install stuff, it like hashes it to specific versions and dependencies.
- 37:13A pipenv lock file.
- 37:15Yeah, yeah.
- 37:16Just the pip block file, right?
- 37:17Pip file.lock.
- 37:19Yes, exactly.
- 37:20Yes.
- 37:20So it feels like that ties everything down to a certain version and basically freezes the requirements, which is good for applications, right?
- 37:28I want to be able to ship my website and have it like behave exactly.
- 37:31It's good for builds.
- 37:33Yeah.
- 37:33And for builds and whatnot, but not necessarily for libraries, right?
- 37:36Like if I want to ship Flask.
- 37:38When you're shipping a library, you're not shipping a build.
- 37:42You're shipping.
- 37:42Yeah, exactly.
- 37:43Well, you are shipping a build when you're shipping wheels, actually.
- 37:46You're shipping a wheel, yeah.
- 37:47You're not shipping your dependencies when you're shipping.
- 37:49Exactly.
- 37:49Yes.
- 37:50You're shipping only your built version and the dependencies are.
- 37:54You're only your single component of your build.
- 37:56Right.
- 37:57So it seems to me like a lot of the guidance, and you maybe put the right light on this, that pip.emf is more focused on helping you build applications reliably than it is for building libraries.
- 38:09Is that the right frame of mind or have I got it a little bit off?
- 38:12No, I think that's overplayed because you can do dashy, period, install dashy, period, and the workflow is perfect and it works fine.
- 38:22And you can use Twine to upload.
- 38:25And then it gives your developers a synchronous, everyone's using the same exact version of all the developers using the same version of all the libraries.
- 38:32And that gives you a reproducible build of your development environment.
- 38:35So for your development environment, for your developers, that's really important.
- 38:39So I think it is good for building.
- 38:41I use it for all my libraries.
- 38:43For libraries as well.
- 38:44I think it's good for libraries.
- 38:45The community is kind of, it's easier for them to understand that little phrase, but I think it's false.
- 38:50Okay.
- 38:51Nick Coughlin says it because it's easier to understand.
- 38:54And we do focus on applications.
- 38:56Yes.
- 38:56That's our target market, if that makes sense.
- 38:59I think it's our target market, but we work fine for either workflow.
- 39:04It's just our market.
- 39:06We're more marketable to applications than to libraries.
- 39:09Interesting.
- 39:10So have you thought of just taking a dependency on Twine and just passing through the arguments so that you have a pip-inf publish?
- 39:18I want to reduce the number of commands.
- 39:21And that would require you to have a setup.py, which would complicate your, that would be a new file that we'd have to track.
- 39:30Yeah.
- 39:30So we could do that.
- 39:32Let me write that down, actually.
- 39:34It seems like if the recommendation is to use Twine, I know that obviously you could just tell people that, right?
- 39:40But if you had a pip-inf publish and all it really did was just delegate, maybe it would be a cool new aspect without a lot of work.
- 39:49That's all pip-inf does is a lot of delegation.
- 39:51It has like five dependencies, but if you look at, we vendor quite a lot just to reduce the installation ease.
- 39:58And we patch quite a lot of things, too, because there's a lot of broken things out there.
- 40:02And we don't have time to upstream at all, unfortunately.
- 40:06But there's, we have about, I'd guess, 65 dependencies.
- 40:09Wow.
- 40:10But a lot of them are vendored.
- 40:11Maybe just to find that term real quick for folks or maybe like somewhat new.
- 40:15What do you mean you vendor it?
- 40:17Oh, yeah.
- 40:17So to vendor something means to take its source and to copy it into your source.
- 40:21As opposed to this is in my requirements file and you've got to pip install their thing.
- 40:25You're just like, we're just going to take a copy of yours and if we've got to tweak it, we've got to tweak it.
- 40:28That is one use case.
- 40:29That's a good use case.
- 40:31But sometimes you do it just to, if you're building a command line tool especially, it's really good to reduce some dependencies because someone else might have a conflicting dependency on their machine, a different version, you know?
- 40:43Or if you have a really big tool like requests, you need to make sure that your versions are within a very small set of constraints.
- 40:50We're very picky about what version of your lib3 you have installed in requests.
- 40:54Like very picky.
- 40:55And so, because we need to be very picky about it.
- 40:58And it used to be vendored.
- 41:01I removed that.
- 41:02And I removed certify from requests too because of security concerns.
- 41:05Because if anyone was to get access to the request code base, which someone tried to do once by hacking my DNS for five minutes to intercept the GitHub reset email.
- 41:15It's a crazy story.
- 41:17I blog about it if you want to see it.
- 41:20They could insert something into your trusted CAs.
- 41:24And then every major corporation in the world who uses requests would have a trusted CA that is trusted.
- 41:31And then they would get their SSL chain would be vulnerable.
- 41:35And the problem, the only reason that's happening is because we can't trust system search in Python properly, which is a problem that someone's working on.
- 41:42They'll volunteer time though.
- 41:44So you got to be patient.
- 41:45For sure.
- 41:45So, man, does that just like scare you to death?
- 41:48Like do you lose sleep that maybe somebody gets into like the code?
- 41:53I don't have access to requests.
- 41:55I removed myself from requests on PyPI.
- 41:57So for that reason.
- 41:59Because if anyone's going to try to get it, I'm the target.
- 42:01Yeah, yeah, yeah.
- 42:02That's true.
- 42:02You're going to get the spear phishing email or whatever.
- 42:05I shouldn't say that I removed myself because that reduces the thing.
- 42:09But it's just a fun game I'm playing.
- 42:11Yeah.
- 42:12If that makes sense.
- 42:14There's no actual enemy.
- 42:16It's just a theoretical enemy.
- 42:17But someone did try to compromise me and they did it targeted.
- 42:20Yeah, but it's so, so incredibly target rich, right?
- 42:25Like if this is a open source problem in general, this whole supply chain sort of security, right?
- 42:32Like if you can get into maybe not the main thing, maybe the build tools that build the main thing, right?
- 42:38Like if they knew, like, I don't know, let's say you built yourself with Travis CI and then publish that, right?
- 42:43Maybe they try to hack Travis and only do something if they see request.
- 42:46Like it could be a long indirect chain.
- 42:49Absolutely.
- 42:49It's super scary.
- 42:51Any link in the chain has, any weak link is, the whole chain is as strong as the weakest link.
- 42:55Yes.
- 42:56Right?
- 42:56It's almost too much to think about, to be honest, right?
- 42:58Like the thing is, request is at the center of so much data exchange that it's, it's more scary than say, I don't know, os.path getting like rewritten or something.
- 43:11We call it the keeper of the crystals and the crystals are the sacred trust of, because we know how important request really is for the world.
- 43:18It really does power everything around you secretly.
- 43:21Like AWS uses requests to run AWS.
- 43:25Like, because they use Bodo to run, like actually run AWS.
- 43:32You know, Netflix does as well.
- 43:34I mean, like all these different places, like so many places.
- 43:36I think it's beautiful.
- 43:37I'm not doing it to tap myself at all.
- 43:39It's a community.
- 43:40You know, we built this thing together and I just was the person who orchestrated it, you know, and came up with the design.
- 43:47I'm the designer.
- 43:48Cool.
- 43:48It's humbling.
- 43:49That's all I have to say.
- 43:50Yeah, I'm sure that it is.
- 43:51It's awesome.
- 43:51Well, speaking of community and all that stuff, like maybe let's, let's talk a little, a little bit about PyCon.
- 43:58I was pretty interesting that you said you're going to bring your GoPro.
- 44:00And to me, PyCon is kind of like my geek holiday, right?
- 44:05It's my chance to get away, be with my people.
- 44:08And I have good friends who I only see at these conferences a lot of times.
- 44:12I feel the opposite way about PyCon.
- 44:14Tell me about how you feel about it.
- 44:15I mean, it's definitely that, but it's not a holiday.
- 44:17It's my geek work week where like my whole year revolves around prepping for PyCon and making sure that I am on my game for PyCon and that everyone else measures their years by like New Year's and Christmas.
- 44:32Like that time of year is where they like reset and they reflect on the past year.
- 44:36But for me, I do that at PyCon because that's where I learn the most about myself and everybody else.
- 44:41And I, yeah.
- 44:42Yeah.
- 44:43How interesting.
- 44:43Yeah.
- 44:44It's like the Python new year.
- 44:46It's the week where I get to really, my, my online self is a real thing in real life.
- 44:50Somewhat for me as well.
- 44:51Right.
- 44:52Like I sit here in this like padded foamy room.
- 44:54Yeah.
- 44:55That's not that you could see.
- 44:56And I talk to a handful of people, but then I realized actually there's all these people who finally get to talk back to me, which I really appreciate it.
- 45:05You know?
- 45:06All these like imaginary relationships that you have are actually real and you get to, they manifest in front of you at PyCon and it's amazing.
- 45:13It's amazing for me because like, I can't get a drink of water without five people stopping me, you know?
- 45:18Yeah.
- 45:19And I love that.
- 45:20You're always at the podcaster's booth.
- 45:23And so like you're always accessible and it's great.
- 45:25Are you going to do that this year?
- 45:26You know, we're going to have a booth.
- 45:28I haven't talked too much about the details that we're definitely having another booth, but we've teamed up with.
- 45:33Can I like swing by at that booth?
- 45:36Because I have a podcast too, even though it's small.
- 45:37Yes, absolutely.
- 45:39Well, you can definitely come hang out at the booth, but this time.
- 45:43So I don't have a booth this year at all.
- 45:44So that's why I'm asking.
- 45:45No, I know.
- 45:46I would totally have you if we were still doing exactly the same thing.
- 45:49But what we're doing is JetBrains is doing like a Python creators type of partnership thing.
- 45:57So they've got like a mega booth, like a 20 foot by 20 foot booth with a theater and like a little table area and other stuff.
- 46:03I should talk to them about that.
- 46:05Yeah, you should.
- 46:06And they're having like us drop in part of the time.
- 46:10So instead of being at the booth like eight to nine hours a day, which is awesome because I get to meet people,
- 46:15it means I miss out on stuff like open spaces and other types of events that I want to participate in.
- 46:19So now we're going to be like at this booth for, you know, two or three hours each day with little presentations and whatnot.
- 46:25But then after that, I'm going to be out in the community more.
- 46:28So that's what I'm doing this year.
- 46:29Awesome.
- 46:29If there's anything I can do to support you.
- 46:31Yeah, thanks.
- 46:32I mean, I would definitely invite you, but I can certainly put you in touch with the JetBrains.
- 46:36It'd be cool.
- 46:37Yeah, I'm going to invite myself.
- 46:38Yeah, you should.
- 46:39Because I don't have a booth and I'm definitely a Python creator.
- 46:41Yes, I agree.
- 46:42For sure.
- 46:42I'll try to play my guitar or something there and see what they say.
- 46:45That's right.
- 46:47Cool.
- 46:48Yeah.
- 46:48So remind me to connect you after the show.
- 46:50Yeah, but I'm super excited.
- 46:52One of my favorite things really happens to be, you know, besides being on the floor and these experiences, I guess like what you might call the hallway track.
- 47:00It's like some sort of the hallway track, right?
- 47:02Even though if I'm stuck at a booth.
- 47:04I'm more of like the expo hall track.
- 47:05I really like the expo hall.
- 47:07I do too.
- 47:07I spend a lot of time in there.
- 47:09I really love all the meetings.
- 47:10And as soon as I think, all right, this hour I'm going to go see a presentation, I'll bump into somebody like, no, let's just sit down over here while it's quiet and talk, you know?
- 47:17Exactly.
- 47:17I go to usually one talk per PyCon.
- 47:20Yeah.
- 47:21I pick one out and it's like, I have to see this just usually to support the speaker or it's like my good friend of mine.
- 47:26It's their first talk or something like that.
- 47:27Right.
- 47:28Something like that.
- 47:28That's awesome.
- 47:29Yeah.
- 47:29Yeah.
- 47:29I do enjoy the talks, but I enjoy the connections more.
- 47:32Also the open spaces.
- 47:33I'm definitely planning on doing a couple of open spaces.
- 47:36How about you?
- 47:36Yeah.
- 47:36I'll be hosting one for DigitalOcean, which will be really wonderful.
- 47:39I'll use this opportunity to say if anyone wants to sign up for DigitalOcean, my employer, you can go to do.co slash 42.
- 47:46The holy number.
- 47:48That is the answer to life.
- 47:49The holy number.
- 47:50The answer to life, the universe, and everything.
- 47:52And it will give you a $100 credit.
- 47:55So you can use that to spin up some servers and prep for PyCon.
- 47:58And reach out to me if you are a speaker and you need some credit for your talk.
- 48:04We can give you some of that too.
- 48:05You hit me up on Twitter.
- 48:07I'm at KennethWrites.
- 48:08But I'm doing an open space for that.
- 48:11I also want to do something with my guitar at PyCon.
- 48:13So I might do an open space for it or I might do probably do an open space where I just play the guitar a little bit.
- 48:20Or I have a new mobile setup for my electronic music setup that I can play out of my backpack.
- 48:23So I'm probably going to do an electronic music by Kenneth Wright's open space probably.
- 48:29Yeah, that sounds fun.
- 48:30Definitely looking forward to attending.
- 48:32It's more than fun.
- 48:33I'm like super excited about that one.
- 48:35Yeah.
- 48:36Super cool.
- 48:36That's awesome.
- 48:38What else?
- 48:38Do you go to the official dinners?
- 48:40Like the dinner, there's going to be one at the Space and Science Center.
- 48:43There's going to be one at the Rock and Roll Museum, Hall of Fame, I guess.
- 48:46They're wonderful and I highly recommend them.
- 48:48But I don't have time to go to those, unfortunately.
- 48:50I'm usually pretty busy.
- 48:51Yeah.
- 48:51It's pretty easy to get booked out, isn't it?
- 48:53And I also, they cost money.
- 48:55And I don't have money to go to those.
- 48:57I spend all my money on stupid things like this microphone.
- 49:00Well, you know what I end up doing is I end up signing up for these things and then I want to go.
- 49:06But often like one out of two, it'll be like, oh, but there's this other opportunity I didn't know because it wasn't announced.
- 49:13Yeah.
- 49:14Right.
- 49:15So like.
- 49:16I don't want any commitments beforehand.
- 49:18Right.
- 49:19Like, I don't know what's going to be happening that night.
- 49:21I know, but they sell out.
- 49:22And I don't want to miss anything.
- 49:24Oh, I know, but I don't want to sign up for anything ahead of time because I don't know what else is going to be happening.
- 49:30Right.
- 49:30Yeah, I know.
- 49:30What if Gliffin had to be hosting like a brain dump hour that night?
- 49:35I can't miss that for the world.
- 49:36I know.
- 49:36You know, so that'd be a waste of money.
- 49:38So I keep my schedule open as much as I can.
- 49:40That's cool.
- 49:41What do you think about Cleveland and the venue there?
- 49:43Did you enjoy it last year?
- 49:44I did.
- 49:45It's not as good as the other places I've been.
- 49:47Cleveland is great.
- 49:47The reason I say that though is because I was in an Airbnb and I had to drive in every day last year.
- 49:52So this year I'm in the Hilton, which is right next door.
- 49:54So I think I'll enjoy it a lot more.
- 49:55Yeah, I'm in the same hotel.
- 49:57It's literally attached with the tunnel.
- 49:58So it's nice.
- 49:59Oh, really?
- 50:00Yeah.
- 50:01And there's a cool like rooftop bar up there that overlooks the Great Lakes.
- 50:05It's pretty nice there.
- 50:06One of the hotels like five times last year.
- 50:08I think it was the other hotel that's attached.
- 50:10I'm not sure.
- 50:11I don't remember.
- 50:11I must have eaten at the Hilton.
- 50:12It was not cheap, but it was delicious.
- 50:15I really enjoyed the venue.
- 50:17Like I'd never been to Cleveland before and I thought, you know, the city was friendly and I thought the place.
- 50:22Oh, yeah.
- 50:23Convention Center is great.
- 50:24Convention Center was great.
- 50:25The extra outings were good.
- 50:27So I'm looking forward to going back there.
- 50:29I like Montreal a little better.
- 50:30The Convention Center in Montreal was worse, but the city of Montreal was great.
- 50:34But I like the centralism of Cleveland.
- 50:37I feel like you bump into people more when you're out.
- 50:39So that's good.
- 50:41Yeah, for sure.
- 50:41Portland is my favorite.
- 50:43Not mind it being in Portland, man.
- 50:44It was like a 12-minute drive from my house to go there.
- 50:48That was the right amount of travel.
- 50:49Oh, that's ideal.
- 50:51I remember that.
- 50:52We did a podcast, I think.
- 50:54Yeah, we sure did.
- 50:55Yeah, we definitely did.
- 50:56Yeah.
- 50:56You know, I got to do things like I set up like a PyCon hike through the like little mountains next to the city and stuff.
- 51:02Oh, you got to host stuff because it's your place.
- 51:05Yeah.
- 51:05I mean, I don't know anything about Cleveland.
- 51:07Like, what am I going to do there, right?
- 51:09I think when I was there, was there like a Zen garden in Portland?
- 51:13There's two things you might call that.
- 51:15There's one called the Chinese garden and one called the Japanese garden.
- 51:17And they were quite different, but they're both sort of in that.
- 51:19I went to the Japanese one one morning.
- 51:21It's amazing, isn't it?
- 51:23With some people.
- 51:23I don't know what the group was called, but we went over there and it was so, so peaceful.
- 51:29I definitely enjoy going there.
- 51:30I was there about a month ago.
- 51:32I'm like, I could really spend a few hours by myself here.
- 51:35That's great.
- 51:35Yeah.
- 51:36I was there with Jack G.
- 51:37Drick and I had a great time.
- 51:38He's a great man.
- 51:39Yeah.
- 51:39Awesome.
- 51:40What else, like what else you do that maybe people don't know about a PyCon that maybe would make their experience better?
- 51:46The hallway track is great.
- 51:47Do the boffs.
- 51:49If you hear someone say boff, it means open space.
- 51:51It means birds of a feather.
- 51:53So that's a key word that you might, a key phrase that you need to know.
- 51:56Let's see.
- 51:57Other things that are hidden at PyCon.
- 51:59Sprints.
- 51:59There's the scotch boff, which is a hidden event that no one knows about.
- 52:03Oh, nice.
- 52:04There's actually two of them last year.
- 52:06So there's even more hidden.
- 52:08There's the original scotch boff.
- 52:10There was the fake one to like blast the people.
- 52:12And then there was the legit one that was even behind the fake hidden facade.
- 52:16I see.
- 52:16Yeah.
- 52:17And it's a storytelling event that involves lots of very high-end scotch.
- 52:21So I actually went one year and I didn't drink at all.
- 52:23I just drank water because I wasn't drinking.
- 52:25I don't drink anymore.
- 52:26I don't like alcohol at all.
- 52:28So, but I was very welcome.
- 52:30It's an open space.
- 52:32So, but it's kind of outside the PyCon sanctions.
- 52:35So the stories are a little, no, they're not.
- 52:37It's still inside of PyCon sanctions, but it's, you know, it's drinking.
- 52:41So, you know, you expect what you expect.
- 52:43Yeah.
- 52:44What are you going to get if you go drink a bunch of whiskey?
- 52:47Yeah, exactly.
- 52:47It's one of those kind of things.
- 52:49Come prepared for that experience.
- 52:49Come prepared for that.
- 52:50Exactly.
- 52:50Everyone's very kind and respectful though.
- 52:53Yeah.
- 52:53Yeah.
- 52:53And sprints, are you doing a sprint?
- 52:54Are you participating in sprints?
- 52:56DigitalOcean is actually sponsoring the sprints and I'll be there.
- 52:59I'll have my media laptop with me or my iPad.
- 53:01And I'm going to be probably working on video stuff.
- 53:03I usually at the sprints to support everyone else and just be an interruptive force.
- 53:08Or not interruptive force, ideally, but people, you know, I usually kind of sit in your flask if I can.
- 53:16And those groups.
- 53:17And I'm going to be potentially doing a photo booth during the sprints where I have my camera and I have a little two by three printer that I can print things on the spot from.
- 53:28So I want to do headshots of people and sign them or something like that.
- 53:31Yeah.
- 53:32Nice.
- 53:32Yeah.
- 53:33I thought that'd be kind of cool.
- 53:34Yeah.
- 53:34It sounds super cool.
- 53:35I was planning on spending a couple of days at the sprints, but I think I'm only going to be able to spend one now.
- 53:39It turns out I'm going straight from PyCon to Microsoft Build.
- 53:42Oh, cool.
- 53:44There's like a podcast row there.
- 53:46And they invited me to go out there.
- 53:48So it just so happens to be it's all at the same time.
- 53:50That sounds like a great event.
- 53:52Yeah.
- 53:52It'll be.
- 53:53It's super different than PyCon.
- 53:54I'm a big Microsoft fan.
- 53:56You have to wear it.
- 53:56That's a breakfast event, not a dinner event.
- 53:59Yes.
- 53:59.NET developers are very breakfast type people.
- 54:02Yeah, exactly.
- 54:03They get up early and so stay up late.
- 54:05Yeah, I can imagine.
- 54:06So it's going to be fun.
- 54:07I mean, basically, I'm going to go there to talk Python with all those folks, see what they're up to.
- 54:11And then they have great stuff happening with Python over there.
- 54:13You got Steve Dower, Brett Cannon, you know, Nina Zakarenko.
- 54:17Yeah.
- 54:18We're good friends with Nina.
- 54:19I've known her for years.
- 54:21She's a, I think she's doing good.
- 54:23That's a cool team.
- 54:24She's on the Cloud Developer Advocates.
- 54:26Yeah, it definitely is cool.
- 54:27They sponsored requests, actually.
- 54:29Oh, really?
- 54:29They're responsible for, they're one of the biggest sponsors for the request three development.
- 54:33Wow.
- 54:34That's cool.
- 54:34You know, to say thank you to them for that.
- 54:36That's great.
- 54:37Yeah.
- 54:37Pass my message along.
- 54:38Yeah, absolutely.
- 54:39So, yeah, I'm definitely looking forward to PyCon and looking forward to seeing you there as well.
- 54:43Another thing I did want to ask you about while we have a little time together is, you know, since we spoke, there was the whole Guido stepping down, the steering council being formed and all of that.
- 54:54Like, maybe just give us your thoughts on what happened there.
- 54:57Did you see that as just like a natural evolution?
- 54:59Or did you see that as like, oh, crap, what's up with our community?
- 55:02Is this going to be really bad?
- 55:03Or what were you thinking?
- 55:04Well, I thought it could have gone really badly.
- 55:06It didn't.
- 55:07It was really beautiful what occurred.
- 55:09And I think it was a really interesting sociology thing if you actually look at it objectively.
- 55:13Because what occurred was there was a community that had a leader that it trusted who stepped down and gave the community an opportunity to evolve into a self-organized community, into a democracy, effectively.
- 55:26But he did not give it any direction on how to do so.
- 55:30He did not say, this is how you determine the vote.
- 55:32This is how – that type of thing.
- 55:34Yeah.
- 55:34That's the best practice that should have occurred.
- 55:36But he was stressed.
- 55:37He was dealing with his own stuff.
- 55:38I'm not falling – or I'm not accusing Guido of anything for not doing that.
- 55:43It would have been very helpful if he did.
- 55:45Because he didn't, though, we had to self-organize and determine without direction a voting process, a decision process, how to decide, how to decide.
- 55:55Yeah, it was a meta – a very meta type of thing.
- 55:57Like, first we have to decide how we're going to even decide stuff.
- 56:00Then we've got to elect people to make the decisions.
- 56:02And there was a lot of layers to unpack there.
- 56:04And we had to scope it.
- 56:06Who's qualified to make the decisions on who's qualified to make the decisions.
- 56:09Yes.
- 56:10Exactly.
- 56:10So –
- 56:11Exactly.
- 56:12That was really beautiful.
- 56:13And I think it went really, really smoothly.
- 56:15And I think it went great.
- 56:16And I think we're in really good hands.
- 56:17I do, too.
- 56:18I'm really happy to see who's on the steering council.
- 56:20I think it's going to go well.
- 56:21And I'm also happy that Guido is still core developer and part of it and stuff, right?
- 56:26Like, that he's participating.
- 56:27He's on the steering council, isn't he?
- 56:29Yeah, yeah, he is.
- 56:30Yeah.
- 56:30Yeah, that's perfect.
- 56:31That's perfect.
- 56:31I wasn't expecting that.
- 56:33And that was a surprise to me.
- 56:34That was a surprise to me as well.
- 56:35But I felt like –
- 56:36It's appropriate.
- 56:37He's certainly appropriate, right?
- 56:38Like, if he – you talked about this Reddit.
- 56:40He just wanted to – I did the same thing for PipBand.
- 56:42I did a relinquishment of BDFL power recently.
- 56:45Where I don't have BDFL power anymore.
- 56:48And it's just a logical next step, I think, when you have a BDFL is to let go of it eventually.
- 56:53Right.
- 56:54Once the community is strong enough and whatnot.
- 56:56I mean –
- 56:57There's too much political weight on the BDFL.
- 56:59And so all of the good things that happen in Python can be assigned to you, which is good.
- 57:04Or in the project, like PitBand or Python.
- 57:06But all the bad things that can happen also can be assigned to you.
- 57:10And all the negative connotations.
- 57:11And so, like, a new thing like a walrus operator being added can cause a flame war.
- 57:16And everyone's like, you suck.
- 57:17You suck.
- 57:18You suck.
- 57:18Yeah.
- 57:19And so that is why he wanted to step down probably.
- 57:22This is just my opinion.
- 57:23Because that's why I wanted to step down.
- 57:24This PipBand stuff is like – it's not just me.
- 57:28I'm not the one who's maintaining it anymore on day-to-day.
- 57:32You know, I just want the ability to say I want the thing you suggested, like Twine upload to be built in.
- 57:38But I can do that without being the BDFL.
- 57:40I'm just like a senior project manager of the project, right?
- 57:44Exactly.
- 57:44So I just stepped down as the BDFL.
- 57:46And now it's no longer a Kenneth Wright's project.
- 57:49It's just a PyPA project.
- 57:50That's cool.
- 57:51And so that's what Guido did too.
- 57:52Now it's a Python problem, not a Guido problem.
- 57:54I don't know how you feel about it.
- 57:56But to me, it is tough to take some of that criticism and that negativity.
- 58:01I'm an INFP.
- 58:02Every time that somebody tells you, good job, Michael.
- 58:05Your podcast is great.
- 58:06Or good job.
- 58:07Your course helped me so much.
- 58:08Like you need, I don't know, 10 or 20 of those for every person who's like, you suck.
- 58:12I hate that.
- 58:13Absolutely.
- 58:14As the BDFL, like you are the – you know, are at the tip of the spear of that.
- 58:18You receive all of that, right?
- 58:20It's got to be tough, right?
- 58:22When the negative people – I've learned in open source that most of your users are silent.
- 58:27I've learned that the people that are upset are much, much more vocal than the people that are happy.
- 58:32And then when people are upset, they pile on to each other.
- 58:35It's a feedback loop.
- 58:36And same thing when people are happy.
- 58:38Sometimes they pile on each other and they pile on happiness.
- 58:40But it's pretty rare.
- 58:42Well, and even when it is, like human psychology, we receive negativity stronger than we receive positivity.
- 58:48Absolutely.
- 58:48It's a bad dynamic between those two things.
- 58:52And it's – so I think there's no takeaway.
- 58:55Yeah, no takeaway.
- 58:58But yeah, I guess it's – I guess the takeaway really for Gido Stepping Down is like we went through that.
- 59:06We're in a pretty solid place.
- 59:08And I think things are going well going forward.
- 59:11Yeah, I think we're equipped to move to Python 4 successfully.
- 59:14Not that we need to.
- 59:15I don't know what that would even look like.
- 59:17Yeah, I don't know what it would look like either.
- 59:18I mean, do we need a name like that?
- 59:21I think – so this is interesting to think about.
- 59:23Like on one hand, it would be cool to move to Python 4 because we've had this two versus three debate for so long.
- 59:29And it's just like, oh, it's over.
- 59:30We're already past – we're even past two.
- 59:32We're past three.
- 59:33Like we're on to four.
- 59:33Like that would be an interesting psychology.
- 59:35I would much rather see a 3.12.
- 59:37Yeah, but at the same time, like, you know, what would happen that would be such a major version change that it needs to, right?
- 59:44Well, there should be no pressing need for that.
- 59:47Yeah, but, you know, Java goes through these major version changes.
- 59:50.NET goes through them.
- 59:51Like it's not –
- 59:53But that doesn't mean that we should.
- 59:54No, I agree.
- 59:55I agree.
- 59:55Just because they do it doesn't mean we should be better than them.
- 59:58Our stuff should last longer.
- 59:59Our version should last longer.
- 1:00:01We are more resilient than they are.
- 1:00:02That's what makes us better than them.
- 1:00:04Not that we're better than them.
- 1:00:06I'm just – that's what sets us apart.
- 1:00:07That's why we're distinct from them is that Python is a slow, steady, moving rock of a language.
- 1:00:12And if we get – if when we hit 3.9, we move to 4 and we make another breaking change, that will erode that trust that people have in Python.
- 1:00:20Yeah, yeah, yeah.
- 1:00:21I certainly would not support like more breaking changes.
- 1:00:24Not really.
- 1:00:25Not now.
- 1:00:26It's too fast.
- 1:00:27It's too fast.
- 1:00:28Yeah.
- 1:00:28We're just kind of getting over the scars, right?
- 1:00:31I mean, we could do it, but it would change the inherent property of the language that people like the most, I think.
- 1:00:37Yeah.
- 1:00:37And it would destroy all of our careers eventually.
- 1:00:40It really would.
- 1:00:41I think additive stuff is fine, right?
- 1:00:43Like it needs to be –
- 1:00:43And subtractive is okay too, but not replacive, if that makes sense.
- 1:00:48Yeah, exactly.
- 1:00:48Yeah.
- 1:00:49Because that's what the string thing was.
- 1:00:51The string thing was replacive.
- 1:00:52It was like you have to rip out and replace code.
- 1:00:55It's okay if you need to remove code or if you have to add code, but not if you have to replace code.
- 1:01:02Then that's different.
- 1:01:03Yeah, that's probably the biggest one.
- 1:01:04That's quite tricky.
- 1:01:06So I guess, you know, while we're talking about this, we don't have a whole lot of time left.
- 1:01:09I do have just two questions.
- 1:01:10Yes.
- 1:01:11Two main questions left for you.
- 1:01:12One is like, you know, what's your prediction of the end of life of Python 2?
- 1:01:17Like, do you feel like we're kind of there?
- 1:01:19Yes, I do.
- 1:01:20It's not an issue.
- 1:01:21People that need to use 2 for business reasons will continue to be able to do so because Red Hat will continue to maintain it for many years.
- 1:01:28I feel like a dramatic number of people recently have switched at least their new projects to Python 3.
- 1:01:34I'm just letting people know if they don't.
- 1:01:35If you're on 2.7 for a business reason and that means you have money, you can pay Red Hat money and we'll give you 2.7 up to date after 2020.
- 1:01:44So do that.
- 1:01:45That's the solution to your problem.
- 1:01:49You know, one of my predictions that is around this time, like Q1 2020, there's going to be a lot of opportunity for people who are consultants and specialize in converting from 2 to 3.
- 1:02:01Yeah.
- 1:02:01Because a lot of people are going to realize like, hey, we wanted to do this.
- 1:02:05Yeah, consultants maybe, not professionals because those people ideally should have been doing this a long time ago.
- 1:02:09Yeah, I know.
- 1:02:10When I said professionals, I mean people working in organizations.
- 1:02:12Yeah, but I do think there's going to be folks.
- 1:02:15The time is past for you to be on 3 is what I'm saying.
- 1:02:18Yeah, I agree.
- 1:02:19And I think that conversation is long over.
- 1:02:21But yeah, consultants, like I can see oversight having occurred and you need to migrate immediately.
- 1:02:27Right.
- 1:02:28And you need to hire a specialist to come in and do it.
- 1:02:31So that makes sense.
- 1:02:32So yeah, there might be room for that.
- 1:02:33That's going to be a sweet six months.
- 1:02:34Yeah, yeah.
- 1:02:35Okay, so another thing that is good news and is going strong.
- 1:02:41It's ending, not in January, but it's actually ending at PyCon 2020 is what I've heard.
- 1:02:45Can you put out something that said January 1st?
- 1:02:47Okay, never mind.
- 1:02:48I restructured.
- 1:02:49There was some debate that it should be there, but it was a little while ago.
- 1:02:52Guido said something to the effect of-
- 1:02:54Yeah, he advanced it.
- 1:02:55Let's not mince words.
- 1:02:56It's January 1st, 2020.
- 1:02:58This is, we're getting it over with.
- 1:02:59All right, thank you for correcting me.
- 1:03:00Yeah.
- 1:03:01I mean, maybe it's been changed since he said that, but that-
- 1:03:04No, that was newer information than I had.
- 1:03:06Yeah, yeah, cool.
- 1:03:07So I think it's, let me check it out.
- 1:03:09Let's just say Python death clock.
- 1:03:12Let's see where we are as we record.
- 1:03:13Yeah, that's my trusted source as well.
- 1:03:15Are you familiar with Python death clock?
- 1:03:17I thought Python death clock always said January, and then my trusted source told me PyCon is when it was supposed to be, surprisingly.
- 1:03:27January.
- 1:03:27Recently, the date has been updated to January 1st, 2020.
- 1:03:30Gotcha.
- 1:03:31The death clock has been updated accordingly.
- 1:03:33So we lost six months.
- 1:03:34That's great.
- 1:03:34Yeah, it's like daylight savings, but extremely big.
- 1:03:37Nice.
- 1:03:40All right.
- 1:03:40So the other thing I want to talk about, though, is just, you know, give you a chance to talk a bit about your podcast, let people know it's out there.
- 1:03:46You know, I think it's good that you're doing it.
- 1:03:48It sounds like you're doing interesting stuff there.
- 1:03:50Thanks.
- 1:03:51How's it going?
- 1:03:51I have a non-traditional podcast called Import This.
- 1:03:53It is for humans, by humans, and it is not specific to Python, but it's mostly oriented around Python.
- 1:04:01I interviewed my stylist the other day who works at the high-end fashion store downtown.
- 1:04:06I don't really shop there too often, but I like to talk to him a lot.
- 1:04:09So he's a nice guy.
- 1:04:11But I interview a lot of Python developers and a lot of people who use DigitalOcean.
- 1:04:14And they're short episodes, and they're bursty.
- 1:04:17So sometimes I do three in a week.
- 1:04:19Sometimes I do none.
- 1:04:20It's called Import This.
- 1:04:21If you look on iTunes or anywhere else where you can find a podcast, you will see it.
- 1:04:24Check it out.
- 1:04:25Nice.
- 1:04:25Yeah, I'll put a link in the show notes.
- 1:04:27Yeah.
- 1:04:27Thanks.
- 1:04:28Yeah, yeah.
- 1:04:28It's definitely a good one.
- 1:04:30So definitely worth checking out.
- 1:04:31You know, you're talking about interviewing people outside the Python space.
- 1:04:34When I was at PyCon, I was having this weird deja vu type of experience.
- 1:04:39Like our Uber driver, we started talking.
- 1:04:42He's like, oh, you're for a conference.
- 1:04:43Yeah, yeah.
- 1:04:44We're here for this Python conference.
- 1:04:46Like, oh, Python.
- 1:04:46Yeah, I'm learning this.
- 1:04:48I'm learning Python.
- 1:04:48It's so amazing.
- 1:04:49And then like another Uber driver and then a waitress was also learning Python.
- 1:04:53It was just like all these people from outside the community were like learning Python.
- 1:04:57It was very, very interesting.
- 1:04:58I've had a San Francisco Uber driver recognize me once from watching my talks on YouTube.
- 1:05:04Oh, yeah.
- 1:05:04That's so awesome.
- 1:05:09Yeah, yeah.
- 1:05:09How cool.
- 1:05:09Great.
- 1:05:10Oh, man.
- 1:05:11All right.
- 1:05:11Well, I guess we're probably over time a little bit, but that was to be expected.
- 1:05:15So maybe I'll just ask you the two questions.
- 1:05:18One of which I'm pretty sure I know the answer now, given our conversation.
- 1:05:22But first of all, if you're going to write some Python code, work on one of your projects,
- 1:05:26what editor do you use?
- 1:05:27VS Code.
- 1:05:28VS Code, right on.
- 1:05:29It's got to be the editor with the highest rate of adoption in the last year.
- 1:05:33It's really going strong.
- 1:05:34Yeah.
- 1:05:35So the other question is, what notable PyPI package would you like to recommend?
- 1:05:40And I just want to throw out there really quick.
- 1:05:42Like when I ask this of other guests, very often they say requests.
- 1:05:46Oh, that's so kind of them.
- 1:05:47Thank you.
- 1:05:48Yeah, absolutely.
- 1:05:48I can't say requests.
- 1:05:49No, I'm kidding.
- 1:05:51Request core.
- 1:05:52Don't request.
- 1:05:53I'll say in the future, request core should be the answer because I think that'll be a really
- 1:05:57cool package that will really impact some lives of a lot of developers.
- 1:06:00But that's not built yet.
- 1:06:02So now I usually say doc opt.
- 1:06:05I've given you the answer before.
- 1:06:07So I need to think for a moment.
- 1:06:08Let me think.
- 1:06:09I like PyTheory a lot, but that's not useful for people at the moment.
- 1:06:14A cool one that I found recently is SimPy.
- 1:06:18Okay, SimPy is cool.
- 1:06:19That's really interesting to me.
- 1:06:21And if you're not from the scientific community, you might not know about it.
- 1:06:24It gives you a solving algebraic system in Python, which is really useful.
- 1:06:30It gives you, lets you do algebra in Python, which is like something that you need to do
- 1:06:34sometimes.
- 1:06:34So if you are in, say, high school or early college.
- 1:06:37Or you just need to solve problems with math in your code, which is honestly pretty rare.
- 1:06:44But like sometimes you should do it if you're doing business logic, right?
- 1:06:48Right.
- 1:06:48Or yeah, you're doing some kind of research or something and you just want to bust it out
- 1:06:52in a Jupyter notebook or you're in simulations.
- 1:06:54Yeah, absolutely.
- 1:06:54It's very cool.
- 1:06:55If you're building even a web application and you just need to have some business logic in
- 1:06:58there, I think it's appropriate.
- 1:06:59Yeah.
- 1:07:00Right on.
- 1:07:00Do like a threshold of a log function or something.
- 1:07:04I don't know.
- 1:07:05for like determining if someone's a biz high or a biz low.
- 1:07:08I don't know.
- 1:07:09I think you could do some pretty advanced stuff with it if you wanted to.
- 1:07:12Yeah.
- 1:07:12Sounds pretty cool.
- 1:07:13Well, thanks.
- 1:07:14Now, I guess, you know, final call to action here.
- 1:07:17People, maybe they're excited about PyCon or they are interested in the async stuff.
- 1:07:23I don't know.
- 1:07:24What do you want to leave people with?
- 1:07:25I like to listen to listeners with this recording that I have made.
- 1:07:29It's Creative Commons and it is beautiful.
- 1:07:32Thank you.
- 1:07:32Beautiful is better than ugly.
- 1:07:35Explicit is better than implicit.
- 1:07:38Simple is better than complex.
- 1:07:41Complex is better than complicated.
- 1:07:44Flat is better than nested.
- 1:07:46Sparse is better than dense.
- 1:07:49Readability counts.
- 1:07:51Special cases aren't special enough to break the rules.
- 1:07:55Although practicality beats purity.
- 1:07:58Errors should never pass silently unless explicitly silenced.
- 1:08:03In the face of ambiguity, refuse the temptation to guess.
- 1:08:07There should be one, and preferably only one, obvious way to do it.
- 1:08:12Although that way may not be obvious at first unless you're Dutch.
- 1:08:17Now is better than never.
- 1:08:19Although never is often better than right now.
- 1:08:23If the implementation is hard to explain, it's a bad idea.
- 1:08:28If the implementation is easy to explain, it may be a good idea.
- 1:08:33Namespaces are one honking great idea.
- 1:08:37Let's do more of those.
- 1:08:41This has been another episode of Talk Python To Me.
- 1:08:43Our guest on this episode was Kenneth Wright, and it's been brought to you by Linode and Backlog.
- 1:08:48Linode is your go-to hosting for whatever you're building with Python.
- 1:08:53Get four months free at talkpython.fm/linode.
- 1:08:56That's L-I-N-O-D-E.
- 1:08:59With Backlog, you can create tasks, track bugs, make changes, give feedback, and have team conversations right next to your code.
- 1:09:06Try Backlog for your team for free for 30 days using the special URL talkpython.fm/backlog.
- 1:09:14Want to level up your Python?
- 1:09:15If you're just getting started, try my Python Jumpstart by Building 10 Apps course.
- 1:09:20Or if you're looking for something more advanced, check out our new async course that digs into all the different types of async programming you can do in Python.
- 1:09:28And of course, if you're interested in more than one of these, be sure to check out our Everything Bundle.
- 1:09:33It's like a subscription that never expires.
- 1:09:35Be sure to subscribe to the show.
- 1:09:37Open your favorite podcatcher and search for Python.
- 1:09:39We should be right at the top.
- 1:09:41You can also find the iTunes feed at /itunes, the Google Play feed at /play, and the direct RSS feed at /rss on talkpython.fm.
- 1:09:50This is your host, Michael Kennedy.
- 1:09:52Thanks so much for listening.
- 1:09:53I really appreciate it.
- 1:09:54Now get out there and write some Python code.
- 1:09:56I'll see you next time.