Latest / Talk Python To Me / #185: Creating a Python 3 Culture at Facebook
Transcript
- 0:00Do you or your team maintain a large Python 2 code base?
- 0:02Would you like to move to Python 3, but there's just too much in place keeping you on legacy Python?
- 0:08Then you will definitely enjoy the story from Jason Fried.
- 0:11He created a grassroots campaign to move Facebook's massive Python 2 code base over to Python 3.
- 0:17And he made Python 3 part of Facebook's culture today.
- 0:21There are lessons here for every listener.
- 0:23This is Talk Python To Me, episode 185, recorded November 10th, 2018.
- 0:28Welcome to Talk Python To Me, a weekly podcast on Python, the language, the libraries, the ecosystem, and the personalities.
- 0:48This is your host, Michael Kennedy.
- 0:50Follow me on Twitter where I'm @mkennedy.
- 0:52Keep up with the show and listen to past episodes at talkpython.fm.
- 0:56And follow the show on Twitter via at Talk Python.
- 0:59This episode is sponsored by Linode and Rollbar.
- 1:02Please check out what they're offering during their segments.
- 1:04It really helps support the show.
- 1:05Jason, welcome to Talk Python.
- 1:07Thank you for having me.
- 1:08It's great to have you here.
- 1:09We've been working on this for a while, haven't we?
- 1:11It's been a long time.
- 1:12It's one of the more drawn out, sort of getting a guest on the show.
- 1:17But I think people are going to be really happy about it.
- 1:19I think it's a great story.
- 1:21And the timing is perfect around the move to Python 3.
- 1:24Yeah.
- 1:25Yeah, it's going to be super fun.
- 1:26So we're going to talk about how you've done this at Facebook.
- 1:29And you didn't just start.
- 1:30It's a long journey.
- 1:31But before we get into all that, let's start with a little bit of your background.
- 1:35How do you get into programming in Python?
- 1:36I didn't have anything to do with Python until I moved to Facebook.
- 1:40So before that, I was a Perl programmer.
- 1:42I'm kind of ashamed now.
- 1:44But I used to love Perl back in the day.
- 1:46And then that was not socially acceptable when I moved to Facebook in 2011.
- 1:50So I had to learn Python.
- 1:54And surprisingly enough, I picked it up very easily.
- 1:56And because I'm a little obsessive, so I dug into it enough that I started helping people.
- 2:02And that kind of started...
- 2:04I guess I thought of myself as an expert.
- 2:06But even today, you always get better and better as you get.
- 2:11And you look back at some of your old stuff.
- 2:12And you're like, yeah, I used to write code like that.
- 2:15It doesn't matter how much of an expert you are.
- 2:17There's still plenty you don't know.
- 2:19And there's still stuff that you look back.
- 2:21You're like, whoa, I did that.
- 2:22That was bad.
- 2:22Yeah, you're like, don't look at that old code, please.
- 2:25It's like my skeleton, so my closet.
- 2:27Exactly.
- 2:28Well, it shows you're making progress, right?
- 2:31Yeah.
- 2:32I do think it's highly interesting that you were one of the driving forces for this entire
- 2:39sort of transformation at Facebook.
- 2:42And yet, you walked in the door going, Python?
- 2:45Is that the one with the space?
- 2:47Or is that a different language?
- 2:48Yeah, I played with it before.
- 2:50But I didn't really know how to write it.
- 2:52You didn't come in as like...
- 2:53It's not like Guido von Rassum came in.
- 2:55It's like, all right, we're going to change things.
- 2:56We're going to fix it.
- 2:57Like, basically, more or less a beginner, a newcomer, was the driving force.
- 3:02And I think that's an interesting part of the story.
- 3:03Yeah, I don't think it's like...
- 3:05So, I guess I came in like the end.
- 3:07It was October of 2011 on Halloween.
- 3:10So, I really didn't get involved in the whole community of Python at Facebook until 2012.
- 3:16And we have internal Facebook.
- 3:18And there's like groups and stuff.
- 3:20So, there was a Python at Facebook group.
- 3:23And there was a lot of people learning Python.
- 3:26And because I picked it up, I guess, quicker than they did, I was able to help them out.
- 3:30And because I was helping them out, people just assumed I knew what I was talking about.
- 3:36That's interesting how that happens, right?
- 3:37Yeah.
- 3:38They don't know you that well, right?
- 3:40They're like, oh, this guy's telling me stuff.
- 3:41So, he must know it.
- 3:42And because I'm like, you know, I think I know what I'm talking about.
- 3:45I go and fix things.
- 3:46And I start fixing enough stuff that I start touching stuff all over the code base and different projects that I'm not involved in.
- 3:54Because I have to touch like either one thing and I don't like the way it looks.
- 3:58So, I'm going to go fix it.
- 3:59And, you know, you somehow turn into before you know what people think of you as the subject matter expert.
- 4:07Yeah.
- 4:08That's really interesting.
- 4:09And I guess in some sense, you sort of fulfill that prophecy by doing it enough until you know.
- 4:16But there is that weird middle ground where people see you that way and you don't really see yourself that way.
- 4:20But you kind of are.
- 4:21Yeah.
- 4:21Yeah.
- 4:22Yeah.
- 4:22Interesting.
- 4:23So, what do you do day to day these days at Facebook?
- 4:26So, I'm on a team we lovingly call the Ministry of the Silly Walks.
- 4:31Initially, it's called the PE Python Foundation.
- 4:34But it's an internal team.
- 4:37And we are taking care of Python as a runtime at Facebook.
- 4:41So, it means ensuring that we update it in a timely manner that we're going to have 3.7 something released in the next couple weeks.
- 4:48That we're going to look at those shared libraries that have existed for 10 years.
- 4:53And nobody like to make sure that we're doing best practices instead of, oh, yeah, well, Ted wrote this in 2008.
- 5:01So, it's still good, right?
- 5:03And you're like, no.
- 5:03Yeah.
- 5:04Maybe we shouldn't be rewriting our own thread pools everywhere.
- 5:07Maybe we should just use concurrent futures or stuff like that.
- 5:10Yeah.
- 5:11Yeah, exactly.
- 5:12Like, that's built in.
- 5:13Let's not reinvent the world.
- 5:14That's quite interesting.
- 5:15I'm sure there's some old stuff like that.
- 5:18So, I guess one question to the extent that you're allowed to answer it.
- 5:22I don't want you to talk about anything you're not allowed to.
- 5:25But when I think of Facebook, I think of PHP.
- 5:28What's the story with Python at Facebook versus, I know Instagram joined, but there was Python at Facebook before Instagram was part of Facebook.
- 5:36The software engineers that run the front end, it's all PHP.
- 5:40But in the back end, people who are like SREs and these system administrators and ops people, they love Python.
- 5:47Or they did back then.
- 5:48So, they wrote all these scripts in Python.
- 5:50They were all these things to, like, push the front end in Python.
- 5:53So, you end up having this infrastructure to keep the site running all written in Python.
- 5:57We've talked about this all the time.
- 5:59So, like, if you have, if your service throws an alarm of some kind, there's another service that reads that alarm and starts running these remediations people have written in code.
- 6:09Well, that code is Python.
- 6:11And it's all written, the service to do it is Python.
- 6:15And the service that distributes that is Python.
- 6:18It's like, basically, it's we filled in the glue was with Python in the back end.
- 6:23Where all the cracks were, it's been filled with Python.
- 6:25Exactly.
- 6:25Interesting.
- 6:26Okay.
- 6:27How interesting.
- 6:27So, I guess that's probably a good segue to your main topic.
- 6:32And because one of the things you started creating in Python 3 there was this infrastructure stuff.
- 6:40So, maybe let's get started by, you know, I just wanted to ask you, I have my own strong opinions about this.
- 6:46But do you believe that there's any debate about whether you should use Python 2 or Python 3 these days?
- 6:51Or is that, I mean, several years ago, that was a solid debate that was raging.
- 6:56Do you think it still is?
- 6:56I don't think it's a debate anymore.
- 6:58Like, there's a site, I don't happen to know, but you could probably find it, that it's the scientific Python packages.
- 7:06And it's like them signing off to drop support for Python 2.
- 7:10Yes, that was, it's like called the Python 3 statement.
- 7:13Yeah, it's crazy.
- 7:15It's done by Matthias Ossier or something like that.
- 7:19Yeah.
- 7:19And there's tons of these projects.
- 7:20I also don't know the name of the URL.
- 7:21Sorry.
- 7:22Yeah.
- 7:22But there's tons of these projects that said that, oh, people just assumed they would always be Python 2.
- 7:26And they're like, no, we're going to get rid of our Python 2 support.
- 7:29Yeah.
- 7:29I think it really changed when, I think when the Python death clock went up.
- 7:35Also, I don't happen to know.
- 7:38But Guido was like, look, let's just make it January, January 1st of 2020.
- 7:44Yeah.
- 7:44Let's not.
- 7:45Yeah.
- 7:45I think it was on the mailing list.
- 7:46He said, let's don't miss words about when this might be.
- 7:49We're going to make it January 1st, 2020.
- 7:51Not, you know.
- 7:52Yeah.
- 7:53I think the only other really good option.
- 7:54Yes, exactly.
- 7:55The other possible one could have been PyCon.
- 7:57So it could have been like a party like right then.
- 7:59But I feel like the sooner the better, honestly.
- 8:02Yeah.
- 8:02It's like, I know we don't have this debate at Facebook anymore.
- 8:05We've won that debate.
- 8:07I do a new hire training class.
- 8:09And it's like, well, if you're already on the fence of whether you're going to use 2 or 3, you're a little late to the debate here at Facebook.
- 8:15We won that debate in 2014.
- 8:18Exactly.
- 8:20You need a time machine to beat that one at this time.
- 8:24Yeah.
- 8:24And there had been a lot of conversations around, well, this library doesn't quite support Python 3, so you can't quite move yet.
- 8:32And all I've seen in the last year and a half is here's one more amazing library that's Python 3.5 or 3.6 because it's using certain types of type annotations and async and await and so on.
- 8:42It really feels like the argument and the evidence has shifted that you're being left behind with all these cool libraries, not stuck because of these cool libraries.
- 8:52So the URL that you're looking for is python3statement.org.
- 8:56That's a good one about the scientific ones.
- 8:59Okay.
- 8:59I agree with you.
- 9:01I think that's great.
- 9:02I remember, I think this was you.
- 9:04I saw this around on Twitter to the effect of when Python 3.6 shipped, you said within two days, Facebook was running Python 3.6 in production.
- 9:13Was that you?
- 9:15Am I remembering that right?
- 9:16It may have been Lukash.
- 9:18It may have been Lukash, yeah.
- 9:20I may have said that, but we were very aggressive on 3.6.
- 9:24We've slowed down a bit because it's gotten more complicated, but we're going to be 3.7.
- 9:30And I'm trying to push internally that we get these things released quicker than the external release schedule so that we don't build up that layer of, oh, people have snuck in internal patches or something.
- 9:43One of the things you talked about that I thought was interesting is basically people get stuck on the idea of this is going to be an impossible problem to solve and we just can't do the switch.
- 9:55But once you've made the switch from 2 to 3 and then 3, 4 to 3, 5, like this starts to become a habit.
- 10:02You're like, oh, yeah, we just do that when a new one comes out.
- 10:04Is it sort of feeling that way now?
- 10:06Yeah, we've gotten to the point because we don't support multiple versions of 3 at Facebook and we never supported multiple versions of 2.
- 10:12You just kind of you got moved along whatever the slow pace that the compilers on the team would push things out.
- 10:20But for 3, it's just if we break you going to 3.7, it means you need to fix your code.
- 10:26It's your problem, right?
- 10:28Yeah, it's your problem.
- 10:28We're going to let you, we're not going to do it by purpose.
- 10:31Like on purpose, we're not going to like, we'll let you know, we'll try to fix it.
- 10:35But if we can't, we're going to involve you because we don't support multiple versions of 3.
- 10:39We're all going to be pushing forward.
- 10:40You know, we don't want to be, we don't ever want to be stuck in a situation like we were with 2.
- 10:45Right.
- 10:45I think it's a really interesting lesson.
- 10:47You were like, well, we were badly stuck.
- 10:48And so now we're going to be very aggressive and never getting stuck again.
- 10:52So your original talk, so you've given two presentations at various PyCons about this, one at PyOhio 2016 and one at the latest PyCon US in 2018.
- 11:02Your original one was entitled Rules for Radicals.
- 11:07Why the radicals identifier?
- 11:08What was radical about all this?
- 11:10You know, when you're trying to think of a topic, the name of your talk, you try to want to get something that will make the conference team get it.
- 11:18And then you have to kind of get it approved internally.
- 11:20And I think I had three different topics.
- 11:24I think one of them was, we used to call it like lies.
- 11:27And there's basically about lying to people to get for their own good.
- 11:32But like, yeah, Tom's like, you can't say that.
- 11:34I was like, okay, well, how about Rules for Radicals?
- 11:38Because it's like that.
- 11:39I've never read the book.
- 11:40I've read Epsirps from a little ago.
- 11:43But it's like, it's all about making change.
- 11:47So I was like, what?
- 11:47It's kind of perfect for my talk.
- 11:49My talk's kind of about like driving change from a position of no power.
- 11:52Right.
- 11:53I think that the no power aspect is one of the super interesting aspects.
- 11:57So many companies and people tell me that like at our company, we can't, we're still on Python 2 because no one has decided.
- 12:03And one of the really interesting things is the Facebook engineering culture and this aspect of sort of earned authority, I guess.
- 12:14Like you don't really have authority, but you start answering questions and helping people.
- 12:17And you're like, oh, that person knows.
- 12:18So I'll listen to them.
- 12:19So maybe talk a little bit about the culture and how that worked there or still does.
- 12:25Yeah.
- 12:26It's a very, it's a great place to work.
- 12:28So if you're on the fence about working for Facebook, just work for Facebook.
- 12:32It's great.
- 12:32But the thing is, it's like it's engineer led.
- 12:36So a manager or someone in leadership never comes and says, oh, we're going to use this technology.
- 12:40We're going to use Twisted or we're going to use Django.
- 12:43No, it's usually, it's engineers say, you know what?
- 12:46If we use this module and they convince their engineers next to them that cross the hall down the street in Dublin, Ireland, and they all start using this thing, we start using it.
- 12:56And it's like you have to build up consensus by having a good idea because nobody has the like dictatorial thing.
- 13:06Like we're going to do it this way.
- 13:07Right.
- 13:07There's not an on high statement that we're going to be using this technology or that technology.
- 13:13It's just like, all right, you all are smart engineers.
- 13:15These are the problems.
- 13:17These are our goals.
- 13:18Make it happen.
- 13:19Exactly.
- 13:19It's like this is, and then I go to these engineers and be like, look, I can have an argument.
- 13:24This is what I think we need to do.
- 13:25And if, and you're like, we should, you know, we should go to Python three because it is, it is looking this way.
- 13:32It's going to be the future.
- 13:33And at the time it was very sketchy.
- 13:35Like it may not have been the future, but now we're no, we've, we clearly made the right decision.
- 13:42It's like, once we like, look, do we want to be stuck in the old age or do we want to be able to keep moving forward?
- 13:49Cause it's like, if we don't make a decision now, we need to like prepare for the other case.
- 13:54Right.
- 13:54And by the time that argument gets settled, it could be really painful to turn a big ship of technology like Facebook.
- 14:02Right.
- 14:03Yeah.
- 14:03So we needed to get started early.
- 14:07This portion of talk Python to me is brought to you by Linode.
- 14:10Are you looking for bulletproof hosting?
- 14:12That's fast, simple, and incredibly affordable.
- 14:14Look past that bookstore and check out Linode at talkpython.fm/Linode.
- 14:19That's L I N O D E.
- 14:21Plans start at just $5 a month for a dedicated server with a gig of Ram.
- 14:25They have 10 data centers across the globe.
- 14:28So no matter where you are, there's a data center near you.
- 14:30Whether you want to run your Python web app, host a private Git server or file server, you'll get native SSDs on all the machines, a newly upgraded 200 gigabit network, 24 seven friendly support, even on holidays and a seven day money back guarantee.
- 14:46Do you need a little help with your infrastructure?
- 14:48They even offer professional services to help you get started with architecture, migrations and more.
- 14:54Get a dedicated server for free for the next four months.
- 14:57Just visit talkpython.fm/Linode.
- 15:02What are some of the things that you felt like came out in Python 3 that subsequently came out and you're like, oh, this is one of the things that were really important to us that we didn't know, but we knew things like this would be available if we did this.
- 15:17Well, you know, it's like, I think early on, because like when we were wanting to go to Python 3, it was still Python 3.3.
- 15:25It was still, most people don't consider Python 3 worth anything at all until like 3.4 or 5 came out.
- 15:31And some would probably say 3.6.
- 15:33But I think I was even on the fence to a certain point.
- 15:38I was very much in the two only school.
- 15:40But I went, I was really in, because, you know, we all know Python, we have this GIL.
- 15:45We, unless we're doing IO bound work, we're really handicapped in the single thread or multi-thread for CPU bound tasks.
- 15:53And I was, being a new person in Python, I wanted to solve this solution.
- 15:57So it was like async.
- 15:58Async's the solution.
- 15:59And at the time, I was a very big G event person.
- 16:01You know, I looked a little bit about Twisted, but Twisted, I was still new to the language, and it was just too confusing for me.
- 16:07Right.
- 16:08It is a little different, yeah.
- 16:09But I went to a talk by Guido when he talked about Tulip, which is what we call asyncio, or what was called asyncio now.
- 16:15And I just like had this epiphany, like all this stuff, because like I'm writing, I'm writing libraries for people to use internally.
- 16:23And if they have not, if they have decided to use Twisted, they couldn't use my library if I wrote it in G event.
- 16:28Or if I wrote my library in Twisted, they couldn't use it in G event.
- 16:31Or they had to like kind of make a religious decision about which framework they were going to use, because they were very opinionated.
- 16:38Right.
- 16:38So all of Python's async capabilities was like these random grassroots projects.
- 16:43Yeah.
- 16:43And none of them had anything to do with each other.
- 16:45None of them talked to each other.
- 16:46Right.
- 16:47Exactly.
- 16:47And I had this, it was like, wait, if this is in the standard lib, and people can use it, and they will, because it's easy enough to use, that means that we could all standardize around it.
- 16:57And I think the day after, like Tornado, which has got an async framework around it for doing these websites, it posted abilities to tie into the event loop.
- 17:08And then it was like, well, if Twisted did it, and now we have Twisted, you can run your Twisted application or run async.io on a Twisted event loop and vice versa.
- 17:16So you can like, we're in this magic world where I, as the library writer, don't have to make the religious decision for the application writer, that they can decide to be like natively twisted.
- 17:27Right.
- 17:28Because that's the wrong direction.
- 17:30Right.
- 17:30And I was like, we need to go to Python 3.
- 17:33We have to have async.io.
- 17:35You know, because I knew async was the future, but there wasn't a clear path in Python 2.
- 17:40But in Python 3, there was a path.
- 17:44Yeah, and I feel like the async story in Python is getting a lot better.
- 17:49I mean, you talked about async.io, and then we have like a cleaner API with async and await.
- 17:53Yeah.
- 17:54We have a bunch of these cool web frameworks coming along based on things like uvloop, which, you know, replace the async.io event loop and all sorts of cool stuff happening there.
- 18:02Yeah, there's like even reimagining of async.io using async await.
- 18:05There's two competing frameworks for async.io.
- 18:09And someone has already written compatibility drivers so you can basically patch them to each other.
- 18:15So if you have a library written in the email, you can use them.
- 18:17And I was like, that is the future that I saw back in 2013.
- 18:21Right.
- 18:22And I think it's coming to play.
- 18:26And that was what I really, I was like, oh, we have to do this because, you know, I'm tired of making these janky geovint libraries nobody can use.
- 18:34I want to make so that people can actually start working with.
- 18:36Yeah.
- 18:37And I can definitely see that at Facebook.
- 18:38Like you're building these libraries and you want people to adopt them.
- 18:41Well, you know, you don't want to have that be a real small group.
- 18:44You had an interesting.
- 18:45So I think some of those additional reimaginings are probably Trio, Curio by David Beasley.
- 18:51Trio, Curio.
- 18:52Someone has already written compatibility to make them talk to async.io applications.
- 18:56And I don't know if they can talk to each other, but I've seen one that talks to either or.
- 19:00Right.
- 19:00You can probably chain it through like.
- 19:01Yeah.
- 19:02Go to async.io to Curio or whatever.
- 19:05Right.
- 19:05Yeah.
- 19:06All right.
- 19:06So I think one of the really interesting parts of this journey is to sort of go through the years because kind of like we started off, like the view of Python 3 now is really different than the view of it five years ago.
- 19:20Exactly.
- 19:20There's absolutely advocates and people pulling for it, but it was a different world.
- 19:25So want to take us back to 2013 and sort of start there?
- 19:29Yeah.
- 19:30I think like it was like back in 2013, there was a big movement of the let's just stay in Python 2 forever.
- 19:39Like I guess that I think there was this undercurrent that the core team of Python, of CPython had lost their minds.
- 19:46And then Python 3 was ridiculous.
- 19:48And it was a very, I think I may have, I was new to the language.
- 19:52So I just like, I just picked whatever everybody else was using at Facebook, which was 2.6.
- 19:57Well, and you look around, like on Stack Overflow, there were people saying never move to 3.
- 20:01Like that's just a waste.
- 20:02I mean, there was a lot of that sentiment happening.
- 20:05People were like, oh, don't bother learning Python 3.
- 20:07And you're just like, you know, and then when I learned it, it was just like, why did we, you know, it's not that bad.
- 20:14Honestly, I feel like the differences are so small.
- 20:17Sort of modern 2.7 and Python 3 is like, well, you put parentheses on the print statement and like a few other handful of things that they're, none of them are like massive conceptually differences.
- 20:28Right.
- 20:28It was the libraries.
- 20:30Yeah.
- 20:30The libraries.
- 20:31Cause like, especially cause in, in 2.6, like we had to change the way you did exception catching.
- 20:39The change, I don't, I don't even remember what it was, but I remember we had to fix it because it was like, it got deprecated by the time 2.7 came out.
- 20:45It no longer worked.
- 20:47So it had to fix stuff, but it was like, there were so many old crusty things that had been running on like Python 2 for like 10 years.
- 20:54So people were just like, no, I don't want to do it again.
- 20:58You know, they were just like.
- 20:59Well, and maybe the person who wrote that part is not even at the company anymore.
- 21:03No one wants to touch it.
- 21:04Exactly.
- 21:05They don't want to, they don't want that thing to become their problem.
- 21:08Right.
- 21:09They just want to work on their stuff.
- 21:10It's the same for a lot of third party, third party libraries that the person maintaining it just disappeared.
- 21:16We don't know if he's dead or she's dead.
- 21:19We just, they don't respond to emails or, you know, and their project is just kind of withered away.
- 21:25Yeah.
- 21:26People use it.
- 21:26Retired.
- 21:27They don't care about it.
- 21:28Maybe they've moved on to Node.js or whatever.
- 21:31Right.
- 21:32But for whatever reason, they don't care.
- 21:33And the crazy part, some of these modules are super popular.
- 21:36Yeah.
- 21:37Like the MySQL driver.
- 21:38Yeah.
- 21:38That one, that one, that one became basically unattended.
- 21:42Yeah.
- 21:42Wow.
- 21:42How interesting.
- 21:44I can certainly see like maybe some burnout as well.
- 21:47Right.
- 21:47You're just like, I just got to take a break.
- 21:50If no one else is going to help, this is just going to sit here.
- 21:52Cause you know, you gotta, gotta live your life.
- 21:55Right.
- 21:56Your goal is not to just provide software to the world.
- 21:58You're a human.
- 21:59Right.
- 21:59Exactly.
- 21:59All right.
- 21:59So you said back in 2013, you're kind of like, I would love for this to be a thing to use Python 3, but I don't think it's going to happen.
- 22:07Right.
- 22:08You actually had access to Python 3, theoretically, as an option.
- 22:12But in practice, it was all messed up, right?
- 22:14Yeah, like the binaries were there for Python 3.
- 22:17You could run them and get the interpreter.
- 22:20But we have kind of a complicated environment.
- 22:23We have build systems that go and build C++ dependencies for compiled modules.
- 22:29And they kind of make PEXs, which is basically, it's like an archive of all your code that
- 22:36you can distribute to a machine and just kind of run it like a binary, but for Python.
- 22:39Right.
- 22:40It's like a hacked zip file that's executable.
- 22:43Exactly.
- 22:43And it bundles up all your definencies.
- 22:45But it does not bundle up the Python runtime, right?
- 22:48It's effectively like a virtual environment, kind of.
- 22:50Yeah, it's a deployable virtual environment.
- 22:52And the system that we had that built that didn't work.
- 22:55So it would call out to Python 2 to run, to basically import your code and do a .compile
- 23:01using the compile module to get the PYC.
- 23:05And then we would just pack up the PYCs to make this PEX thing.
- 23:07And of course, it was like, you would give it Python 3 code and the PyTor compiler would
- 23:12blow up on it.
- 23:13And you're just like, great.
- 23:14And then once you fix all that, it's like, you get this PEX and you run it and it just
- 23:18seg faults.
- 23:19Or not just seg fault.
- 23:20It just stack traces like in the early guts where we're setting up the environment.
- 23:25You know, you're like, oh, great.
- 23:27It's deeply down broken.
- 23:30This is not my problem, but it's not going to run, right?
- 23:32It's like deeply broken.
- 23:33And it's like, I could have just thrown my hands up at that point, but like, this is
- 23:37never going to work.
- 23:38And I may have for a week or so, but like, once you figure out that nobody's going to fix
- 23:43it.
- 23:43You do talk about that sort of be the change you want to see in the world.
- 23:47And eventually you're just like, well, if no one else is going to do it, it's going to
- 23:49have to be me, right?
- 23:50And it turns out, yeah, like if you want something to change and you wait around for
- 23:54someone to do it, it may never happen.
- 23:56It likely will never happen.
- 23:57Yeah.
- 23:57Likely will never happen.
- 23:58So I started fixing it and got like, I would get it to compile and then I would, I put up
- 24:04a diff and have to like go chase down people to like, who knew kind of the system I was
- 24:08messing with to do the building.
- 24:10Like, Hey, could you review this code?
- 24:12Be like, here's my unit test.
- 24:13You know, I built some Python three stuff and it ran like, okay, let's land it.
- 24:18You know, and then, then the thing that would happen is like the next week, somebody would
- 24:22have committed some other Python two only code and you're just like, Oh God, this is never
- 24:26ending.
- 24:26Yeah.
- 24:27Yeah.
- 24:27So you talked a little bit about one of the challenges is you've got to convert the libraries
- 24:32you depend upon that are internal Facebook libraries to be two and three compatible.
- 24:35Yeah.
- 24:36And then you also talked about like this regression problem, like constantly challenges you.
- 24:42I guess that wasn't until the next year, but that was a problem, right?
- 24:46Like you would, you would make your stuff work.
- 24:48And then somebody would change a base library that wouldn't work.
- 24:51So in 2014, like 13, like people didn't care about Python three.
- 24:55So like, they knew that we've kind of, like, we kind of said that it's probably the future.
- 25:00We should move to it.
- 25:01Like, I think people all kind of had this sense that eventually we'll have to move.
- 25:04Like, if you want to Python three support, they would be like, well, we don't have the
- 25:08roadmap for that.
- 25:09Like, we don't have the manpower to work on that right now.
- 25:12So you just go and fix it.
- 25:13Right.
- 25:13We can't stop for six weeks and like rewrite or six months and rewrite this.
- 25:18Right.
- 25:18Well, most libraries, it wasn't, it was like, it was a handful of things you would fix.
- 25:21Yeah.
- 25:22And then just like, oh, they're handling, it's like bytes and string doing wrong, but
- 25:26you would fix it.
- 25:27And people would, no, people aren't running against Python three, so they just break you.
- 25:31So I figured out, it's like, well, you know, that's what I think I really got.
- 25:34I really accepted the concept of unit test driven development was that when I went
- 25:40out and fixed these things, I immediately inject that, I immediately put a test to make sure
- 25:44they stayed fixed.
- 25:45Yeah.
- 25:46I'm not going to fix this again.
- 25:48And that, that really stemmed the bleeding because when the next, when the next person
- 25:54came to write a code against this library and change something, they would immediately break
- 25:58my unit test.
- 25:58They're like, oh, well, let me fix this.
- 26:00Right.
- 26:00Yeah.
- 26:01So that's one of the things that you talked about is basically, instead of you playing
- 26:06whack-a-mole and constantly chasing these problems around, you, you sort of found a way to get
- 26:12the build to work better.
- 26:14And somehow you managed to get the build system to, to verify Python three behavior without really
- 26:22the authority, just kind of like, yeah, this is for code quality.
- 26:26We're going to do this as well.
- 26:27And people are like, okay, great.
- 26:28Yeah.
- 26:29So we had like, everybody knows about flake eight.
- 26:32It lints your code and it, you can run, like we already had a PEP 8 linter.
- 26:36We actually had our, you know, we were kind of organized.
- 26:40We actually made sure that all of our Python code kind of looked the same.
- 26:42We would hit, pepe.
- 26:45People may not, but argue, heck, how do I fix this?
- 26:48But, to make the campaign happy, but some various teams would just run their own linters.
- 26:53And I noticed myself, I would commit code and maybe like I had to fix something during code
- 26:58review and I forgot to run the linter on it and it would make it into, into production.
- 27:03And it would break a test immediately because it was like a syntax error or something silly.
- 27:08And, you're like, oh, it's so stupid.
- 27:11How did I miss this?
- 27:12I was like, well, we're not running linters automatically, but there are linters rather than language like
- 27:17PHP or P bus plot.
- 27:18There's no space that these linters that ran.
- 27:20I was like, well, like we're using fabricator, which is this open source code review tool.
- 27:25And it had a thing to tie into, flake eight.
- 27:29So I went ahead and set it up and I was like, well, if I can run flake eight under Python three and under Python two,
- 27:38I would know if people, if I made like an obvious break to two or three.
- 27:43And I did that and it was probably, it was really hell for a while for a lot of people.
- 27:48Cause you were getting double the amount of flint warnings in your code review.
- 27:52You'd get them for both two and three.
- 27:55And I spent a lot of time to tell people it's like, okay, explain to people what's going on and why they shouldn't go secretly disable my linter.
- 28:03And, because it was like, this will make our code better quality and people like, they were already running these linters.
- 28:10They were like, oh yeah, this is great.
- 28:11Can we actually make them to do?
- 28:13Woo gosh, did that.
- 28:14And that was, that didn't happen to like 2016.
- 28:17I don't think.
- 28:17But right.
- 28:19And now you're almost to the point where you do it by turning off the version two one.
- 28:23Well, no, like I think, well, gosh, basically if the messages were the same, he didn't print it.
- 28:27They're like, he didn't print the version.
- 28:28He said, pie flakes.
- 28:29This is the message kind of thing.
- 28:31Yeah.
- 28:32So another thing that you talked about doing is using the dunder future module to at least stop writing only Python two code, right?
- 28:42Like you imported the print function and division and so on.
- 28:45But this was like one of the early, early things, even when there was not actually a path, right?
- 28:49Yeah.
- 28:49We had a linter, someone, he wanted to prolong the use of his two eight.
- 28:54He wanted to keep writing two eight and hopefully it live longer than he thought.
- 29:00Like maybe we switched to three and like the next year.
- 29:03He didn't really know, but he wanted to, he wanted Python two to behave more like three.
- 29:07And that was pretty wise actually.
- 29:09And that got us very far at Facebook.
- 29:12And he set up a linter to force everybody to do it.
- 29:14And it caused a lot of pain at the time, but people just fixed.
- 29:17Like if you make it like this, like a commit hook or something, people just try to make it happy.
- 29:22And if they can't make it happy, then they complain.
- 29:24That's pretty interesting.
- 29:25Yeah.
- 29:26There was no real message from on high to say we're using Python three.
- 29:30But when the linter says, oh, this doesn't work right because of Python three.
- 29:33Well, all right, we'll just fix that.
- 29:34Yeah.
- 29:34It's like, oh, why, why does my import not work?
- 29:37Oh, well you're using, you can't use these relative imports without being explicitly relative.
- 29:41And yeah, it took a while.
- 29:42The Unicode literals thing probably ate up a lot of time, but we solved that back in like Python two.
- 29:47And people internalized it.
- 29:49It's like, if you wrote good Python two, you were using the future imports.
- 29:53Right.
- 29:53Yeah.
- 29:53That's really cool.
- 29:54Another thing you did back in 2012, sorry, 2014, when this was kind of a still just a little micro project was in the build system or just all the environments.
- 30:06You made sure that six and two to three were sort of omnipresent.
- 30:09What was the story of that?
- 30:11Well, we had these linters in place and people were always like, well, how do I fix this thing?
- 30:15That would spend a ton of, a lot of churn on the message board was like, okay, I understand this is a problem, but how do I fix it?
- 30:22And it's still working two and three.
- 30:24And it was like, well, you can do this extra code or, hey, there's this thing, this module called six or this module called future that you can import.
- 30:33And it does.
- 30:33So, and people like, well, okay, so I have to go add this to my build dependencies.
- 30:37And you're like, or they would get mad.
- 30:39It's like, oh, it's not there automatically.
- 30:41So it's like to make it easier to like lower that barrier.
- 30:44I just, I tripped the system into injecting it to everybody's build configs so that your pecs that when it gets produced would have six and the future module.
- 30:55That's really cool.
- 30:56So that was, they could just do this code and then they have to change anything about their system.
- 31:00It was like, it was just, that was the way you could write it.
- 31:02It was like, it was part of the standard lib.
- 31:04That's great.
- 31:04Maybe for folks who don't necessarily have battle scars from the Python two days, tell them what six is.
- 31:11So six is like the first link, the first library for converting two to three.
- 31:17It allows you to do things that are completely different from either language.
- 31:21Like if you're setting a meta class on a class, it's different.
- 31:25Like the syntax is different, Python two and three.
- 31:28So six provides you a decorator you can call that you can wrap your class with and it'll, it'll set the meta class.
- 31:34And six has a thing where it like, cause there are modules that moved between two and three.
- 31:39And six has a thing where you can import from a certain move location.
- 31:43And there was also this thing called Python.
- 31:45It's called the future module.
- 31:47From that, you can, it's, it's kind of like six, but it's a little different.
- 31:50Sometimes it's, sometimes it's nicer code.
- 31:52Sometimes it doesn't.
- 31:53I use both.
- 31:54So I don't have to force that decision on people.
- 31:56You know, it's like, I just want to make people happy.
- 31:58Give them all the tools.
- 31:59All the tools.
- 32:00You want a crescent wrench.
- 32:01You want a socket wrench.
- 32:02Whatever.
- 32:02Just get it to run a load.
- 32:03Before six, you would have to write these if statements where you would say like, if sys.version.
- 32:09Or info, like, cause it's the main topic, like offset zero equals three.
- 32:15You would do some code.
- 32:16Like, this is a lot of garbage.
- 32:18And six is like, oh, just say from six import pi three.
- 32:21And you say, if pi three.
- 32:23And you're like, oh, that's better.
- 32:24You know, so.
- 32:25Yeah, it's much better.
- 32:26This portion of Talk Python To Me is brought to you by Rollbar.
- 32:32Got a question for you.
- 32:33Have you been outsourcing your bug discovery to your users?
- 32:36Have you been making them send you bug reports?
- 32:39You know, there's two problems with that.
- 32:40You can't discover all the bugs this way.
- 32:42And some users don't bother reporting bugs at all.
- 32:45They just leave, sometimes forever.
- 32:47The best software teams practice proactive error monitoring.
- 32:50They detect all the errors in their production apps and services in real time and debug important errors in minutes or hours, sometimes before users even notice.
- 32:59Teams from companies like Twilio, Instacart and CircleCI use Rollbar to do this.
- 33:04With Rollbar, you get a real-time feed of all the errors so you know exactly what's broken in production.
- 33:10And Rollbar automatically collects all the relevant data and metadata you need to debug the errors so you don't have to sift through logs.
- 33:17If you're using Rollbar yet, they have a special offer for you and it's really awesome.
- 33:21Sign up and install Rollbar at talkpython.fm/Rollbar.
- 33:26And Rollbar will send you a $100 gift card to use at the Open Collective, where you can donate to any of the 900 plus projects listed under the Open Source Collective or to the Women Who Code organization.
- 33:38Get notified of errors in real time and make a difference in open source.
- 33:41Visit talkpython.fm/Rollbar today.
- 33:44You had sort of summarized each year your thought about how likely this Python 3 world might be.
- 33:53In 2013, you said, not going to work, not going to be a thing probably.
- 33:57Yeah.
- 33:572014, you're like, highly unlikely.
- 34:00So then one of the really interesting things that caught my attention about your talk was in 2015, you started getting involved with teaching Python at Facebook to new hires.
- 34:10Yes.
- 34:11Talk about that.
- 34:12So, yeah, we had this class because we've already talked about we have this kind of complicated environment we build.
- 34:18We have the PEC system, the fake zip file with the binary on top of it.
- 34:23And we have all the C++ that's compiled in with you.
- 34:26And we have a whole process for getting external libraries into it so it can be linked with those C++.
- 34:32There's a lot.
- 34:34And coming with just an open source knowledge of Python, you would be lost.
- 34:38So we have this class that all boot campers, at least for touch engineering, can learn about Python and learn, hopefully get rid of all these roadblocks so that they can hit the ground and just produce some Python code that does some more work.
- 34:51Here's what Python at Facebook looks like.
- 34:53Here's how you work with our infrastructure from Python.
- 34:55Stuff like that, right?
- 34:56Because that's where they're going to learn that, right?
- 34:58Yeah, we'd warn them about the linter.
- 35:00They'd be like, oh, yeah, the linter's going to hit you.
- 35:02And this is how you fix it.
- 35:03Like, we talk about the four futures.
- 35:06And that was already in there when I started teaching classes.
- 35:09Like, what if we start teaching people that we expect them to write Python 3?
- 35:13And secretly, that was my secret.
- 35:16Because it wasn't really true.
- 35:18But the new hires didn't know that.
- 35:21Right.
- 35:21And it was feasible.
- 35:23Yeah.
- 35:24Like, they could write Python 3 at this point.
- 35:25You'd done enough work to get the infrastructure in place.
- 35:28So it would work.
- 35:29Yeah.
- 35:29So it's like we say, oh, you're expected to write Python 3.
- 35:32And if you have any issues, feel free to fix them yourself if you can.
- 35:37Otherwise, reach out to us.
- 35:39And it was like there was like a couple friends, friends of Python 3.
- 35:42That was like a secret group that we were trying to push it forward at this point.
- 35:47That you could reach out to us and we'll help you.
- 35:50Or post in the message board.
- 35:51And we'll help you with your problem.
- 35:54That's awesome.
- 35:54We were gathering like a wiki.
- 35:56Yeah.
- 35:56And to be clear, when you say if you run into a problem, just fix it.
- 35:59That isn't with your code necessarily.
- 36:01That's like you try to use one of the libraries.
- 36:02It doesn't work in Python 3.
- 36:04Well, you're expected to go kind of try to make that dependency that we have work in Python 3.
- 36:10And just get them to sort of own the foundation of all the Python, right?
- 36:15Yeah.
- 36:15At Facebook, there's this saying.
- 36:17It's like nothing is nobody else's problem.
- 36:19Or it's not something along those lines.
- 36:22But it's like there's this mentality that something's broken.
- 36:26You don't just immediately go and find out, oh, well, who owns this code?
- 36:29I'm going to go complain.
- 36:30Like, no.
- 36:31See if you can fix it.
- 36:32Because if you fix it within like five minutes, you'll be ahead of your schedule if you had to go and like track down a person.
- 36:38And like complain to them and get them to release something on their schedule.
- 36:42You can just fix it.
- 36:43Put up a little diff and keep working.
- 36:45And if we taught people to just do that, like we kind of were tricking them to do work for us.
- 36:51Yeah.
- 36:52Yeah, there's a lot of lessons of sort of distributed responsibility, distributed work in here through the linters and through this education component.
- 37:00And it more or less worked, right?
- 37:02People started writing Python 3 code.
- 37:03Yeah, they would join their teams after boot camp.
- 37:06And they would say, hey, how come we're not using Python 3?
- 37:09And the people there, they didn't have a good answer.
- 37:11And the new people would start writing Python 3.
- 37:14And so, like all these teams started coming out with like, hey, we're putting out Python 3 for our new project.
- 37:22Because that's all the new people want to write.
- 37:24I think that's great.
- 37:27So, 2015, you dubbed the year of maybe.
- 37:30Maybe it's going to work.
- 37:31Starting to look good.
- 37:32And then 2016, something pretty major happened with Instagram.
- 37:37Instagram is one of or not the biggest Django deployment.
- 37:42And they actually did a whole keynote about their move to Python 3.
- 37:47But that was a big deal, right?
- 37:48Yes, that was huge.
- 37:49The thing was like, well, Instagram was Python 2 at the time.
- 37:53And it was like, do we, does Instagram stay on Python 2?
- 37:57And we were, it was like me and Łukasz Longa were like, he really fought hard for us.
- 38:03Like, no, you guys have to move to Python 3.
- 38:06And if you don't move to Python 3, you should just give up the ghost and go to PHP.
- 38:10And they're like, whoa, whoa, whoa.
- 38:12They're like, just a second.
- 38:13We can find it.
- 38:13Actually, you know, it's at Facebook.
- 38:15That's a good sound business argument to say.
- 38:17It's like, you should probably use PHP.
- 38:19We've invested a lot of money in that.
- 38:20And it runs like the biggest website in the world.
- 38:22Like, I think that makes sense.
- 38:24And they're like, oh, let's just stay with Python.
- 38:29You know, we don't want to like lose all of our developers.
- 38:32Yeah, that's really interesting.
- 38:33There was a keynote, I think, at the 2016, 2017, PyCon, about this.
- 38:39And it was really, really just such a step-by-step practical way for large organizations to move.
- 38:47Because it wasn't just Instagram upgraded to Python 3.
- 38:51They also changed Django, major Django versions.
- 38:53And they did all of that without branching in production.
- 38:58Yeah.
- 38:58Right?
- 38:59Like, that is just incredible.
- 39:01It talks to the power of tests as well.
- 39:03Like, this is all unit test-driven, where they would take a test and they would make it work on Python 3.
- 39:10Or like, change the code enough to where it would still pass on 2 and 3.
- 39:13Right.
- 39:15And I don't know how they did Django.
- 39:17That was like, that's crazy.
- 39:20That's another level.
- 39:21But I think it also involves unit tests.
- 39:23It must have, right?
- 39:24But still, that's impressive.
- 39:26Without branching in production.
- 39:28Yeah.
- 39:28That's crazy.
- 39:29That's really super impressive.
- 39:31And every time I hear someone say, oh, we can't move to Python 3.
- 39:35Or it's totally unpractical.
- 39:36Yeah.
- 39:37We're too big to move to Python 3.
- 39:38Yeah.
- 39:38It's like, well, here's a roadmap and a pretty insane example.
- 39:44You know, the rest of the stuff is not as visible what you're working on because it's infrastructure level.
- 39:49But still, you know, also impressive.
- 39:51Another thing that you said happened around 2016 is it became Python 3 by default.
- 39:55What does that mean?
- 39:56Whenever you would, like I talked about their build system, and you had a little script that you would tell it, oh, these are the third party dependencies I need.
- 40:02These are the dependencies that someone at Facebook has written.
- 40:05These are the C++ dependencies I need.
- 40:07And it would, the build system, you would say build, and it would give you the little pecs that you could take to any system of Facebook and it would run your Python code.
- 40:14That can fit if you just, like, copied what the wikis told you to do.
- 40:18It would give you a Python 2 binary.
- 40:20And we had been telling people in the class, a new hard class, that, oh, you should add this thing that says pi underscore version equals three.
- 40:28And you'll get a Python 3.
- 40:29And people are like, oh, why do I have to say that?
- 40:32And we just say, oh, because two, two, I always do default.
- 40:35It was like, there were so many people every day were saying, oh, we'll release this to Python 3.
- 40:40That it was like, the only people that were still writing Python 2 code, they didn't have, they didn't really, they weren't like staunch Python 2 supporters.
- 40:47They were just using the defaults.
- 40:49So I had this like, well, what if we just switch the default, see if anybody cares?
- 40:53And so I sent a message out like, hey, I'm going to switch the default to Python 3.
- 40:57If you think this is a bad idea, say something.
- 40:59And nobody said anything.
- 41:02And people were all like, thumbs up, you know, I like this, this is good.
- 41:05And so I did the switcheroo and I made everybody who's currently in Python 2 explicitly say that they're Python 2 and everybody's Python 3 get rid of their version line completely.
- 41:15And it was just the default was the Python 3 version.
- 41:17And nobody got broken.
- 41:20There was no like major side outages.
- 41:23It just, that was a very smart decision.
- 41:26It was like, look, we were probably at like, probably less than 20%.
- 41:30I think I have a graph somewhere in my talk where it was like, oh yeah, we were way less than 20%.
- 41:34We were not even like 10, but it felt like we were really high because all the new stuff was coming out for Python 3.
- 41:41Right.
- 41:42And then this just, just flipped it, right?
- 41:44All the people who were not setting things explicitly, they didn't care.
- 41:46It just, it changed, changed the tide, right?
- 41:49People who didn't care what version they're using.
- 41:50They just wanted a version of Python that they could, you know, because as long as it wasn't C++, these guys were happy.
- 41:55They just, you know, not having to, they didn't care and they weren't part of this fight.
- 42:00So we just, whatever the default was, they're going to use it.
- 42:03That's really excellent.
- 42:03And a lot of the future work, right?
- 42:05The import, the print function and stuff is kind of what made that work, right?
- 42:09Oh yeah.
- 42:09And like, yeah.
- 42:10So like a lot of the existing modules of people who had already fixed all that future stuff,
- 42:14some of them just imported fine into Python 3.
- 42:17Right.
- 42:18I mean, how often are you like doing crazy, like meta class stuff, right?
- 42:21Like that's not that common.
- 42:22More than we should is the case.
- 42:26Everybody's like, I don't use meta class here.
- 42:28Like maybe you shouldn't.
- 42:29But yeah, it's like, I think in most of the major, like heavily used code paths had already
- 42:35been cleaned up by like me or somebody else.
- 42:38Cause if, if it's a, if it's a major use dependency, it's already been fixed for Python 3.
- 42:44Cause by 2016, we already had a services in production, right?
- 42:48Python 3.
- 42:49Yeah.
- 42:49That's great.
- 42:50So one of the things I think is interesting, there's a quote that you talk about from one
- 42:55of the engineers that sort of touches on this conception that Python 3 is slower.
- 43:00And it says something to the effect of, we just did a very basic two to three on our service,
- 43:05which means they ran the two to three program on the service to just automatically upgrade
- 43:08it.
- 43:09Everything just worked.
- 43:10Now we're using half as much memory and it's 40% faster.
- 43:14Yes, this is true.
- 43:15That's a, that's a true quote.
- 43:16I saw the, I think I may have stamped the diff as being approved and it was like simple.
- 43:21Like it was just like changing the way they catch exceptions.
- 43:25Right.
- 43:26And, cause it's like, I think before it involved, I didn't remember at this point,
- 43:31I've, I've, I've, I've, that's, that's just lost left on my head space, but it was like,
- 43:34it was just basic things that you're like, Oh, that that's easy.
- 43:38Like you didn't even need the tool to change it.
- 43:40It was like, it wasn't, they didn't really have a lot of code that needed to be changed.
- 43:44But, so it was like surprising.
- 43:46There's like, Oh, that's all you changed.
- 43:48And you, you're 40% faster.
- 43:50Really?
- 43:51Yeah.
- 43:51Which speaks to the different runtime, right?
- 43:53The different CPython.
- 43:54Yeah.
- 43:55And for a long time, Python three was a lot slower.
- 43:58And I think still there might be some edge cases that are faster and Python two seven.
- 44:04A lot of it probably has to do with strings, right?
- 44:06Like the different behaviors around strings and bytes and all that stuff.
- 44:09I think it's gotten faster and three six, like they, they, they really like pulled ahead
- 44:14to use less memory and stuff with all the different fixes.
- 44:17But I think that when that thing came out, people were still comparing.
- 44:21It's like three, two and three, three.
- 44:23And they just had, right.
- 44:24That was their argument.
- 44:25And they just hadn't actually updated their benchmarks to use new version.
- 44:30Cause they'd already given up a little Python three.
- 44:31And they're like, Oh, Python three is just too slow.
- 44:33And then it's like, by the time three, five came out, I think that, or that might've
- 44:38been out three, four.
- 44:39But, it was like, it's kind of snuck up and be like, actually the core dev has been
- 44:44working a lot to make this really fast.
- 44:46And that work continues today, right?
- 44:48Yes.
- 44:49Yeah.
- 44:49Python three seven bound function calls.
- 44:52So function methods basically are 20% faster.
- 44:55Oh, I can't wait.
- 44:56In most cases.
- 44:57Right.
- 44:57Like, and that's just three, six to three, seven.
- 45:00This is great.
- 45:00So yeah, it's, it's all good.
- 45:02I'm hoping for next week.
- 45:03If, if Lucas hears this, I'm hoping for next week.
- 45:08Okay.
- 45:08So you had deemed 2016 Python three by default.
- 45:12That was good.
- 45:13And then 27 is sort of overtaking Python two.
- 45:16And one of the things you highlighted then that happened was now Instagram is running on
- 45:21Python three.
- 45:22It has access to this amazing new features that were locked, you know, blocked off like
- 45:27asyncio and in the typing static, you know, type hints and all that stuff.
- 45:31Right.
- 45:31Yeah.
- 45:32It's like, you can say it's like, Oh, you can use typing in Python two, but it's like
- 45:35the types in top two or three are semantically different.
- 45:39Like things that you can do in two, like you may have, they may have different types or
- 45:43they may have the same type, but they're behave differently.
- 45:45So it's like your type formation may not be the same between versions.
- 45:48So we told them to hold off to the winter three.
- 45:51Cause it just made, we'd have to double the work, but yeah.
- 45:55Right.
- 45:55And you don't have it like in the function.
- 45:57You've got it like in, in doc string type format, right?
- 46:00Which is not nearly as nice.
- 46:02Yeah.
- 46:02It's not as nice.
- 46:03And or whatever.
- 46:04Right.
- 46:04Yeah.
- 46:05And people want it to be in line.
- 46:06They want it because if it's a comment, it's gonna like, it's not always going to be correct.
- 46:11So at least with the type annotations, like you would know, like it would, it's like, Oh,
- 46:16I changed the name of the import.
- 46:18It's all going to go fix all the types.
- 46:19But if it was a comment, you wouldn't know that until you decided to actually run the type
- 46:23checker in the early days before we even had a type checker.
- 46:26It was like, we're just putting these types for humans to read.
- 46:28Yeah, exactly.
- 46:29So one of the things that you said around this time is that working in Python was fun
- 46:34again, right?
- 46:35People were super excited about all the new stuff and the new capabilities and it just kind of
- 46:40revitalized people's joy, right?
- 46:41Yeah.
- 46:42It's like, like, I guess because of the whole two, three problem, like people who were, who
- 46:47were like fans of Python were like, they were really negative.
- 46:51They're like, Python's dead.
- 46:53You know, I guess kind of like the pearl is dead.
- 46:55It kind of in, in their, in your mind though, if, if you're in your mind, you're not switching
- 46:58to Python three.
- 47:00It is dead.
- 47:01Yeah.
- 47:01For them.
- 47:02Well, people have stopped working on this for, since 2008, right?
- 47:06Like it's, it's just nothing is happening anymore.
- 47:09But once you're over that hurdle, all of a sudden like, Oh, look, this pool is warm.
- 47:14It's fun here.
- 47:15So like all this for a while, it's like, let's go to go.
- 47:18Let's rewrite everything and go.
- 47:19And I guess if we had decided to do that, we would still be working on it for, till the
- 47:23next four years.
- 47:24But, luckily it's like, people were like, Oh wait, there's all this good stuff.
- 47:30All this cool stuff in Python three, like Instagram found out with ACCO.
- 47:34It's like, this is good stuff.
- 47:36And people would convert just to have that stuff.
- 47:39Yeah.
- 47:39And I think that's the main argument now is there was so much that is inaccessible to Python
- 47:44two.
- 47:44That is so exciting and interesting these days.
- 47:47It's just crazy to not just do the simple work to, to get onto that side where you have
- 47:52that as an option.
- 47:52Yeah.
- 47:53And what I would tell people in my bootcamp, I was like, if you're going to write a library
- 47:56for Python users, don't write Python two support for one, it's going to waste your time.
- 48:01Cause it's just, it's extra load for you.
- 48:03You have to make sure it works in both languages.
- 48:05You won't be able to use the new stuff.
- 48:07And yeah, I'm not telling them this, but it means that those Python two users will have
- 48:11to move to three to use your new good stuff.
- 48:13Yeah, absolutely.
- 48:13And there's some realistic, reasonable examples for that.
- 48:18Like the Django team talked about how they, they were able to drop a ton of code.
- 48:22And the Jupyter team is a NumPy.
- 48:25I can't remember, but some stuff talked about in the Python statement that we talked about
- 48:30earlier.
- 48:31There's significant amount of simpler code and not just less code, but really, truly simpler.
- 48:38And they say that that helps bring on new people as contributors, right?
- 48:42They don't have to figure out how to write it in two different languages, sort of versions.
- 48:46They're like, there's one thing to write.
- 48:47This is how you do it.
- 48:48Oh yeah.
- 48:48The compatibility layers in some of these modules were horrific.
- 48:52You know, that's why a lot of people were angry.
- 48:55It's like, because the languages were in certain low level cases, languages were different enough
- 49:00that you would have something that would be simple.
- 49:02A couple lines would turn into like 20 lines, you know?
- 49:06So it worked in both languages.
- 49:07Yeah.
- 49:08Like, why can't I just type import this thing?
- 49:10It's like, well, you see, you got to do the sign.
- 49:12We decided to rename it.
- 49:14Yeah.
- 49:16Yeah, exactly.
- 49:16I understand.
- 49:18Okay.
- 49:18So that was 2017.
- 49:19And 2018, you have declared victory.
- 49:22Is that right?
- 49:22Yes.
- 49:23Yeah.
- 49:23At this point, we know what Python 3 has won at Facebook.
- 49:27And I think it's won in the world.
- 49:28Like, there's...
- 49:30I don't think it...
- 49:32Even like with Guido's retirement from the core team, I think it's a done deal.
- 49:37You know, nobody is...
- 49:39There's no strong figure for the Python 2 camp at this point.
- 49:43Yeah.
- 49:44I know there are plenty of people hanging on, but I think there's just so many reasons
- 49:49to move now.
- 49:50It's much harder to make that as a reasonable argument.
- 49:53It's just like, well, I just haven't done it yet.
- 49:56It's kind of a...
- 49:57It's a hard place to be in.
- 49:58It's like, oh, it's like, we're going to be in a debt thing.
- 50:01And, you know, maybe somebody will take care of it.
- 50:04That's not a good vision for your future.
- 50:07If you're staking your entire project, somebody has a kind of their heart is going to take care
- 50:12of.
- 50:12Yeah.
- 50:12It's really rough.
- 50:14So let's talk about this tweet that Lukas Lenga had sent out.
- 50:18And you had mentioned in your presentation, and it's a graph, like a performance graph of
- 50:22an app that was written there on Python 2.7.
- 50:26And then when it switched to Python 3.6, could you just give us the quick summary of that?
- 50:30Like it's...
- 50:31Yeah, I probably won't talk about it.
- 50:32I don't know what this is, but...
- 50:33Yeah, no, it's not super important.
- 50:35Yeah.
- 50:35We traveled to Dublin to help this team out.
- 50:37We're with them for two weeks, just helping them fix some, like, issues because their code
- 50:43was pretty old.
- 50:44Like, it was older than my tenure at Facebook.
- 50:46So, like, once at the end of the week, we switched, we fixed all their little problems.
- 50:52They switched over and immediately saw this drastic drop in their memory usage.
- 50:57There was some CPU.
- 50:59Oh, wait, no, they had...
- 51:00Oh, it was half the memory.
- 51:01Oh, yeah.
- 51:01It was just half as much memory.
- 51:02Yeah.
- 51:03It looks like four times improvement in CPU and half the memory.
- 51:06So, 2x in memory.
- 51:08Yeah.
- 51:08They were just like...
- 51:09We were just...
- 51:10I think Wukash immediately copied the graph and tweeted it.
- 51:13You know, it was just like, this is insane.
- 51:14Yes, exactly.
- 51:15And this goes back to what we were saying before.
- 51:16Yeah, the world seemed to like it.
- 51:18There's like 1,800 likes or something just like, yep.
- 51:21This is the kind of stuff that people need to see because you can tell them, like, well,
- 51:25it's better or whatever.
- 51:26But it's a whole other thing to say, well, that fleet of servers can be one server that
- 51:31you don't have a hard time maintaining anymore, right?
- 51:33Yeah.
- 51:34Like, that's a much stronger story.
- 51:35And you don't have to do anything but just make it run here.
- 51:38Yeah, so this means that they were able to get rid of machines.
- 51:40Yeah.
- 51:41Because they're not doing as much work anymore.
- 51:42And that makes everybody happy.
- 51:44That makes your bosses happy because they're not spending as much money, especially if you're
- 51:48like a cloud deployment and you're paying for each one of those nodes that costs you
- 51:52money.
- 51:53And it's, yeah, it's like you were saying nobody was saying these things.
- 51:56It's like there was just this common understanding that, oh, Python 3 is slower than Python 2.
- 52:00And we had to, like, break that lie that was still just kind of floating out there.
- 52:06And we, and Lukash, he's talked about this a lot, was that a lot of the, like, core people
- 52:14that, like, I don't know core people, but, like, people that wrote, like, really hard problems
- 52:18in Python who had solved, like, kind of the low level, they were very negative.
- 52:21And it was because they were solving the really low level problems.
- 52:25But it was like the average, like, Joe or Jane writing Python code.
- 52:30They're never going to see those issues.
- 52:33So that when, when somebody comes out and be like, oh, I wrote this, this database driver
- 52:37and it was a pain to do for Python 3.
- 52:40It's like they do a disservice to everybody who will never see those issues.
- 52:44Right.
- 52:45Because you're, almost no one is natively, deep down at the native network layer.
- 52:50Yeah.
- 52:51Except for people writing web frameworks or data access.
- 52:54You know, like, there's a few folks.
- 52:56And they take a bit of a beating, right?
- 52:59But they're also highly respected folks because they're the head of these major web frameworks
- 53:05or database projects.
- 53:07And they're like, this was super hard.
- 53:09This is the hardest thing I've done.
- 53:10It's like, well, okay, that sucked and we're sorry.
- 53:13But, like, that is not what it's going to be like for other people.
- 53:17They still import your thing and call query and it's all good.
- 53:20Exactly.
- 53:21Yeah.
- 53:21That's pretty interesting.
- 53:22So, I think these graphs, you know, also the story around Instagram, right?
- 53:27Like, Instagram as a whole was able to turn off servers, was able to use less memory.
- 53:32Like, they went pretty deep into that in the keynote that they covered that as well.
- 53:36So, one other thing that you talked about in the 2018 timeframe, which I guess is now,
- 53:40is this end of life of Python 2 internally.
- 53:43Like, we know about the Python 2 death clock.
- 53:47At least it exists.
- 53:48I don't know if everyone knows about it.
- 53:50But we know that there's the official external deadline for Python 2 at January 1st, 2020.
- 53:56But you've also internally announced a deadline for this, right?
- 54:00Yeah.
- 54:00We want to make sure that we don't want to push past January 1st.
- 54:03So, next year is going to be the year that I go around and help kind of, like, go through
- 54:10and, like, find out those people that are still stuck on 2.
- 54:14And maybe they've been in a cave all these years and they haven't known that 3 is a thing.
- 54:18But, or maybe the team just doesn't exist anymore.
- 54:20The thing's just running on automation.
- 54:23Because we're...
- 54:24Why is that website still up?
- 54:25It's, well, you know, sometimes some things are just written well enough and they have enough
- 54:30automation around it to keep it up.
- 54:32It's just, you know, you figure out that, oh, wait, there is no team supporting this.
- 54:36You know, like, oh, wow.
- 54:38That's a success story, right?
- 54:39But, yeah, it's a challenge.
- 54:40It auto-builds and auto-deploys every month and nobody touches it.
- 54:43So, yeah, it's like, so I think we're already internally, we're well over 80% of the libraries
- 54:50are all Python 3.
- 54:52And I think we're well over 60-something for, like, actually all those PEXs.
- 54:57Like, the amount of PEXs we ship or Python 3.
- 55:00So, it was figured, like, well, how long do we want to support this thing?
- 55:03Because we don't want to get into the situation where we're having to support Python 2 past
- 55:07the death clock, the deadline at the end of life.
- 55:10So...
- 55:11You don't want to be in 2020 doing anything with...
- 55:13Yeah, so we're telling people that...
- 55:15Trying to keep it going.
- 55:15By the end of 2019, at Facebook, we're going to want to make it impossible to ship new Python 2 code.
- 55:23Just so it's like, it's got, there's got to be some cutoff at some point.
- 55:27And we're still going to support things that were already written, I think,
- 55:30until, like, I think we said we were giving people, like, you know, maybe until 2022.
- 55:34But it's like, at that point, you won't even be able to run it anymore.
- 55:38It's like, we're going to get Python 2, the actual run times off the servers.
- 55:43We're going to get them off the, out of the compilers.
- 55:46We're going to make sure it doesn't exist.
- 55:48Yeah, all the PEXs, they won't work anymore, right?
- 55:51Yeah.
- 55:51They're missing their CPython.
- 55:52If it's just something that has been built in, like, five years, people still use it,
- 55:55and it somehow miraculously works, it will stop working.
- 55:58Right.
- 55:59And then there'll probably be a little bit of a scramble to patch that stuff up, make it work.
- 56:02We're hoping we catch all that in 2019.
- 56:04And I think we will.
- 56:05Yeah.
- 56:05Yeah, yeah.
- 56:06You guys have a lot of automated builds and whatnot.
- 56:08Yeah, we have a lot of automation that can tell us immediately.
- 56:10If I say that, oh, people that said they want two are now getting three,
- 56:14I'll immediately start getting test failures if it's not working.
- 56:18Exactly.
- 56:18Just a little reporting, I'll tell you all that.
- 56:20Okay.
- 56:21So, Jason, that's a super interesting story.
- 56:24And I think it's a real success.
- 56:26And one of the things I don't think we necessarily covered as well as you did in your talk here is just at no point along the way did some manager or organization come along and say to you, like, okay, make this happen.
- 56:41It's just like you wanted to see this happen and you just started working cooperatively with these different teams until it became a thing, right?
- 56:50Yeah, at some point, like this was in 2016, when Instagram was moving, it was kind of like, hey, maybe we need a team to help people move or help, like, Instagram.
- 57:01We kind of escaped the bullet of being the team that helps you move from two to three.
- 57:07Because we did that for Instagram.
- 57:09We did it for a couple other people.
- 57:10But we were like, no, let's be the team that stewards Python for the future.
- 57:14It's like we want something more lofty than just being the converter, the converting janitors or something.
- 57:19Right.
- 57:20That's very much more lofty in the long term, right?
- 57:22Yes.
- 57:23Yeah.
- 57:23Yeah.
- 57:23Yeah.
- 57:24Very nice.
- 57:25So, I guess transitioning, like, this is what you guys did.
- 57:29This is what you were able to sort of germinate within Facebook.
- 57:34What would you say to other companies that are stuck on Python 2?
- 57:38Well, I was saying if they're engineer-led, like Facebook, and there's a lot of – we're in this internet economy, and there's a lot of startups that are out there.
- 57:46They're very much engineer-led.
- 57:48The same model works.
- 57:50You just basically, you know, you can go and attack it through code quality.
- 57:53I was telling somebody, it's like, I didn't always work in the Bay Area and Silicon Valley and these startups.
- 57:59I used to work what I used to call real corporations in consulting.
- 58:04And it's like, there you've got a manager, and instead of convincing other engineers, you just convinced a manager.
- 58:09And it was sometimes easier.
- 58:10Right.
- 58:11There's one person to convince, and if you win that battle, it's done.
- 58:14Yeah.
- 58:14Right.
- 58:15It's coming from on high, and it's just said.
- 58:17Yeah.
- 58:17If you can attack it with, like, some of the things we talked about, it's being faster.
- 58:20Maybe it's going to use less money.
- 58:22Maybe we'll use less servers.
- 58:23And you can give them the example of Instagram.
- 58:26They were able to do it without slowing down.
- 58:28They didn't stop releasing features to convert to Python 3.
- 58:32They did it all in line.
- 58:33Yeah.
- 58:33I really think that Instagram example, I'm so glad they did it as a keynote with all the clear steps.
- 58:39Because it's not just an inspiring example, but it's a step-by-step roadmap to how it happens.
- 58:45Exactly.
- 58:46It's very inspirational.
- 58:47So I guess, you know, this is a five-year journey, more or less.
- 58:51What was easier than you expected, and what was harder?
- 58:54There were several times where I made prognostications that were completely wrong.
- 58:59Like, I thought that we would always have Python 2 as, like, the default, and we would still be a French thing.
- 59:05But it's like, we quickly overtook Python 2 faster than we thought.
- 59:10Like, I remember we actually had a message in our internal, like, IRC, like, hey, when Python 3 gets to 29%, let's have a party.
- 59:17And, like, I just noticed it.
- 59:19Nobody, like, had seen it for a while.
- 59:21I noticed, like, oh, wait a minute.
- 59:22We're at, like, 80.
- 59:23Wow.
- 59:25So I updated the messages.
- 59:27Have a party.
- 59:27We have, like, 90%.
- 59:28There you go.
- 59:29Yeah, and that's really something to celebrate, right?
- 59:32Like, you're pretty much there at that point.
- 59:34Yeah, so I definitely think we're going to have an internal funeral for Python 2.
- 59:37And I've already, I was like, oh, no, we'll get, we'll, I was like, we'll get something, we'll make it look like a casket.
- 59:43And have people talk about the good things that Python 2 did.
- 59:47And we'll get rid of it.
- 59:49Python 2 got us to where we are today, right?
- 59:52Like, it was a major part of that journey, so.
- 59:55Yeah, we can acknowledge it.
- 59:56We just don't have to be stuck there.
- 59:57Exactly.
- 59:59What was harder?
- 1:00:00You didn't actually expect it to work that well.
- 1:00:03It sounds like in the early days, you're kind of like, this is a great try, but I'm not so sure it's going to work.
- 1:00:09So maybe you just, you saw it as hard, and it actually wasn't, but.
- 1:00:12Yeah, it wasn't as hard as I thought it was going to be.
- 1:00:15Like, there's still the long tail of stuff.
- 1:00:17Like, you know, we're getting to smaller, smaller values.
- 1:00:20And I think it's just because we have, like, you know, in every company, you get more, as the company grows, you have more people writing code.
- 1:00:27If that code is Python 3, your percentages of two just git pushed down automatically.
- 1:00:31Right.
- 1:00:31So I think that that is the, so the hardest thing is just to convince teams that, like, give them the, like, there are teams that say they want to move.
- 1:00:39Like, everybody has the, like, oh, we want to move.
- 1:00:42We just don't have the manpower.
- 1:00:43We don't have it on a roadmap to move.
- 1:00:47And they have it now because we've said, hey, it's 2019's the year.
- 1:00:51You have to do it now or never.
- 1:00:53It's going to stop running.
- 1:00:54It's going to be a problem.
- 1:00:55So that is probably, it's like, there are, yeah.
- 1:00:58So it's just, there's some teams that feel hopeless.
- 1:01:00Yeah, I can imagine.
- 1:01:01It's like, kind of like what I thought.
- 1:01:03Yeah, do you have companies that you acquire that bring, like, new Python 2 as another challenge every now and then?
- 1:01:10Or does that not happen too much?
- 1:01:11I don't know if I'm sure you can talk about that.
- 1:01:12But then, like, sure, there's got to be some things.
- 1:01:14But I think we kind of, like, there's enough people internally that, like, I guess when you're a good leader, like, and people don't know you're a leader, is that when they start repeating the same arguments that you were giving years ago, it's like coming out of their mouths instead of your own mouth.
- 1:01:30I think, you know, you've won.
- 1:01:31So it's like these people show up, like, hey, I've got this Python 2 app.
- 1:01:34It's not working the way I want it to.
- 1:01:37And what's the first from some random person I've never even met?
- 1:01:40I'll get some things like, why don't you switch to three?
- 1:01:43It has a defect.
- 1:01:44Let's fix it.
- 1:01:44Yeah, it's like switch to three and then we can help you.
- 1:01:47Nobody knows how to do two anymore.
- 1:01:49Yeah, yeah, that's great.
- 1:01:50It's great.
- 1:01:51I like it.
- 1:01:51I mean, more organizations should be here.
- 1:01:53All right, so I want to get your thought on one final thing and give a quick shout out to something that could help people as well.
- 1:01:58So the same guy that put together, was involved in putting together the Sunsetting Python 2 support, the Python 3 statement, started calling Python 2 legacy Python.
- 1:02:10Oh, I do like that.
- 1:02:11Python 3 modern or just straight Python.
- 1:02:14There's Python and then there's legacy Python.
- 1:02:16And so the question is, Noah.
- 1:02:17We do that internally.
- 1:02:18You like this idea?
- 1:02:19Yes, we call it legacy Python.
- 1:02:21I love it.
- 1:02:21I do too.
- 1:02:22I have actually used that to identify other things I'm trying to sunset.
- 1:02:26That's beautiful.
- 1:02:27And I think when you spoke about talking to managers, like if you go to a manager and you say like, look, our entire infrastructure, our entire system is built on this legacy thing that's going to be unsupported in a year.
- 1:02:38Like they're like, whoa, whoa, whoa.
- 1:02:40That's scary.
- 1:02:40That sounds horrible.
- 1:02:41We got to fix this, right?
- 1:02:42Yeah.
- 1:02:42Like if you say Python 2 versus Python 3, you're like, ah, techno mumbo jumbo, leave me alone, right?
- 1:02:46But legacy, they know that's bad.
- 1:02:48They don't want that.
- 1:02:49Yeah.
- 1:02:49It's like sometimes we took jabs at Python 2 staunch supporters.
- 1:02:54We would just to like make like we would call them blood heights because they didn't like the future.
- 1:03:00They didn't like new technology.
- 1:03:03So we were like, hey, are you like, are you like, is that how you got to work today?
- 1:03:09Exactly.
- 1:03:09Like how do you power that computer, right?
- 1:03:11Yeah.
- 1:03:11Plug it in or you got to puddle the thing or what?
- 1:03:13It's like seeing your soul machine base.
- 1:03:16Exactly.
- 1:03:16Interesting.
- 1:03:17Cool.
- 1:03:18I'm glad.
- 1:03:19That's definitely something I'm trying to push on the community as well.
- 1:03:21And I think it's, I think it's resonates with people mostly.
- 1:03:24All right.
- 1:03:25So then a quick shout out, friend of the show, Anthony Shaw, wrote a cool course on converting from Python 2 to Python 3 over a Pluralsight.
- 1:03:32So people should check out his course as well if they want to go along.
- 1:03:35But certainly they should check out the keynote at PyCon 2016 or 2017 from Instagram because that really is a, you know, this is the roadmap of how you do it.
- 1:03:442017.
- 1:03:45Thanks.
- 1:03:46Yeah.
- 1:03:46So that's a great one.
- 1:03:47All right.
- 1:03:49Well, we could talk for a long time, but I want to be respectful of your time.
- 1:03:52So we'll just leave it here, I guess.
- 1:03:53So I'll ask you two quick questions before we get out of here.
- 1:03:56First of all, if you're going to write some Python code, what editor do you use?
- 1:03:59Well, I'm Nuclide.
- 1:04:00So Adam.
- 1:04:01Okay.
- 1:04:01The editor.
- 1:04:02But it's with Fim mode because I still use a lot of Fim.
- 1:04:05And, but if I, if I used to be a real big fan of PyCharm, it's just setting it up all the time was kind of a, it takes a lot of time.
- 1:04:13So I always use Adam.
- 1:04:15Adam's quicker.
- 1:04:16Yep.
- 1:04:17All right.
- 1:04:17Cool.
- 1:04:17And then a notable PyPI package.
- 1:04:20Maybe not the most popular one, but something you're like, oh, people should know about this.
- 1:04:24Wow.
- 1:04:25Let's see.
- 1:04:25Click.
- 1:04:25Click.
- 1:04:26All right.
- 1:04:27Tell people quickly about it.
- 1:04:28What's the, what's the elevator pitch on click?
- 1:04:29Well, like internally people write these, they, they want to write these nice, like get style applications that are these sub commands.
- 1:04:36And the.
- 1:04:37Get add dot.
- 1:04:39Get.
- 1:04:39Yes.
- 1:04:39Exactly.
- 1:04:40That kind of stuff.
- 1:04:41Right.
- 1:04:41the art parse or opt parse to make that happen is horrendous and it's disgusting.
- 1:04:48And people have written modules around these things to make it.
- 1:04:52And all of them are awful.
- 1:04:53And, and it was like, I was like, look, this is this thing.
- 1:04:57I wrote, I used click for one of my projects.
- 1:04:59I think the project that was the first Python three project used it.
- 1:05:03I was so happy with it.
- 1:05:04I just kept telling people you have to use this thing because it means that somebody I get off the street, who's been programming Python and open source, that it will feel natural for them to write an application with us without having to use some internal like CLI parsing.
- 1:05:17Yeah.
- 1:05:18That's really great.
- 1:05:19Yeah.
- 1:05:19It's definitely one of the most popular ways to build CLI apps, which is, you know, quite a few of the Python ones.
- 1:05:24So very cool.
- 1:05:26All right, Jason.
- 1:05:27So people are excited.
- 1:05:29They want to take their organization on the same journey.
- 1:05:32What's the final call to action?
- 1:05:33Like, what do they need to do?
- 1:05:34You just got to set up, set some goals, set a plan, like, like, you know, demand in the future.
- 1:05:39Like, look, we're going to be, we're going to go to Python three.
- 1:05:42We're not just going to stay there.
- 1:05:43We're like, that's, this is a stop.
- 1:05:45We're going to go to, we're going to, it's a stop over to Python three seven.
- 1:05:48It's a stop over to Python three eight.
- 1:05:50We want to be modern so that when the new things happen, we can move with them.
- 1:05:54Yeah.
- 1:05:55And they're happening fast.
- 1:05:56Exactly.
- 1:05:56And they're happening in large numbers.
- 1:05:59So you definitely want to be there.
- 1:06:00All right.
- 1:06:00Thank you so much for sharing the story.
- 1:06:02I think it's going to inspire a lot of folks to take some action.
- 1:06:06Yeah, I think so.
- 1:06:07It's been fun.
- 1:06:07Yeah, it sure has.
- 1:06:08Nice chat with you and goodbye.
- 1:06:10Bye.
- 1:06:10This has been another episode of Talk Python To Me.
- 1:06:15On this episode, our guest was Jason Fried, and it's been brought to you by Linode and Rollbar.
- 1:06:20Linode is bulletproof hosting for whatever you're building with Python.
- 1:06:24Get four months free at talkpython.fm/Linode.
- 1:06:28That's L-I-N-O-D-E.
- 1:06:30Rollbar takes the pain out of errors.
- 1:06:33They give you the context and insight you need to quickly locate and fix errors that might have gone unnoticed until your users complained, of course.
- 1:06:41Track a ridiculous number of errors for free as Talk Python To Me listeners at talkpython.fm/rollbar.
- 1:06:48Want to level up your Python?
- 1:06:49If you're just getting started, try my Python jumpstart by building 10 apps or our brand new 100 days of code in Python.
- 1:06:56And if you're interested in more than one course, be sure to check out the Everything Bundle.
- 1:07:00It's like a subscription that never expires.
- 1:07:03Be sure to subscribe to the show.
- 1:07:04Open your favorite podcatcher and search for Python.
- 1:07:07We should be right at the top.
- 1:07:08You can also find the iTunes feed at /itunes, Google Play feed at /play, and direct RSS feed at /rss on talkpython.fm.
- 1:07:17This is your host, Michael Kennedy.
- 1:07:19Thanks so much for listening.
- 1:07:20I really appreciate it.
- 1:07:22Now get out there and write some Python code.
- 1:07:23I'll see you next time.
- 1:07:44Thank you.