Latest / Talk Python To Me / #153: How Python Evolves
Transcript
- 0:00If you spent some time in the Python community, you've probably heard the term PEP, which stands
- 0:04for Python Enhancement Proposal. In fact, the very first one was created in June 2000,
- 0:10and its purpose was to define the PEP process itself. Our guest this week, Nick Coghlan,
- 0:16was a co-author on that very PEP and many, many more. In this episode, we're going to discuss
- 0:23PEPs and how Python officially evolves, but also there are many other forces that drive and influence
- 0:29Python. So let's dig into all of these right now. This is Talk Python To Me, episode 153,
- 0:35recorded February 6th, 2018. Welcome to Talk Python To Me, a weekly podcast on Python, the language,
- 0:55the libraries, the ecosystem, and the personalities. This is your host, Michael Kennedy. Follow me on
- 1:01Twitter where I'm @mkennedy. Keep up with the show and listen to past episodes at talkpython.fm,
- 1:06and follow the show on Twitter via at Talk Python. This episode is brought to you by Linode and Datadog.
- 1:12Be sure to check out their offers during their segments. It really helps support the show.
- 1:16Talk Python To Me is partially supported by our training courses. Have you heard about the 100
- 1:22Days of Code Challenge? It's a challenge where you write code for an hour a day for 100 days. It's helped
- 1:28many developers finally master programming, but it can be hard to know what to study or have resources
- 1:34to focus on. That's why we wrote not one, but two 100 Days of Code courses. 100 Days of Code in Python,
- 1:41which covers mostly pure Python, and 100 Days of Web in Python, which covers a whole spectrum of web
- 1:48frameworks and concepts. If you've been thinking about taking the 100 Days of Code Challenge, be sure to visit
- 1:54training.talkpython.fm and check out our courses. They are the 100 Days of Projects and Lessons with a tidy
- 2:00bow on top just for you. Nick, welcome to Talk Python. Hey, very happy to be here. Oh, it's a real honor to have
- 2:07you on the show. You've been at this Python thing for quite some time. So going on 15 years, I think. Yeah, that's
- 2:14awesome. So our main focus today is going to be to talk about how Python evolves, all the different forces
- 2:20that press on it, the PEP process, all these great things. But before we get into those, let's just get your
- 2:25story. How did you get into programming in Python? So I'm actually one of those folks who got into it as a kid. My parents
- 2:31got our first computer when I was like, nine or 10, I think, which was a Apple IIe that spent lots of time playing
- 2:40Winter Olympics and stuff on that with my siblings. And anyway, I don't actually remember the name of
- 2:44the book, but it was like this big green thing, which had instructions on how to do programming in
- 2:50Apple Basic. So yeah, so the classic 10 print, hello world, go to 10 type thing. Yeah, maybe a little
- 2:58indentation and it screams across the screen, zigzag. Yeah. Yeah, basically. And you couldn't save
- 3:04anything because the computer didn't have a hard drive. It's so crazy how storage used to be. I remember
- 3:09some of my friends, they had, it must've been an Apple. I can't remember what it was, but had like
- 3:15a big cassette player and you would plug it in and like the cassette somehow provided data to the
- 3:22computer. And I don't even remember how that works. I just missed the cassette era with the computers at
- 3:28my place. So we had a, we had the big five and a quarter inch floppy, floppy disks, which actually
- 3:33were floppy. They were actually floppy. That's where the name came from. Cause they weren't for a long time.
- 3:39No, the three and a half were never floppy unless you broke them open. Once you broke the case open,
- 3:44then the disc inside was very floppy. But yeah, a friend of mine did have a Commodore 64 though. And
- 3:51that was the, you put the tape in, you play the game. So how did it work? Did the tape basically
- 3:56load the data into memory and then it would just run from there? Or like, I don't know. Yeah.
- 4:01Yeah. That's, that's technology used to be so crazy. Now it's a little more standardized.
- 4:05It's still crazy, but less bizarre, I guess.
- 4:09Yeah. We were just using a magnetic tape on reels instead of a, crystalline structure in a USB
- 4:14key.
- 4:15Yeah, that's right. I guess we'll, we'll look back on this time as quaint when we're talking
- 4:19about quantum computers and you know, whatever comes in 10 years, right? And AI is in, who knows?
- 4:24The one that amuses me is you look back at shows like Babylon five and stuff where they
- 4:28have their data crystals and you go, we literally have data crystals. That's what a USB key is.
- 4:33Yeah. We really live farther in the future than I think we really appreciate. All right. So you did
- 4:38some of this like early, really programming, this funky era, which we're talking about,
- 4:43but then moved on from there, I'm sure.
- 4:45Yep. So then I discovered in high school that programming was something you could do as a career,
- 4:50which was cool. And then I went into university as a computer systems engineer.
- 4:54which is kind of you computer systems engineering basically lives at the boundary between electrical
- 5:02and electronic engineering and software engineering.
- 5:06Back then there were, there were not really software development degrees, right? You either,
- 5:11I mean, I, in the sort of software engineering, not computer science side. Oh yeah. Nice.
- 5:18So Australia is a bit different from the U S. So for us, you guys are ahead of us basically. Yeah.
- 5:24I was in university from 95 through to 2000. And so when I started, you could do a straight up
- 5:35information technology degree with a software, there was a software subspecialty in that,
- 5:39or you could do computer system engineering under the engineering department, which is what I did.
- 5:46I think by the time I graduated, there was a straight up software engineering program.
- 5:52And I think that was through the engineering department.
- 5:56That's cool. I know those were coming on right around then. I missed that whole time.
- 5:59My college started in 91. So yeah, just, just missed that window as well. Like I started before the web.
- 6:06So that was fun. I remember the web coming out. That was so fun, right?
- 6:10That was the other thing was our high school it teacher was, he basically, he also ran the
- 6:17afterschool computer club, funnily enough. And so he was introducing us to like the mosaic browser and
- 6:24Netscape Navigator 1.0 and a bunch of us in 93, it would have been. So grade 10,
- 6:31we're all getting into the, online multi-user dungeon type stuff.
- 6:35Paulie.clarkson.sos.net, is a domain name that's embedded in my brain because that was the
- 6:43mud we played on.
- 6:44Those were such fun times. That's so awesome. I played a bunch of those as well. All right. So,
- 6:48so how did you learn Python in college or did it come after that?
- 6:52So I have a funny, university story about Python, which is our networking teacher in 99.
- 7:00This was wanted to try and level the playing field amongst all the students for the networking project
- 7:06he was giving us, which was like a protocol design type thing. And he basically, so he told us the
- 7:12standard language for the assignment is going to be Python because none of you will know that,
- 7:16which is, so that's funny now looking back at it 20 years later, it's like no lecturer would do that
- 7:22today. But the other one was that I actually put my hand up in class and said, do we have to use
- 7:28Python or we could, can we use a language we already know like Java? And so he said, sure, if you really
- 7:33want to. But then I did the, did the assignment in Python. I'm going, okay, yeah, I don't want to anymore.
- 7:38And so that was still Python 152 at that point.
- 7:41Wow. Those are pretty early days, but yeah, the contrast with Java probably was pretty stark.
- 7:45Yeah, absolutely. We were mostly interested in the wire protocol structure. So using the struct module to
- 7:52construct messages to send them back and forth. So yeah, that was quite a cool assignment. But
- 7:57interestingly, I didn't, didn't touch Python again for another like three years after that, I think.
- 8:02Wow.
- 8:03Yeah.
- 8:03Nice. And then you probably graduated three years later or so. And then was it work that brought
- 8:08it to you or what happened?
- 8:09Yeah. So, so what happened was I'd actually started working for Boeing Australia on the
- 8:16Australian defense forces, high frequency radio communications infrastructure as an undergrad.
- 8:20And so that became a full-time job after I graduated. And the system I was working on was actually a
- 8:27digital signal processing system for voice detection in HF. And essentially in HF, the problem is ordinary
- 8:34scrunchies don't work because HF is just very crackly and poppy. And so if you want to try and detect voice,
- 8:39you actually have to do signal analysis to say, where's the energy? Is this just random crackling
- 8:46noise or does it actually look vaguely like a human voice? And so that was all going along fine.
- 8:51C programming for the DSP, but we didn't really have a proper test harness for it. We just had a C
- 8:58application that ran on the host system. And if it got to the end without crashing, awesome.
- 9:03Basically it's good. Now we're going to ship it.
- 9:05Funnily enough, we kept finding bugs in the DSP software in the next level of integration testing.
- 9:13It's like, who knew?
- 9:15Who knew? What a mystery.
- 9:17And so anyway, so we needed to do a better job of testing this.
- 9:20And so there was a, another part of the system to orchestrate starting and stopping
- 9:27services and bringing sites online and offline. And they just recently got a
- 9:33approval to use, introduce Python 2.2 into the system so they could use it as this control
- 9:40and orchestration language, which was on the approved languages list, which meant, and it
- 9:45had this wonderful thing called the Python unit test module.
- 9:48Yeah. I remember back then C++ didn't have very many options and C even less, right?
- 9:53We actually had a in-house thing that engineers in Boeing Australia had designed for writing
- 9:59tests in C++. And this was around the time where a colleague had inspired me to learn Eiffel.
- 10:06We were fully into the extreme programming, test-driven development, all that sort of stuff.
- 10:11Yeah. All that stuff was going strong then. It was so amazing. Yeah.
- 10:14Yeah. And so, so they'd written that. And so it was a choice between that and the Python
- 10:20stuff. But the beautiful thing that the Python stuff had was, so our host system was running
- 10:26Windows NT and Python had the wave module that would let us play wave files out of the host
- 10:36system, which was very handy because we needed to play those to, to check for the reactions from
- 10:42the signal processing software. And then, and this is why I sometimes say that it's Dave Beasley's
- 10:48fault that I'm a Python programmer, the SWIG existed. And so what SWIG let us do is we had a C++ driver
- 10:56that ran on the host that the main production application used to talk to the DSPs.
- 11:03And so what SWIG let us do, or let me do was basically, I just wrote one .ifile for SWIG to wrap the production
- 11:12driver. And then suddenly I had this unit test system where I could call the production driver to set things
- 11:21up in the DSP, call the wave module to play audio files out of the test system, and then monitor over the
- 11:28network to say, did the signal processing software send the messages we expected it to send?
- 11:33Oh yeah, that's really cool. That's awesome. Yeah. So practicality wins the day, right? There's some
- 11:38simple tools to solve the problem. Yeah.
- 11:40That's kind of continued that I've always been a huge fan of Python for testing because it means that
- 11:46like when you try to do testing in C and C++ directly, you spend a lot of time building test
- 11:53scaffolding to let you say, is this thing the same as that thing? Or is this what I expected? And so the
- 11:59beauty of being in Python is you can express a lot of things more simply in the Python code than you
- 12:05can in the production code. Right. It lets you move faster. It lets your tests be easier to maintain
- 12:10over time. Yeah, it's wonderful. And so you just get this really nice combination of the tests in Python
- 12:15express your intent. And then it doesn't matter what your production code is in. You're just saying,
- 12:20am I matching my intent, whether it's faster or through a different mechanism or whatever.
- 12:25Yeah, really nice. So you're probably not still doing that same project today, right? What are
- 12:30you working on now? I worked on that project in different roles for like 12 years. But yeah,
- 12:36so technically right now I'm not doing anything. So I finished up at Red Hat at the end of last year. And
- 12:41so right now I'm talking to a few different people about what I'm going to do next.
- 12:48That's awesome. Yeah.
- 12:49So take your time to kind of find the next big thing.
- 12:51I've got the luxury of not having to make a quick decision about what I want to do next.
- 12:56And so it means I'm kind of going, what do I really want to be doing? Because to be honest,
- 13:02I've spent the six years since I left Boeing, I've been completely in the software infrastructure
- 13:07space. And it's like, while I don't dislike that, I do really miss being able to point at a piece of
- 13:15hardware and say, my software makes that work.
- 13:18Yeah. So when are we going to be riding in your next self-driving airplane that you're creating or
- 13:22your next Friday, right? It's coming a few years out, right?
- 13:25So that's the thing of, it's very tempting to just say, you know what, I'm kind of going to get
- 13:30out of the software infrastructure world and go back into the physical hardware that does stuff.
- 13:35But at the same time, there's a lot of interesting stuff to be done in open source supply chain
- 13:39management. So yeah, of course, there's so many interesting problems, right? There's definitely
- 13:44no shortage of that. That's awesome. All right. So let's go ahead and talk about our main topic,
- 13:49which is how Python evolves. And, you know, we were talking just before I hit record. And I feel like
- 13:55the two major ways that kind of drive where Python goes is kind of from the official inside,
- 14:03which is this PEP process and these other meetings and core developers. And then there's the outside
- 14:09world where nobody asks for permission, they just go make stuff. And then you guys look at it and go,
- 14:13wait, actually, they're doing really cool stuff over here. Does that really drive that control like a
- 14:17satellite in space? How are you doing that? Right? You're dealing with Python. So there's these sort
- 14:23of two forces, right? The internal peps and the external just what people are doing. So what do you
- 14:30think about that?
- 14:30I kind of mentally break it up into two problems. So it's the thing of applying Python to a problem
- 14:37domain. And that's the case of like, even Python 152 was an entirely usable orchestration language.
- 14:45Python 2.2 was exceptional. That's why we stuck with it for so long at Boeing. And so in that sense,
- 14:52it becomes the case of take Python as it exists today, apply it to a problem you have today,
- 14:57and write whatever libraries you need in order to model that domain successfully.
- 15:02So like that, again, gets back to my original exposure to it as hardware testing and orchestration
- 15:10for an existing system. Like, I don't recall any time when I was doing that saying, oh, I wish Python
- 15:17whatever, because it was the case of it did everything I needed it to do. And anything it didn't already do,
- 15:23we'd just add a library for it. And we were actually doing a lot of stuff with Corba at the time as our
- 15:28distributed communication protocol. And there were actually a bunch of different request brokers for
- 15:35Python out there. So that was, and so for that, Python dev doesn't need to be involved. And this
- 15:42occasionally frustrates people because they want us to be the single authority for all things Python.
- 15:48And they're like going, we, you need to do something about blah. And we're like going, yeah,
- 15:53why doesn't need to be us. It's like, we're not the domain experts on that.
- 15:57Yeah, that's really interesting. And that is definitely something that's different in,
- 16:02in the Python world from other organizations that are much more sort of mothership oriented.
- 16:10I'm thinking Apple and Microsoft, right? Like if something is going to happen in those ecosystems,
- 16:15there's very much like a blessing from the people who make the decisions.
- 16:19Yeah. And that just doesn't happen here, right?
- 16:21Well, and this is one of the interesting things. So this might be a bit of a tangent,
- 16:25but the hardware system that I worked on for Boeing, a lot of the time I spent working on that was
- 16:31actually as a system architect rather than a software developer. And when you're doing system
- 16:34architecture, you spend a lot of time doing make buy decisions of whether you're going to write
- 16:40something or whether you're going to buy something that somebody else is selling, which means you end
- 16:44up doing a lot of spending a lot of time thinking about incentives and trajectories and, and why is a
- 16:50vendor doing a certain thing? And what does that mean for you using them as a vendor? And if you look at
- 16:56the history of programming languages, like C came about because people just needed an abstraction
- 17:02layer over assembling, like rewriting.
- 17:05It was absolutely necessary. Yes.
- 17:07Yeah. So, so it was absolutely necessary. And, and so that was kind of, that kind of evolved out of the,
- 17:15the needs of hardware manufacturers because they didn't want to rewrite their own software for every
- 17:21new version of their hardware. That was actually quite a user-driven evolution there.
- 17:26Like at that point, that was vendors solving the problem that they had and not necessarily trying
- 17:32to use it to sell, to lock in customers. But then you look at things like emergence of Java driven by
- 17:39Sun to try and stay relevant in a world where Microsoft were eating their lunch. As it turns out, it just made
- 17:46it easier for Linux to eat Sun's lunch. So, so I don't think Java actually worked out quite the way Sun might
- 17:54have hoped. Then it ended up at Oracle and Oracle is still trying to use it as a, as a way for them to stay
- 18:00relevant. C-Sharp came out of Microsoft after they got into a big argument with Sun over Visual J++. So,
- 18:08very much driven by Microsoft's things of how do we, how do we do something about this Java thing and make sure we
- 18:15stay relevant in the business software world. Go, driven by Google trying to write things.
- 18:20Apple really, really want people to develop on Apple for Apple, exclusively for Apple and say,
- 18:26we'll do your market segmentation for you by excluding anybody who can't afford our hardware.
- 18:31But it means if you write for Apple platforms, you're writing for wealthy people who will probably be able
- 18:36to pay you. And so, so yeah. And so it becomes that thing of most languages exist in this space of having
- 18:43been designed for a company that's trying to sell you something. Sun were trying to sell you servers.
- 18:49Microsoft wanted to sell you Windows. Apple want to sell you tablets and iPhones and Mac machines.
- 18:56And so, so there's those commercial incentives behind there. And then you come into the Python world and it's
- 19:03like, well, Guido wanted to program his computer more easily and he wanted to make it easier for people to
- 19:10learn to program. And so, so the incentives behind it are very different. And then you also look at,
- 19:17you look at how the Python Software Foundation was set up. It was set up as a public interest charity,
- 19:22not as a trade association. And so, and then you add in the fact that like some of Python's biggest
- 19:30vendors don't even recognize that they're in the Python business. They're just shipping this thing
- 19:35that came with their Linux distro. They sure you might want to use this or we use this. You might want
- 19:39to as well. And so the vendors are all really quite passive and hands-off as well. They're just going,
- 19:44yeah, whatever, we'll just do whatever, we'll just ship it. And so, so yeah, so you end up with this
- 19:50very different dynamic where the large corporations uses, but not really driving the direction of the
- 19:57language.
- 19:58It's really interesting. And I'm sure people who come from those spaces that you named,
- 20:01they look around and they're like, what, there's really, there's really no one group that just tells
- 20:06me the way, right? It's pretty interesting.
- 20:10This portion of Talk Python To Me is brought to you by Linode. Are you looking for bulletproof hosting
- 20:15that's fast, simple, and incredibly affordable? Look past that bookstore and check out Linode at
- 20:20talkpython.fm/Linode. That's L-I-N-O-D-E. Plans start at just $5 a month for a dedicated server
- 20:27with a gig of RAM. They have 10 data centers across the globe. So no matter where you are,
- 20:32there's a data center near you. Whether you want to run your Python web app, host a private get server,
- 20:38or file server, you'll get native SSDs on all the machines, a newly upgraded 200 gigabit network,
- 20:4424-7 friendly support, even on holidays, and a seven-day money-back guarantee. Do you need a little help
- 20:50with your infrastructure? They even offer professional services to help you get started with architecture,
- 20:56migrations, and more. Get a dedicated server for free for the next four months. Just visit
- 21:01talkpython.fm/Linode. So I think maybe one of the places to start is the Python that you described
- 21:10back when you started your project in Boeing was being used to solve different problems than it
- 21:18necessarily is now. And there's basically, even if you just talk about Python, obviously the syntax is
- 21:24there. But what that means and how people use that could be really different based on who they are and
- 21:29how they're solving problems. Whenever I even read like data science code, I feel like I'm reading
- 21:34almost like a different dialect of the language because the mannerisms and the libraries just make
- 21:40it feel really different than say like a web app that's like really broken into little pieces and
- 21:44stuff. So I think I've mainly used Python myself in the use cases of test automation, which I would
- 21:51still say I've used it more for test automation than I have for anything else. Hardware simulators,
- 21:57particularly when you're working on a big thing like HF radio communications, you're not going to
- 22:03have a 10 kilowatt radio transmitter sitting next to your desk. You're not going to have giant antenna
- 22:09switch matrix sitting next to your desk. And even if you do, you might have one or two, which isn't
- 22:14going to scale to automate testing for the whole system. So by writing simulators for those things
- 22:19in Python, you can just do that relatively easily and test things that you just cannot test in reality.
- 22:27So that's, that's an interesting use case. And then yeah, the straight up web application development
- 22:32dating from the CGI days, which is actually how we wrote the original version of the system
- 22:37orchestration, distributed system orchestration, which you now mostly see in things like Ansible and
- 22:42salt in the Python rapids around Docker and Kubernetes.
- 22:45Yeah. You even have people doing things like building, like say microcontroller code where
- 22:50your Python program is almost, almost is the operating system, right? Like you wire your Lambda
- 22:56expressions directly to hardware interrupts. It's like, there's this whole, whole thing. And what I
- 23:02think is really interesting and both a challenge, and I think it's a challenge that's been well met by the
- 23:08language designers, the language team and Guido in particular, is Python can be used in all these
- 23:13ways. And it, it doesn't feel like it's built specifically for one of them. You know what I
- 23:19mean? Like, like, if I were to look at R, like R is made for a thing, right? It's for solving math
- 23:24problems. And then you can kind of do other stuff with it. Whereas Python also solves math problems
- 23:28really well, but it also builds web apps amazing or controls space telescopes or you name it or automates
- 23:33hardware, right? And I think this gets back to the origins in the ABC research language,
- 23:39where the goal of ABC was to be a language for teaching people how computers work or how to think
- 23:44computationally. And then Python was basically Guido's version of that, that you could actually use to,
- 23:49that he could use for automating things. And so it becomes that thing of that base layer of imperative
- 23:57procedural programming of do thing A, do thing B, if condition, do thing C or do thing D,
- 24:05do thing E five times, do thing F until we run out of stuff. That basic procedural stuff,
- 24:13it's fascinating. Like if you go read standard operating procedures, work instructions and so forth
- 24:19that are written for humans, those are your basic constructs of how we give directions to each other.
- 24:25And so it's only, only when you go to build more complex systems, do you start needing all of the
- 24:34other constructs of computer science. And, and it's the thing of you start with imperative programming
- 24:40because that's the way humans think. And it's if humans are going to write a checklist or break down
- 24:45a task step-by-step to give to each other, they're going to start with that procedural model.
- 24:50But there's a reason computer science involved all these other things because that procedural
- 24:55problem, procedural modeling has scalability issues.
- 24:58Both in terms of complexity for sure. Yeah.
- 25:01Yeah. And so, but it's, if you look at the way a lot of, a lot of languages are written, they're saying
- 25:07they have a very strong opinion on this is how we're going to deal with complexity.
- 25:12And that's great if you have a problem which fits well into that complexity management model.
- 25:18And the beauty of Python is Python says, well, you're going to have procedural stuff in there
- 25:24somewhere. So start with procedural. But we know procedural doesn't scale to large teams,
- 25:31to large code bases. So we're going to offer you these, all these other options for refactoring your code
- 25:40as you better understand the problem you have. And that basically means it's, you have this common
- 25:47procedural subset, but then you have all of these different approaches to data modeling and computational
- 25:55flow modeling and all that sort of stuff where once you figure out what kind of problem you have,
- 25:59you can move in that direction.
- 26:01Yeah. And I feel like you've kind of captured one of the really special things about the language.
- 26:06And that is, you can start simple, but it's not a simplistic language. Whereas Java and C#,
- 26:13they say you work in this big formal framework from Hello World onward, right? You take all the
- 26:19complexity management from the beginning. And there's other languages like say, visual basic that are
- 26:24like, no, the world is simple enough, we're going to build simple things, but you hit an upper bound,
- 26:29you're like, okay, well, I can't use this anymore. Because you know, I don't know, threading or whatever,
- 26:33right? There's some, there's just a bunch of things you can't build with this simpler language. And somehow
- 26:37Python's managed to cross that gap. And that's pretty, pretty awesome.
- 26:41So I think one of the ways we actually do that is if you look under the hood of a lot of those higher level
- 26:47constructs, ultimately, they just boil down to procedural internals. Like at runtime, we are literally running
- 26:56through and doing stuff procedurally. And we, I think of it as the kind of a no privileged access concept, which is not
- 27:06actually true. We do have privileged access and the interpreter can do things that ordinary Python code can't. But as far as we
- 27:13can, we make it so that all of the syntactic sugar that we provide for things like classes and so on and so forth, we do our
- 27:22best to make sure that there is an actual procedural equivalent, that any syntactic construct, like beyond the basic
- 27:29arithmetic, you can write out a pure Python equivalent may not run as fast, and it you may not get the error handling
- 27:37right. But conceptually, there is a Python equivalent of that's just procedural code, which is quite fun.
- 27:45That's a really cool philosophy. So maybe let's focus on some specific domain. So we touched on them a little bit, but we
- 27:52have, you know, web frameworks, GUI libraries, scientific stacks, and these have all evolved over time. One of the
- 27:58examples of space from the sort of infrastructure world you're talking about is Ansible.
- 28:03One of the things I like about Ansible is if you look at, like Python's basically been part of Linux
- 28:10distributions almost from the beginning. Like I think it was there, it was there in 1.5. So it was there in
- 28:18Red Hat Linux, it ended up becoming part of Red Hat Enterprise Linux, they had to deal with the Python 2
- 28:24transition. And now they're dealing with the Python 2 to Python 3 transition. But anyway, by being there by
- 28:29default, and it was always there on all the Red Hat systems, because it was part of the package manager,
- 28:34it was usually there on other distros, because some utility or other would be on the system that needed
- 28:41it. And anyway, so it meant that sysadmins started doing lots of admin scripting in Python. They'd write
- 28:48these tools in Python, and everybody would write their own. And, and then they kind of like going, well, hang on,
- 28:53why is every admin having to write their own custom code for all the same tasks. And so in a lot of
- 29:00ways, you can look at Ansible as a way of going, well, how about we turn the actual automation bits
- 29:09into modules that you put up on a, put up on, say, Ansible Galaxy, which you then, which you can then use
- 29:18from a declarative thing to say, I want all of this stuff to happen in this order. And that then gives you
- 29:23that more structured notion of what are the concepts that admins need to care about, rather than the
- 29:29precise syntax of a full loop or whatever. And so you get this kind of, you go from this procedural
- 29:34model, model down at the Python layer, up to a declarative model further up the stack.
- 29:38And you get so much flexibility when you say, this is the state I want it to be in. I don't care how that
- 29:44happens. You just make that happen. If you want to change how you do that, I don't care. I just want the
- 29:48end state to have Nginx installed with this SSL certificate or whatever, right?
- 29:53One of the phrases I use for this is the idea of executable knowledge, which is the case of you can
- 29:58have a domain expert write a piece of software and they know all the nitty gritty, horrible details
- 30:04of how messy reality is because humans, humans in history. But as a user, you don't need to care.
- 30:15You're just like going, I'm just going to trust you to know more about that than I do and say, make it so.
- 30:21And then one of the things I love about the scientific Python stack is like people talk about, oh, programmers
- 30:27need to be good at math. And you're like going, no, programmers are terrible at math.
- 30:31I have this conversation a lot with a lot of people and they say, well, what kind of math did I study?
- 30:36He's like, you know, I barely use algebra for my job.
- 30:39And it's the thing of most of us stopped learning math in high school. And I did learn a bunch of
- 30:44engineering mathematics and actually working a signal processing job. I finally understood what
- 30:49a fast Fourier transform was really for, which had never clicked for me in university. But in my day to
- 30:54day job now, I don't, I don't use any of that. I haven't used that since I was doing the signal
- 30:59processing stuff. And even when I was using it, the actual fast Fourier transform, I just called TI's
- 31:05library to do it. And so it's the same with scientific stack today. Like modern research
- 31:10mathematics is spectacularly sophisticated, whether you're looking at the numeric algorithms and
- 31:18array oriented programming or calculus or whatever. But in Python, you can just go, well, I'm not
- 31:24going to understand all of that myself. I'm just going to import pandas and have magic happen.
- 31:30Right. Or I'm going to set up a random forest or some deep learning thing by five lines of
- 31:35configuration or something. Yeah.
- 31:36And you're like, I'm going, and it's that thing of you should be simpler than implementation. Like
- 31:40you should be able to use things without understanding how they're implemented. And I think that's the
- 31:46beauty of how the domain specific tools evolve is people are able to write them, expose these common
- 31:53APIs as import magic from here.
- 31:56All right. All right. QXKCD.
- 31:57And then you have access as a user to all of this amazing domain knowledge that you then don't have
- 32:07to, you can learn it if you want to, or you may learn it by necessity when it breaks. And you're like,
- 32:12it's like when it breaks, you get to keep all the pieces.
- 32:15Yeah. There's also this difference of being like, I'm learning it enough to implement it or
- 32:20completely work in it, or I'm learning the concept of it really well. Like, like I,
- 32:25I understand the relational model of a database and indexes and all these things, but I don't know
- 32:31that I could go write a database from scratch without a lot of research, but that's okay. I
- 32:35don't mind using a database. It works fine, you know?
- 32:37Yeah. Well, and SQLAlchemy is another really good example of executable knowledge. Like I highly
- 32:43recommend some of the talks about the design of that and the work that goes into keeping things
- 32:49responsive at the application level and avoiding round trips to the database while at the same time,
- 32:55making sure you don't get yourself into trouble with case-to-coherency and all that sort of stuff.
- 33:00It's an amazing piece of work, but at a user level, it's import.
- 33:04Yeah. It's amazingly simple, right?
- 33:06Yeah.
- 33:06So another really interesting area, especially in the evolution part is because, you know,
- 33:11Python is, it came out in 1991. So it's seen a lot of different UI stories along the ways,
- 33:20right? And it's, it's spread so far and wide. And to be honest, the UI story today is so unlike it was,
- 33:27you know, in the early days. So maybe touch a little bit on this evolution through the,
- 33:33like the Windows macOS Linux UI story.
- 33:37And one of the ways this comes up is people are going, why is TCLTK in the standard library?
- 33:41And so TCLTK has been there longer than I've been using Python. And one of the interesting things
- 33:47is, so when I started working professionally in 98, Linux just wasn't there for the design of big
- 33:54systems. And this was actually a source of frustration on the system I was working on,
- 33:58because there was a lot of servers where we're running Windows NT on them. And we're just like,
- 34:02going, why? And there were a bunch of other servers, we were running Solaris on them. And we're like,
- 34:07going, why? And then you looked at when those operating systems were picked and the state Linux
- 34:11was in at that time and just like going, yeah, okay. I understand this decision completely.
- 34:16Fair enough. Yeah.
- 34:17And switching now would...
- 34:19Committed. Yeah.
- 34:19We did end up switching a bunch of those things out for Linux eventually, but,
- 34:23but it took some time and it took some work. And so anyway, so you look in the late nineties,
- 34:27Linux isn't really a presence yet. It's starting to become a thing, but, but it's
- 34:32ad hoc and experimental and...
- 34:34Yeah. And it's desktop story is even more ad hoc and more experimental, right?
- 34:37And so lots of things we take for granted today just don't exist.
- 34:41Like GNOME. GNOME was founded in 98. And so anyway, and so TKinter was just how you did cross-platform
- 34:48Unix GUIs. If you wanted a GUI that worked on AIX and worked on Solaris and worked on various other
- 34:55things, you use TKinter. And hey, it works on Windows too. Doesn't look anything like a native
- 35:01Windows app, but it works on Windows.
- 35:03It looks like transplated from another world, but yeah, you could put stuff in the text boxes.
- 35:09Yeah. And so TCLTK was the way you did cross-platform in the late nineties. And so at that point that was
- 35:16before the pip process, before SourceForge development. So before any of that. And so it was
- 35:21like, yeah, idle ended up in the standard library. So there was a default editor and it was all cool.
- 35:25But then as Windows became increasingly popular and as Linux became increasingly popular, you basically had
- 35:34people writing native Win32 apps. You had QT as a C++ wrapper that tried to tie, tried to use native widgets
- 35:43when it could, emulated when it couldn't. And then you had GTK emerging as this is the way Linux distros are going
- 35:50to do their desktop applications. Right. And just to put it in this perspective in time, like when Windows 95
- 35:56hit, that was a major, major change in the desktop environment, right? Like that really was a big splash, sort of
- 36:04like the iPhone landing in the phone world. Yeah, absolutely. So it's not surprising that a lot of people, you know,
- 36:10went to this Win32 space with MFC or whatever they were using. And it was also around about then that you basically
- 36:17could make a good living either selling prepackaged Windows software or software for download. Like the
- 36:25internet was just becoming a thing. Yeah, there was that two cows and all those places coming along. The
- 36:30internet was coming along. Yeah, it was great. And so it was the idea of pay to download was a thing. You
- 36:37basically clicked through and gave somebody money to download stuff from their website. Yeah. Another one
- 36:42that came up was wxPython. This was the thing of so kind of along a similar line to QT, there was WX
- 36:49widgets. And WX widgets was that thing of how do I write cross platform macOS Windows and Unixy
- 36:58applications without having to rewrite my GUI for everyone. And then so that wxPython wrapped WX widgets.
- 37:05We had PyQT from Riverbank to wrap QT. And so none of these ever got added to the standard library because
- 37:12just the rate of evolution and the size of complexity of the libraries they were binding to
- 37:17TCLPK is tiny by comparison. And so, yeah, and so it became the case of that kind of started the
- 37:24to this day unresolved fight between QT and GTA on Linux. And personally, I use KDE just because it's,
- 37:31I grew up with Windows, use Windows and DOS since DOS 5, I think. And so, yeah, and so I'm just used
- 37:40to the Windows paradigms of how things work. And so as much as people who like, who are fond of macOS X
- 37:47might go, oh, but this way is better. I'm like going, it might be better for you. It's not for me.
- 37:50It just got so complicated that it was just like, there is no standard. So there's nothing we can pull
- 37:57into the standard library and say, this is the way things are going to be from now on.
- 38:00Right. And the licensing is a little weird on QT. And so there's just like a bunch of stuff that
- 38:06just is not a good fit, right? And like GTK's efforts to support, well, so the problem with GTK
- 38:12is that its efforts to support anything cross-platform isn't really a thing. Like it's the,
- 38:18essentially the Linux and Unix-y equivalent of the Win32 APIs. Like it itself is not really
- 38:26cross-platform because it doesn't delegate to platform native stuff when you're running it
- 38:32somewhere other than Linux.
- 38:32Right. And that's really important because that's what it takes to make your app look like
- 38:36it belongs in that environment.
- 38:38Yeah. You have to use the native widgets rather than skinning your own emulation.
- 38:42Yeah. So right after this whole sort of thing, the world kind of said, okay, well, Java and C-sharp
- 38:48and Windows forums and WPF and Swing and just all of this stuff kind of scrambled it further.
- 38:54That was the C, C++ world, which is kind of CPython's native stomping grounds. That was complex
- 39:00enough. And then we had the whole thing of, oh, writing C and C++ directly is really hard.
- 39:07And it's really hard to secure. So managed languages are going to be the answer.
- 39:12And then Sun and Microsoft get into a fight. And so you end up with Java and C-sharp, right? And the
- 39:19JVM and the CLR rather than one platform. So that's like, okay, cool. That makes life even more
- 39:27complicated for everyone. Then Apple came along.
- 39:30Somehow they became relevant again, right? Because they were on the verge of being barely relevant.
- 39:35Never gone away completely because they always had that graphic designer, creative artist market.
- 39:40And so there was always that, there was always that strong core of like, they were always second.
- 39:47Like Windows completely took over the desktop, but Apple always had that like five to 10% of diehard
- 39:55macOS fans. And I think it was, I think it was Autodesk stuff like tended to run really well
- 40:02on the Macs. And so anyway, but then the iPhone happened and people are like, oh, we need touch
- 40:12interfaces. We can't assume there's a mouse and keyboard all the time. And so it's like, okay,
- 40:17what are your cocoa bindings like? What are your carbon bindings like? And I lost track at carbon.
- 40:21I haven't paid any attention since then. I don't know if it's still carbon or if they've moved on to
- 40:25something else by now. But yeah. And so, and so that was like, oh, okay. Everybody needs to
- 40:31care about macOS X again. And then Google came along and said, well, the native base platform for Android
- 40:37isn't going to be the underlying Linux core. It's going to be the Dalvik layer. And so if you want
- 40:45everything to run snappily and use native widgets and be nice, you really need to be running in the
- 40:52platform Java runtime. And then you're just like going, and if you don't do that, then you're either
- 40:58going to be bridging into Java, which is slow, or you're going to be using non-native widgets and
- 41:02emulating the native ones. And you're just like, oh, really? This was already, this was already terrible.
- 41:09And you just made it worse.
- 41:11Yeah. And you've got things like Electron JS and Cordova and Ionic and all these other frameworks
- 41:16are trying to make the web sort of fit into this world. And they're all pretty neat. And every one
- 41:20of these kind of had their space, but it just makes the story harder for what is the path for Python
- 41:26in some sort of UI story. There are some options though, right?
- 41:30WX Widgets and wxPython, when they were designed, basically said, okay, there's three big things we need
- 41:35to care about. We need to care about Windows. We need to care about macOS X.
- 41:38We need to care about GTK. And so they basically said, we're going to provide an abstraction layer
- 41:43over those three things. You write to our abstraction layer, and then we'll translate it as appropriate
- 41:48for any given platform.
- 41:49Have you been tracking the Phoenix project from them?
- 41:51I was for a while because that was the gating thing for their Python 3 support. I haven't looked
- 41:57at it recently though.
- 41:58Yeah. So they just like this week, maybe released wxPython 4.0, which is the whole Phoenix release.
- 42:04I don't know how much that was before, but it's, it seems like this might be coming back.
- 42:08It's a solid option. I actually wrote an app in this morning and it was really nice.
- 42:12That's really cool to hear because there's a, Robyn Dunn wrote a book, wxPython
- 42:16in action, like 15 years ago, 10 years ago.
- 42:19Time for a second edition.
- 42:20Yeah. Yeah. But I was one of the tech reviewers for that.
- 42:23Oh, nice. I think the name says a lot, right? The code name is Phoenix. Like it's a back sort
- 42:29of from the ashes.
- 42:30They were really, because they were tightly tied to the CC++ libraries. They were kind
- 42:34of that whole Java and C# and the web thing made life really difficult for them because,
- 42:40because all these shifting paradigms and expectations were all happening.
- 42:46This portion of talk Python to me is sponsored by Datadog with infrastructure, monitoring,
- 42:51distributed tracing, and now logging Datadog provides end to end visibility into the health
- 42:56and performance of your Python applications. With out of the box support for frameworks like
- 43:00Django bottle and flask. You can start monitoring your application performance within minutes.
- 43:05Start monitoring your Python applications with a free trial. And as an added bonus, Datadog will
- 43:11send you a free t-shirt. Just visit talkpython.fm/Datadog for more details.
- 43:16Yeah. Another one I have high hopes for is the project from Beware.
- 43:22Yes. And Beware's Toga is the one I think is really interesting. So it's still relatively
- 43:28young, still lots of missing pieces. But yeah, it's based on that core notion of to really give
- 43:36a compelling user experience for somebody that is expecting a platform native experience,
- 43:41you need to actually use the native widgets. That if you're emulating the widgets, then
- 43:46users can tell because application can be cross-platform. Users, generally speaking, are not.
- 43:52They're using one platform. They're expecting your application to behave like all the other things
- 43:59on that platform.
- 44:00Right. You just want to reach all the users, but they're probably in one place individually for the
- 44:05most part. Yeah. Yeah. And generally speaking, users will be like, they have the native apps for
- 44:09whatever client device they're using, plus they have a web experience. And then maybe they have a
- 44:15native desktop OS as well. That's increasingly becoming a thing of, no, lots of people do everything
- 44:21on their tablet or on their phone. They have no desktop. And so, yeah. And so Toga basically take the
- 44:28point of view of, okay, CSS is good as a way of styling things and doing layout and all that sort
- 44:34of stuff. So let's lift that in and use that as the basis of styling your application.
- 44:41That's a brilliant design choice, I think.
- 44:43Yeah. And say, okay, let's not reinvent that. Let's just use that. But at the same time,
- 44:47no, I don't think they use the DOM. I don't think they pulled the whole DOM in, but they made sure that
- 44:55whatever they did was easy to translate into HTML5 DOM. And so essentially what they let you do is
- 45:01rather than having to choose between, am I writing a web app or am I writing a native app?
- 45:06They treat HTML5 as another target environment. And so you basically, one of the things you can get out
- 45:15of your project is a Django 5 progressive web app that say, okay, so we target the browser as a
- 45:21platform. There's your web app. And here's your native iPhone app. Here's your native Android app.
- 45:27And it's really impressive the amount of underlying infrastructure they've developed for this.
- 45:34Yeah. There's a lot of building pieces, a lot of cross compilers, and a lot of stuff that makes
- 45:38this possible.
- 45:39And one of the big things they realized was that they didn't have to write a Python compiler for every
- 45:43target environment. What they could do is they could use CPython as the core compiler and emit CPython
- 45:50AST, I think, and then go from the AST layer into JavaScript by the Bartavia project and into the JVM
- 46:00by the VOC project. And then anywhere else that has native C APIs, then they can just use CPython.
- 46:08But it was that big thing of that in the web, they really needed the native JavaScript implementation
- 46:13just because currently the cost of getting from another language runtime into JavaScript to access
- 46:23the DOM is just too slow for really snappy responsiveness on applications.
- 46:30So WebAssembly might change that once they add some DOM interfaces.
- 46:35But for now, I'm really interested in to see how WebAssembly is going to affect this because
- 46:40there's a lot of JavaScript, Python to JavaScript options like Brython, Sculpt, Transcript, Batavia.
- 46:45If that becomes like a native thing that is fast, like that actually might be really interesting.
- 46:51One of the ways I put it is JavaScript's in an interesting position where it's ubiquitous because
- 47:00for historical reasons that...
- 47:02Because Netscape.
- 47:03We actually...
- 47:04Because Netscape.
- 47:04But also because we managed to avoid the vendor fight.
- 47:07Yeah, that's true.
- 47:07Microsoft actually eventually came to the party and said, okay, we'll just implement JavaScript
- 47:11as written.
- 47:13And so that Java versus C# style split never happened, which is kind of astonishing.
- 47:20Those were bitter fights over the whole browser internet time.
- 47:23So surprising that that language made it through as a shared item.
- 47:27And that's just...
- 47:28It's astonishing that it survived the vendor turf wars.
- 47:32And full credit to them for dealing with that.
- 47:34Yeah, but maybe it wouldn't have if JavaScript had been more important at the time.
- 47:38But at the time, it was kind of like jQuery was the pinnacle.
- 47:42You could animate in a little thing.
- 47:43You could put a little calendar.
- 47:45But it wasn't like Angular and all these other major front end things.
- 47:49Whereas the major part of your app is now that thing.
- 47:52And I think that is the thing of...
- 47:53You kind of do need that freedom of the vendors are there.
- 47:57So you have the credibility and the resources.
- 48:00But they're not really paying attention.
- 48:03And they're not trying to use you as a competitive weapon.
- 48:06Because yeah, that's when things get really messy.
- 48:09Yeah, that's really interesting.
- 48:10So let's focus on another area for a moment.
- 48:12Let's talk about sort of the meta tooling, like the packaging and software distribution story around Python.
- 48:17Like we have things like Briefcase from the Bware guys.
- 48:21You just the same area that we just talked about.
- 48:23We've got CX Freeze.
- 48:24I use PyInstaller in that project.
- 48:26I talked about wxPython.
- 48:27There's a bunch of options and more that we're not even listening.
- 48:30There's pip, obviously.
- 48:31But maybe talk a little bit about the evolution of that kind of stuff.
- 48:35This is a fascinating thing.
- 48:37Because back when I worked for Boeing, we did a lot of stuff with Windows.
- 48:41And so we were running Windows installers.
- 48:43And writing software that actually properly respects platform conventions is genuinely difficult.
- 48:50It's super difficult, yeah.
- 48:52Back when I worked for Red Hat, one of my biggest complaints was that there basically isn't any developer documentation for here is how to write a well-behaved Linux application.
- 49:04Like they just don't exist.
- 49:07And you've got bits scattered over in the file system hierarchy stand and all that sort of stuff.
- 49:11And so you're just like going, the reason people don't write well-behaved applications is they have no idea what the rules are.
- 49:19Because none of the Linux vendors have actually written the equivalent of Apple's user interface guidelines or Microsoft's user interface guidelines.
- 49:28And you need those to say, what should I be doing?
- 49:33Because otherwise I'll just make something.
- 49:35Where do I even put the program on the computer when I install it?
- 49:38What's it supposed to do there, right?
- 49:40And it's like, and like Linux devs will say, oh, but file system hierarchy standard.
- 49:45And I'm like going, have you tried to read that documentation?
- 49:48It's all written for system administrators.
- 49:50It's like none of it's written for software developers of here is what your application should do.
- 49:56And so you're just like going, okay.
- 49:58So how about we just define a simpler format that lets developers not worry about the whole mess that's out there and say, like, you just write your application as a monolithic thing that drops into a directory and just tag bits of it with what they are.
- 50:14And then we can write tooling that will distribute things out into the right places.
- 50:19And the beauty of working, and this is something we've been working really hard to enable on the disutil sig level, which is that, so we focus primarily on the developer use case of I'm installing this to hack on it, not to just run it as an application.
- 50:39And so you want to be able to run test suites, you want to install dependencies in order to run a modified version that you've made local changes to and all that sort of stuff.
- 50:48We're really primarily interested in the developer experience.
- 50:53But at the same time, we're trying to get to a point where we make our description formats actually specified standards so that applications other than Python itself can read them.
- 51:11And then once you do that, and once you start describing things in static metadata formats, then suddenly you enable stuff like PIX, which is the Python executable format, and basically takes that and says, okay, well, here's a thing where you just have to add a Python runtime and say, run that thing.
- 51:31And also getting to the point of actually having true single binary executables.
- 51:37Yeah, for people who are listening, PIX is basically like a bizarro hack on a zip file that contains a bunch of Python code, right?
- 51:44But it lets you package up everything that you need into like one distributable binary thing.
- 51:51Slight tangent, that's actually a case where we made a change through a tracker issue to enable execution of zip files.
- 51:58And we forgot to mention it in the Python 2.6 What's New?
- 52:04Which they meant, we're like going, why does nobody know that Python can do this?
- 52:08We're like going, oh, because the only mention is like buried in the news file for Python 2.6.
- 52:16We never actually put it in the What's New.
- 52:19How funny.
- 52:20And so then I think it was around Python 3.4 or 3.5, we actually added zip app to the standard library.
- 52:28Not to let you execute this thing, but to provide some tools for creating them.
- 52:32And so then I think after we did that, then more people were aware that the capability existed and had existed since 2.6.
- 52:38Wait, why does this exist?
- 52:39Can you actually turn making that part of this?
- 52:41So what do you think about, to me, one of the challenges of Python outside the server space, right?
- 52:48The server space, everything seems basically handled to me.
- 52:50But if I want to write an application, let's say I go and use wxPython or PyQT or something like that.
- 52:57And I get this nice app.
- 52:58I want to give this, you know, we talked about 2CALs and the download stuff.
- 53:02And here's my zip.
- 53:03And I'm going to, like, the story for that in Python is, I think it's coming along, but it's still pretty early days.
- 53:11Things like PyInstaller and stuff, you can make these sort of binaries that don't even require Python on the machine or the dependencies, right?
- 53:18You don't have to describe, hey, dear user, you begin by, you know, creating a virtual environment and pip installing these things.
- 53:24Like, that's, you know, that's not the average, like, non-developer workflow.
- 53:28Yeah, exactly.
- 53:29So here's my .app or my .exe.
- 53:31There's one thing.
- 53:32I double-click it.
- 53:33That's it.
- 53:34How do you see the current space where we're going?
- 53:37Are you optimistic around that?
- 53:38Do you think it matters?
- 53:40I think it does matter.
- 53:41Interestingly, because it's one of those things, like, desktop, I think, is going to go the way of kind of like an artist's drawing table.
- 53:49Like, most people don't have a drawing table in their house.
- 53:54But if you're a professional artist, you probably will.
- 53:57And so it becomes that thing of you get to the point where vast majority of stuff can be done with just a phone or a tablet.
- 54:05But there will be things where professional things or hobbyist things.
- 54:11We just like going, no, no, no.
- 54:12I want a desktop.
- 54:13Right.
- 54:13You know, one example.
- 54:14People say this stuff a lot.
- 54:16And I do agree with you.
- 54:17One example might be, like, if you're writing software, like, for your company of, like, 10,000 stock traders.
- 54:25And they all look at the market.
- 54:26They have, you know, those insane, like, six screen, nine screen configurations.
- 54:29And they want their little dashboard to absolutely update insanely fast, just almost client server style.
- 54:36Right.
- 54:37Like, like a mobile app or a high latency web app or something is probably not going to be a replacement for those kinds of environments.
- 54:45Yeah, exactly.
- 54:46You're going to have those specialist applications.
- 54:48And I think the direction we're going to go is, again, talking about the Beware stuff, I really like the direction they've taken with Briefcase, where the idea is, instead of trying to convince developers to care about all these potential deployment targets, you instead get them to describe the information that they have that the computer cannot figure out automatically in a way that's useful to them for their own development environments.
- 55:14So, in this case, Python-level dependency descriptions, that sort of stuff.
- 55:18And then you just try and automate everything from that point forward.
- 55:21And so, Russell Keith-Magee, the founder of RebootBware, has a wonderful demo of, what is it, six platforms in 20 minutes.
- 55:30He does have his machine already set up to publish to all the different platforms.
- 55:35So, like, he has Xcode stuff pre-installed.
- 55:38But, yeah, so in 20 minutes, he goes from a blank page to a built Android application, a built iOS application, a built Django web application, a Windows installer.
- 55:49I don't think he has Flatpak in there as well yet, but I think he was looking at it.
- 55:54So, yeah, and so it becomes that thing of, as a developer, you just go, I write my app, and then I can do cross-platform stuff without too much pain.
- 56:02Sounds a little bit like what Ansible does for server orchestration.
- 56:05I think so. It's about encapsulating that executable knowledge of what does a native app look like on these platforms.
- 56:11Right, and so are you optimistic on, like, Python as a language for building mobile apps?
- 56:16Yeah, I think so.
- 56:17Somewhere in the future.
- 56:18And I don't know yet whether that will come about through the Beware VOC model or whether it will be a result of getting decent WebAssembly DOM access and doing things that way or some combination thereof.
- 56:33Because one of the interesting things about WebAssembly DOM models is it then raises the prospect of potentially exposing native widgets through those interfaces, which all becomes quite interesting.
- 56:47Yeah, that's for sure.
- 56:48One thing that might be an interesting path that is not any of the ones you mentioned, those all could be good.
- 56:54And we only need one, right?
- 56:55One could be PyPy, actually, to some degree, or the Pigeon project, where the way that they got Csharpen.net onto iOS and Android was they basically used the JIT compiler and then just ahead of time compiled it.
- 57:10So if you could get some form of, like, JIT compilation, say, via PyPy, and you just don't JIT it, you just fully compile it for the machine and then drop it there, maybe that would actually be a good path.
- 57:22I don't know what the state of PyPy pre-compilation caching is, because certainly, like, PyPy's current challenge, I think, is with startup time and warming up the JIT.
- 57:35And there's a lot of ways to mitigate that and manage that.
- 57:38And in particular, mobile environments where people tend not to close applications down completely, they just suspend them in the background.
- 57:45Yeah, that does have the potential to work quite well.
- 57:48Yeah.
- 57:49I don't see anybody pursuing it, but it's still yet one more potential path in the future.
- 57:53It's actually one of the interesting things is that I still think there's not a lot of understanding of how compelling and revolutionary PyPy is as a technology.
- 58:04And I think it kind of gets back to the case of so many of us are using Python for orchestration use cases where we were kind of like, well, if our Python code becomes the performance bottleneck, something's gone horribly, horribly wrong at a system architectural level.
- 58:19Like, it's not supposed to be in the critical path.
- 58:22We really frustrate the PyPy guys, by the way.
- 58:25It's like, sorry, the PyPy crew trying to avoid guys for that kind of thing.
- 58:30But Intel wrote a instruction set emulator in PyPy.
- 58:37So I think that was the Pidgin project that you mentioned.
- 58:39And yeah, and they're just like going, hey, without tuning the JIT, we're kind of rivaling QMU for performance.
- 58:47And you're just like going, seriously?
- 58:49That's astonishing.
- 58:51Yeah, the Intel guys are doing a lot of stuff at the like chip level to optimize Python and PyPy.
- 58:57And they're doing contributions back.
- 58:58It's really pretty cool.
- 58:59And yeah, and that's been really cool.
- 59:01I've spoken to some of those folks.
- 59:03But the interesting thing is, we haven't yet seen anybody try to write a Java bytecode interpreter or a LLVM IR interpreter or a JavaScript interpreter in the PyPy technology.
- 59:19And the interesting thing is, those are the ones which actually have the really, really heated cross-interpreted performance debates.
- 59:26Where it's like, oh, a new release came out.
- 59:29Well, we will have multiple articles.
- 59:31How fast is it on the competitive benchmarks between the different implementations?
- 59:36And I mean, that's one of the things you always see for V8 or new browser versions or that sort of stuff.
- 59:42It's like, oh, how does it do on the benchmarks?
- 59:44Yeah, exactly.
- 59:45We run this JavaScript benchmark.
- 59:46It's slightly faster than V8 now.
- 59:49So take that.
- 59:50Yeah, things like that.
- 59:52We just don't have that kind of competitive performance mindset in the Python world.
- 59:57I think that we're heading down that path a little bit.
- 1:00:00I mean, you look at the work that Victor Stinner has been doing to optimize things around the Python 3.5, 3.6 timeframe was like, look, performance is a feature.
- 1:00:10And we're now going to get serious about making this faster.
- 1:00:12I think there is a lot of work being done there.
- 1:00:15But you're right.
- 1:00:15There's still a long ways to go.
- 1:00:16Yeah.
- 1:00:17But it's just one of those things, like having been in the vendor space as well.
- 1:00:20It's like you've never had customers coming to you and say, we want you to make our Python code faster.
- 1:00:25And so when customers aren't actually banging on vendors' doors saying, we want you to make this faster, then it doesn't happen.
- 1:00:33Whereas in the JavaScript world, we had the driver of browser vendors wanted people using their browser so that they could get their browsing data.
- 1:00:43And it's like running JavaScript faster meant more responsive websites, which meant people enjoyed using the browser more, which then meant they would use your browser, which meant you could get their data.
- 1:00:53Yeah.
- 1:00:54That you're at the end of that line, that funnel, by the way.
- 1:00:56But I think it's really interesting that, say, Google, for example, who really doesn't care how you use the web.
- 1:01:02They just want you on the web more, doing more web stuff to a large degree, is like, we're going to build V8 and make this super fast so that we can make these more engaging apps.
- 1:01:11So you're just on the web and you might do more searches.
- 1:01:13So we get your ad money.
- 1:01:15We can retarget you.
- 1:01:16We can show you more ads more quickly.
- 1:01:18Exactly.
- 1:01:19Yeah, that's a pretty interesting thing.
- 1:01:22So we're kind of getting short on time.
- 1:01:23So let's maybe do just a little bit of a conversation about how the standard library and the language evolved.
- 1:01:29Because when people think of evolution of Python, they might think, well, that means a new library or there's like new syntax for some other comprehension I haven't imagined.
- 1:01:38This is what people like to think of when they go, how Python evolves.
- 1:01:41And so the biggest thing is essentially CPython's issue tracker.
- 1:01:45So one of the interesting things about Python is we haven't gone the direction of actually defining a formal international standard of what it means for something to be Python.
- 1:01:56Instead, what we have is we have a informal language reference as part of the CPython documentation.
- 1:02:03And then CPython itself is the reference interpreter.
- 1:02:08And so I should actually probably say what I mean by CPython.
- 1:02:13Because for a lot of people, they go, what's CPython?
- 1:02:15We just use Python here.
- 1:02:17Yeah, I type Python.
- 1:02:18It goes.
- 1:02:19I don't know what the CPython is.
- 1:02:20And so this is one of the interesting things is.
- 1:02:22So there's actually two different things.
- 1:02:24There's Python the language, which is the thing you actually type into a text file, which then needs to be interpreted by something or compiled by something.
- 1:02:32And then the thing that actually executes when you type Python at the command line, we call imaginatively CPython because it's Python implemented in C.
- 1:02:41In truth, the code base is actually more Python than it is C.
- 1:02:45But the core engine, like the compiler and the eval loop and the built-in types are written in C.
- 1:02:51The core heart, the byte coder is handed off to C eval.c.
- 1:02:55There's a for loop and a switch statement in C.
- 1:02:57And that's kind of where the execution happens.
- 1:02:59But yeah.
- 1:03:00That's where the magic happens.
- 1:03:01Yeah.
- 1:03:02And so we started using CPython more deliberately and more consciously and more of our documentation actually after the 2010 language and VM summits, which was when we got a bunch of the implementers of different VMs together.
- 1:03:20So CPython, Jython, IronPython, PyPy, and basically talked about how can we essentially help alternative implementations to grow and reduce the barriers to use.
- 1:03:32Turns out the biggest barrier to use is C extension API compatibility.
- 1:03:36Yeah, that's definitely true.
- 1:03:38Yeah.
- 1:03:38And that's...
- 1:03:40That's both the cursing and the blessing of it, right?
- 1:03:43Because without that, the scientific computation stuff just wouldn't happen here.
- 1:03:47Yeah.
- 1:03:48And that's right.
- 1:03:48And so that's been an ongoing challenge for a long time.
- 1:03:51We're working on that.
- 1:03:52Which gets us back to the how the interpreter and language itself evolve.
- 1:03:57And so the core of this is the issue tracker at bugs.python.org because that's actually not just bugs.
- 1:04:05It's also enhancement requests.
- 1:04:07So one of the categories there is enhancement.
- 1:04:09And so that becomes a case of, oh, we think this API should be added.
- 1:04:13We think this API could use another flag on it.
- 1:04:16And so that basically becomes a case of, hey, can we make people's lives a bit easier once they can change their baseline version of Python more easily?
- 1:04:25One of the other things that's making this more desirable and have it happen more often is when we're getting more and more organizations now that are...
- 1:04:34They have automated testing regimes that are sufficiently robust that updating to a new version of Python is no longer scary.
- 1:04:42Right.
- 1:04:42Things like talks and whatnot that can do multi-version targeting and stuff, right?
- 1:04:47Yeah.
- 1:04:47But also I think when Python 3.6 came out, I think Facebook had upgraded their production infrastructure in less than a week.
- 1:04:55Yeah.
- 1:04:56Yeah.
- 1:04:56They were like, I remember the tweet.
- 1:04:58I think it was from Jason Fried.
- 1:04:59It was something to the effect of Python 3.6 came out on Tuesday.
- 1:05:02We're now running on Python 3.6 in production.
- 1:05:05And it was like Thursday that he sent that message out.
- 1:05:07It was incredible.
- 1:05:08Yeah.
- 1:05:08Might have been Łukasz maybe.
- 1:05:10Oh, yeah, yeah.
- 1:05:10It could have been actually.
- 1:05:11Yeah, yeah.
- 1:05:11It could have been.
- 1:05:12And then someone replied going, I just thought about the sheer scale of that.
- 1:05:18And that's nothing short of astonishing.
- 1:05:20But the thing is with CI auto-deployment pipelines, it becomes that thing of you submit the PR that changes the base version in your Docker image.
- 1:05:31And if CI passes, well, you have just as much confidence in that change as you do in any other change to your code base.
- 1:05:39And so you're no longer talking about, oh, rebase means weeks or months of manual QA anymore.
- 1:05:45A rebase just runs through the same CI as everything else.
- 1:05:49Well, and you also have these sophisticated deployment techniques, I'm sure, places like Facebook use, where they don't necessarily switch everything.
- 1:05:56Maybe 1% of the traffic hits the new one, and then 20, and then 100%.
- 1:06:00You know, they can, like, gradually throw that out to the world before they hit millions of people and see what happens.
- 1:06:05It's that thing of, because automated testing has gotten so much better, rebasing to new Python versions is easier.
- 1:06:13Which means that they can more quickly get to the point of, we got the enhancement into the core.
- 1:06:19That means we can get rid of our workaround for that capability not being there.
- 1:06:24And the payoff for that is, like, within the couple of years that you can plan around.
- 1:06:30You can say, okay, we'll do the hacky way now.
- 1:06:33We'll get the proper fix into the core.
- 1:06:35Then we can throw away the hack in several months' time.
- 1:06:38That gets a lot more attractive.
- 1:06:40And so, whereas in more traditional environments, you may be supporting old Python versions for 5, 8, 10 years.
- 1:06:48Which kind of kills your incentive to say, oh, I need this in the standard library.
- 1:06:53And you're going, well, no, I really don't.
- 1:06:55I need it in a library that I can upgrade.
- 1:06:57Yeah, you've got to be able to pip install that, because you're not changing the base runtime.
- 1:07:02Yeah, very interesting.
- 1:07:03So, getting back to the enhancement requests.
- 1:07:05Filing the enhancement request is kind of the first step.
- 1:07:08It's like, hey, that can be, so you can either do that directly, or you can post to the Python ideas mailing list and say,
- 1:07:14hey, should I file an enhancement request for this?
- 1:07:16How is it likely to be received?
- 1:07:18And so, enhancement requests, it's easiest to get a good review for modules that actually have an active maintainer.
- 1:07:24So, in the Python developer guide, we have a page called the experts index.
- 1:07:28And essentially, the expert index, as core developers, we can add ourselves to that in particular areas.
- 1:07:36And essentially, when we add ourselves, we're saying, I feel both confident and entitled to make design decisions about this module or about this part of the interpreter.
- 1:07:46And quite often, the biggest problem that folks with enhancement requests face is that they're not being explicitly told no.
- 1:07:55It's that nobody's telling them, yes, we're going to do that.
- 1:07:59And quite often, the reason nobody's telling them yes is that nobody feels both confident and entitled to say, yes, that's a good idea.
- 1:08:05Right, exactly.
- 1:08:06Because it's sort of out of their little specialty.
- 1:08:09And so, you know, it's just floating out there.
- 1:08:11And so, they're just like going, oh, it might be a good idea.
- 1:08:13Like, I think for a long time, there was a proposed improvement to MIME type handling in the standard library.
- 1:08:20And it just kind of sat there forever because we didn't actually have any MIME experts on the current team.
- 1:08:28And it was a huge change that combined.
- 1:08:32It didn't clearly separate a massive refactoring of the MIME handling module from here is the bits that are actually wrong and need to be fixed.
- 1:08:41And at that point, you just kind of end up in an impasse because you're just like going, well, we're not confident enough in the change to say yes to it.
- 1:08:48But at the same time, we're pretty sure the status quo isn't right.
- 1:08:51Right.
- 1:08:52That's tough.
- 1:08:53But yeah, I see it.
- 1:08:54All right.
- 1:08:55So, how about the language?
- 1:08:55What if we want a new feature in the language?
- 1:08:57Like, I want a triple slash that means something.
- 1:08:59I want to put that in there.
- 1:09:01Okay.
- 1:09:01Go to the triple slash.
- 1:09:02Okay.
- 1:09:03So, that actually starts the same way, either on the Python ideas mailing list and that's like, basically, it's very hard to go wrong starting with the Python ideas mailing list.
- 1:09:14You're just going, the main way people go wrong is they present their idea with the implication that it's an obviously good idea and we're clearly idiots for not having implemented it already.
- 1:09:26That tends not to go over so well.
- 1:09:28But so long as-
- 1:09:30So, how you win friends and influence people, right?
- 1:09:31So long as people come in with the genuine questioning mindset of, would this be a good idea or might it contain the seeds of a good idea, that tends to be a much better foundation for discussion.
- 1:09:45Because either it will not be a good idea.
- 1:09:49There's a comment along the lines of, like, the number of ways we can make Python worse is unbounded.
- 1:09:56The number of ways we can make it better is a relatively limited subset.
- 1:10:00Or is always better in a language.
- 1:10:02I feel like there are some language designers, you know, thinking like Swift and the C# team, they seem to just be like, well, we have a job as a language designer, so we're going to continue to design the language.
- 1:10:13And so, what features are we adding?
- 1:10:15The shipping period is like, well, there don't necessarily need to be more features.
- 1:10:19You're just making it worse now, right?
- 1:10:21It's getting complicated.
- 1:10:22So I really like that the Python is cautious about that.
- 1:10:25Cognitive burden is something we think about a lot.
- 1:10:28Because every time you add to an API or add more keywords or anything, you are necessarily making things harder to learn.
- 1:10:35Especially if there's multiple ways to do the same thing.
- 1:10:37But there's like a slightly better, newer way.
- 1:10:39It just makes it confusing.
- 1:10:42When the new way is just obviously better in every way, those are the ones you're really happy about.
- 1:10:47Right.
- 1:10:47Like f-strings, perhaps, maybe.
- 1:10:49f-strings are exactly the example I was going to bring up.
- 1:10:51Because they're not only the most concise way of formatting strings, but when you can use them, they're also the fastest.
- 1:10:59And this is something not a lot of people realize, is that with both percent formatting and the .format method, Python has to interpret the formatting string at runtime.
- 1:11:08So it means it has to scan through it, find all the fields, calculate the field substitutions, and it's all just kind of horrible and slow.
- 1:11:16The beauty of f-strings is because they're syntax, you can get the compiler to help.
- 1:11:21And so with f-strings, we do all of that thing of breaking it up into segments at compile time.
- 1:11:29So in the bytecode or the PYC file, it's like already sort of partitioned it.
- 1:11:34In the compiled form, all you have is an alternating sequence of text segment, format operation, text segment, format operation, text segment, format operation.
- 1:11:46And so it can basically, all of that string passing code happens at compile time.
- 1:11:53And so it's not only the nicest to write and the easiest to read, it's also the fastest.
- 1:11:59That sounds like a win in future.
- 1:12:01Yeah.
- 1:12:01So it was like, cool.
- 1:12:02And then what it means is that then all the other runtime formatting options, they're all still there and you still have all your different trade-offs between them for when you might want to use them.
- 1:12:10But for straight up text formatting, you don't need them anymore.
- 1:12:12And those kinds of ideas that kind of win on all the boxes and it's like, those are the ones most likely to get approved.
- 1:12:19That basic enhancement proposal process of proposing things on Python ideas or on bungas.python.org.
- 1:12:25Essentially, we have an escalation mechanism for those.
- 1:12:27So if it fits in somebody's personal area of expertise, we may just approve it on the issue tracker and say, yep, that's a great idea.
- 1:12:33It's an area I'm confident making decisions about.
- 1:12:36I'll just approve it on my own authority and merge it.
- 1:12:40So those are wonderful from a contributor experience point of view.
- 1:12:43It's like, hey, I made a suggestion.
- 1:12:44It was accepted.
- 1:12:45Cool.
- 1:12:45I made a proposed change to Python.
- 1:12:48Those are kind of the exception rather than the most common case.
- 1:12:53And what happens when that doesn't work is we may ask that a suggestion get taken to Python ideas if it's relatively vague or to Python dev if the suggestion is clear and the bit that's unclear is should we do it or not?
- 1:13:09Right.
- 1:13:09It needs debate.
- 1:13:10So Python dev is mainly for yes or no type questions.
- 1:13:13Python ideas is for I don't even know what the question is.
- 1:13:17What should the question be is kind of a useful way of thinking of those two mailing lists.
- 1:13:23But sometimes that's still not enough to resolve the question.
- 1:13:30So it's an enhancement proposal process.
- 1:13:36And that's also a useful thing.
- 1:13:43And that's also a useful thing.
- 1:13:50And so the idea of the process is to provide a document that summarizes the discussion, summarizes the tradeoffs that have been discussed, and nominates a particular person to make the final decision, which is basically yes or no, or let's put it off and reconsider it later.
- 1:14:12And so by default, that's always Guido as the lead language designer.
- 1:14:17But we have a delegation mechanism in place where any core developer can say, I'm happy to make the final decision on this and basically be responsible for the fallout.
- 1:14:31Yeah.
- 1:14:31And that can be wide-ranging.
- 1:14:33Yeah.
- 1:14:34Yeah.
- 1:14:34Yeah.
- 1:14:34Yeah.
- 1:14:35That's interesting.
- 1:14:36In a lot of cases, we also use the PEP process when we're like going, we're happy with the idea in principle, but there's a bunch of lower-level details to work out before it becomes actually implementable.
- 1:14:48And in those cases, there's usually arbitrary design decisions that need to be made along the way.
- 1:14:53And it's like, it doesn't really matter which way you go.
- 1:14:56You just have to pick one and stick with it.
- 1:14:58And so the BDFL and delegation process is useful for that as well because that's when you just say, look, if there's an arbitrary decision to be made, this is the person who makes it.
- 1:15:10And the beauty of this is that it gives us a way to say yes to complex suggestions.
- 1:15:16I think the record for getting a complex proposal through from proposal to implementation was something like eight days to add the matrix multiplication operator from the point where Nathaniel submitted the PEP to when it was actually implemented.
- 1:15:36And that was an interesting one because that actually came out of Nathaniel researching the history of operator proposals to Python.
- 1:15:45And it turned out nobody had ever actually suggested, let's just add a matrix multiplication operator.
- 1:15:52They'd always just gone, they'd all be in a case of let's add the ability for users to define their own infix operators.
- 1:16:00And they'd always failed on the basis of not adequately demonstrating the use case.
- 1:16:06And then what Nathaniel did was he went and looked and talked to all the scientific community and said, what are we actually feeling pain for about?
- 1:16:17And he went, well, it turns out we're really only feeling the pain for matrix multiplication because you need a way to spell element wise multiplication and you need a way to spell matrix multiplication.
- 1:16:29And Python just simply didn't offer enough infix operators to let you do that.
- 1:16:35Like you needed, so you had to choose and it was all very complicated.
- 1:16:40Nathaniel really did his research, understood the problem, wrote the PEP and said, this is the problem.
- 1:16:48This is what we want to do about it.
- 1:16:49This is why we chose the simple we did.
- 1:16:51And Guido went, sure.
- 1:16:53Yeah, that's awesome.
- 1:16:55That's a real blueprint for other people who want to do stuff like this.
- 1:16:58It's still my favorite enhancement proposal this day because it was just a beautiful example of researching the problem, understanding the need and explaining it clearly to people that weren't in that environment and weren't regularly writing scientific software.
- 1:17:13And one of the cute things was that it would have been even faster, except that there was a question in there about left associativity versus right associativity, where the description in the PEP was, we didn't ask for this because we assumed you'd say no.
- 1:17:31And Guido went, well, no, no, no.
- 1:17:33I might say yes if you have a valid use case for it.
- 1:17:37And so it was like, oh, okay, we need to go discuss that on the scientific mailing list to figure out what we actually want then.
- 1:17:43We'll get back to you.
- 1:17:44Yeah.
- 1:17:45And so there was an extra couple of days in there while I went and figured out, do we actually want that?
- 1:17:49And then they came back and said, well, we don't actually want it.
- 1:17:52That's cool.
- 1:17:53That's a really nice, really nice example.
- 1:17:55All right.
- 1:17:56We're totally out of time, but I want to still get you with the last two questions, as I always do.
- 1:18:00So if you're going to write some Python code, what editor do you use?
- 1:18:02I use VS Code these days, and I used KDE's Kate editor for a very long time.
- 1:18:08And it was only the VS Code has better Python plugins.
- 1:18:12I think VS Code with the Python plugin is a really nice option.
- 1:18:15So I definitely like it as well.
- 1:18:17And notable PyPI package.
- 1:18:19We've seen many.
- 1:18:20Notable PyPI package.
- 1:18:21Oh.
- 1:18:23Maybe something that somebody doesn't know about.
- 1:18:25Not the most popular, but like, oh, they should know about this thing that they probably don't.
- 1:18:29Hang on.
- 1:18:29That's a different question.
- 1:18:30One that I'm really, really pleased that it exists is Nipi, N-I-P-I.
- 1:18:35And that is neuroimaging data manipulation.
- 1:18:39Like, I personally have no use case for it.
- 1:18:41I am just really, really happy that it exists because...
- 1:18:44Yeah, that's awesome.
- 1:18:45That's just really cool.
- 1:18:47So one that I really, really love using for writing command line applications is Click.
- 1:18:53So Click for writing command line application.
- 1:18:55I think a lot of people have heard of that one.
- 1:18:57But it's still a really, really nice option.
- 1:18:58Yeah, it's just as a way of writing command line applications that are easy to test, easy to compose, easy to write in the first place.
- 1:19:08And the fact that it puts your command line passing right next to the function that implements a given subcommand is just a really nice way of doing things.
- 1:19:17Very, very good.
- 1:19:18I definitely like those recommendations.
- 1:19:19All right.
- 1:19:20So people are excited.
- 1:19:21They have ideas for improving Python at many levels.
- 1:19:24They want to get in touch with you.
- 1:19:25What's the final call to action?
- 1:19:26Not you in particular, but you as a group of people who make these decisions.
- 1:19:29Python developer guide is a really worthwhile document to read.
- 1:19:34We get a lot of common questions about how do I get started hacking on Python?
- 1:19:38How do I make suggestions for changing the language?
- 1:19:40And essentially, we try and make sure the developer guide answers those.
- 1:19:44It does make it rather large, but it's a complicated project.
- 1:19:49The other one I would point out is that posting suggestions to Python ideas is almost never the wrong thing to do.
- 1:19:56Just make sure they're phrased as suggestions, not as demands.
- 1:19:59Yeah.
- 1:20:01You're asking a favor.
- 1:20:02So approach the situation that way, right?
- 1:20:04Yes, exactly.
- 1:20:05Yeah.
- 1:20:06Awesome.
- 1:20:06All right.
- 1:20:06Well, Nick, it's been really great to share your perspective on all these changes in Python.
- 1:20:11It's been great.
- 1:20:12Okay.
- 1:20:12Awesome.
- 1:20:12I've had a great time.
- 1:20:14Sorry if I ramble a bit, but I really enjoyed talking about this stuff.
- 1:20:18Yeah.
- 1:20:19It's really interesting.
- 1:20:20So thanks for taking the time.
- 1:20:21Talk to you later.
- 1:20:22Okay.
- 1:20:22Thank you very much.
- 1:20:23This has been another episode of Talk Python To Me.
- 1:20:27Today's guest has been Nick Coghlan, and this episode has been brought to you by Linode and Datadog.
- 1:20:33Linode is bulletproof hosting for whatever you're building with Python.
- 1:20:37Get four months free at talkpython.fm/Linode.
- 1:20:42That's L-I-N-O-D-E.
- 1:20:43Datadog gives you visibility into the whole system running your code.
- 1:20:48Visit talkpython.fm/Datadog and see what you've been missing.
- 1:20:52Don't even throw in a free t-shirt for doing the tutorial.
- 1:20:54Are you or a colleague trying to learn Python?
- 1:20:57Have you tried books and videos that just left you bored by covering topics point by point?
- 1:21:02Well, check out my online course, Python Jumpstart, by building 10 apps at talkpython.fm/course
- 1:21:08to experience a more engaging way to learn Python.
- 1:21:11And if you're looking for something a little more advanced, try my Write Pythonic code course at talkpython.fm/pythonic.
- 1:21:19Be sure to subscribe to the show.
- 1:21:20Open your favorite podcatcher and search for Python.
- 1:21:22We should be right at the top.
- 1:21:24You can also find the iTunes feed at /itunes, Google Play feed at /play, and direct RSS feed at /rss on talkpython.fm.
- 1:21:33This is your host, Michael Kennedy.
- 1:21:35Thanks so much for listening.
- 1:21:36I really appreciate it.
- 1:21:37Now get out there and write some Python code.
- 1:21:39I'll see you next time.
- 1:21:59Thank you.