Latest / Talk Python To Me / #145: 2017 Python Year in Review
Transcript
- 0:00It's been an amazing year for Python. We've seen its meteoric growth continue to become the most
- 0:05popular major programming language. We've seen significant grants and funding come in for open
- 0:10source. And this just might be the year that the Python 2 or Python 3 question was finally settled.
- 0:16Join Brian Okken, my co-host from our Python Bytes podcast, and me as we look back at many
- 0:21of the major milestones for Python in 2017. This is Talk Python To Me, episode 145, recorded
- 0:28December 21st, 2017. Welcome to Talk Python To Me, a weekly podcast on Python, the language,
- 0:49the libraries, the ecosystem, and the personalities. This is your host, Michael Kennedy. Follow me on
- 0:54Twitter where I'm @mkennedy. Keep up with the show and listen to past episodes at
- 0:58talkpython.fm and follow the show on Twitter via at Talk Python. This episode is sponsored by
- 1:04Linode and Rollbar. Please check out what they're offering during their segments. It really helps
- 1:09support the show. Talk Python To Me is partially supported by our training courses. Have you tried
- 1:14to learn Python but got stuck or lost focus? We know how it feels to try and jam fact after fact,
- 1:20loop construct after turn hair expression, into your head. At best, it's boring. At worst,
- 1:26it can turn you off programming altogether. That's why we built our course, Python Jumpstart by building
- 1:3110 apps. This course guides you through carefully planned applications. It starts simple, but
- 1:37progresses to quite real apps. Best of all, you won't be learning dry facts. You'll be learning like
- 1:43the pros do by building real applications and learning in context. If you want to start building with Python,
- 1:48just visit talkpython.fm/course to get started.
- 1:54Before we get to the interview, I want to share a quick update about our Python courses with you.
- 1:58Do you work on a software team that needs training and could really use a chance to level up their
- 2:02Python? Maybe your entire company is looking to become more proficient. We have special offers
- 2:07that make our courses here at Talk Python the best option for everyone you work with. Our courses don't
- 2:12require an ongoing subscription like so many corporate training options do. And they're roughly priced
- 2:18about the same as a book. We're here to help you succeed. Send us a note at sales at talkpython.fm
- 2:24to start a conversation. And here's a bit of a timely announcement. We're giving away a PyCon ticket
- 2:31to one lucky individual. So every year PyCon in the US sells out. If you don't have a ticket,
- 2:37go buy a ticket or, or you could become a friend of the show. Many of you already are. And thank you
- 2:44for that. If you're not just go to talkpython.fm/friends into your email address, and you'll be
- 2:50in the running on January 8. We're going to do a draw using a little random dot choice and figure out
- 2:57who the lucky winner is who wins a free ticket to PyCon. So be sure to become a friend of the show
- 3:03if you want to be part of that. Now let's get to the interview. Brian, welcome back to Talk Python.
- 3:08Thanks for having me back for this special episode. I always love these year and review shows and
- 3:13it's really excellent that you could be here to do it together with me. So you were on previously a
- 3:20couple years ago to talk about the testing column, how the testing pyramid was broken and we need more
- 3:25testing column, right? I guess. I can't even remember what we talked about. So that makes sense.
- 3:30It's been a long time, but I do remember the testing column is now a thing after that episode. That was
- 3:35cool. So people may know you from our work together on Python Bytes, our other podcasts. They may know
- 3:42you from your test and code podcast and they may know you from your book, right? Yeah. Just so this last
- 3:48year got the book, Python testing with pytest with pragmatic publishers published this last year. So
- 3:54yeah. Yeah. Awesome. That's definitely one of the things we'll review as we go through here. So we're
- 4:00going to get together today and talk about what we think were the major accomplishments, major pieces of
- 4:07news, not necessarily the major projects, say, in terms of like projects you find on GitHub or something,
- 4:16but more like the trends in Python in 2017. So I think that's going to be a lot of fun. Do you want
- 4:23to kick us off with what may be one of the biggest trends out there? Yeah. One of the biggest trends
- 4:28that we saw in 2017 is a dramatic shift from Python 2 or legacy Python to Python 3 or modern Python.
- 4:36I love the term legacy Python and modern Python or just Python and legacy Python. I think it's actually
- 4:42making a difference. And Matthias, who originally started that trend, well done, man. That is awesome.
- 4:48So I think this is finally the year where the question seems silly to ask. Like it's been a few years.
- 4:57We're like, yeah, you can do Python 3. You can do Python 2. You know, how is this progressing? It should
- 5:01really be going quicker. But to me, it feels like if somebody says, I'm going to start a new project
- 5:06with Python 2, you kind of smack them and go, what? What are you doing, man? Come on. Like,
- 5:09it seems like that's the feeling in the industry these days, which is really good, right?
- 5:13I definitely think so. And I think there's been a switch. Hopefully there's been a switch in
- 5:17the education, like in colleges and stuff, people using Python 3 instead.
- 5:22There's a couple of milestones around this that we wanted to highlight, right? One of them is this
- 5:26article by ActiveState, the guys at ActiveState called Python 3 versus Python 2. It's different
- 5:32this time. They really lay out some of the things, some of the facts around this. For example, 95% of
- 5:39the top 360, don't know why they chose that number, 360 packages listed on py3readiness.org,
- 5:4795% of those are Python 3 ready. So traditionally, the blockage has been this sort of catch-22 around
- 5:54packages not supporting Python 3, right? Yeah. A couple of years ago, that was definitely the case
- 5:58of people trying to switch and they found out they had some key package that hadn't been migrated yet.
- 6:04But for the most part, that's behind us. Yeah, absolutely. So Django, Django played a big role
- 6:11this year in sort of putting a nail on the Python 2 or legacy Python coffin, right? Right. I mean,
- 6:17even just this month, Django 2.0 came out and it does not support Python 2. It's 3.4 and above.
- 6:24And with a little side note that 3.4 is only going to be supported for another year-ish. So move up to
- 6:32modern Python. Yeah, that's awesome. 3.5, I guess. But I think if you're going to move up, may as well
- 6:37just move up to 3.6. Right. Yeah. The only reason I think to not move to 3.6 is if you're working on
- 6:43like a Linux distribution and it doesn't support it or it's a complete pain to like a non-standard. But
- 6:48even so, 3.5 already has async and away. It has all, it has type hints. It has a lot of the magic
- 6:53features that you really care about, which is awesome. Yeah. So Django, the current shipping
- 6:59version of Django does not support legacy Python. That's awesome, right? Yeah, that's awesome. And I
- 7:04think that Django, when it used to default to Python 2.7, I think that was part of what was
- 7:10keeping people behind. Yeah. Even previous to this, I actually don't know the timing on when this
- 7:15happened. It was a little while ago, but they switched the default instructions from their
- 7:21tutorials or getting started tutorials from saying use Python 2 to saying use Python 3. And that made like
- 7:26a significant statistical differences in just the consumption of Python 3 libraries on PyPI just from
- 7:35the documentation switch, which was pretty powerful. Let's talk about some of the, there's a few other
- 7:40switches. Heroku switched their default to 3.6 recently. Yeah, that's awesome. It was like 2.7.13
- 7:46or something. And so now if you go to Heroku and say, give me a Python app, you get Python 3 unless
- 7:51you say no, no, I mean legacy Python, excuse me. NumPy has laid out their plans for dropping Python 2.
- 7:57Looks like you've got till 2020. Yeah, the NumPy folks are not moving super quick, but the fact that
- 8:02they say we are dropping Python 2 support should put it on the radar of everybody in the data science
- 8:08world, like same thing, start moving, right? I think their motivation is very similar to the Django
- 8:14folks in that they've had extra work and extra burden. It's harder for people to come and
- 8:21contribute to the project because they have to contribute two versions sometimes, a Python 2
- 8:25and a Python 3 version of everything. They're like, why? Why do we have all this code? So they're like,
- 8:31not only do we think it's time to move, but we think we will have a better chance of adding new
- 8:35features and getting new contributors if we drop this Python 2 thing. So that's pretty cool.
- 8:40This was laid out at the last 2017 PyCon was a talk with Instagram switching to Python 3 and how they did it
- 8:48on one branch. And that was amazing. That was insane, right? But you're right. So I think that was a great talk and that did show to everybody else. Man, if these guys can do it with a very complex code structure, you can too.
- 9:01My biggest takeaway from that was, oh my gosh, they did that on the main branch.
- 9:06They made that change without branching.
- 9:10They got it working in production and everything, which is pretty awesome.
- 9:12And the whole way in which they did that was cool.
- 9:15But my main takeaway was, whoa, if they can do it, pretty much anyone can.
- 9:20There may be a few companies, like let's say Bank of America.
- 9:23They've got an enormous Python 2 code base.
- 9:26But unless you're at that scale, this is sort of a case study in how you could make this happen for you.
- 9:32What's interesting is we started the year with still talking about trying to get people to move on to Python 3.
- 9:38And at the end of the year, we're not really talking about that so much anymore.
- 9:41We're talking about some of the new exciting projects that are Python 3 only, like API Star and all the type int libraries and stuff going on.
- 9:52That's really cool.
- 9:53API Star is by Tom Christie, same guy that did Django REST framework.
- 9:56Things like I want to re-envision a REST framework, but with Python 3 features.
- 9:59Really interesting use cases of things that are only available in Python 3.
- 10:05And then we have, you said, like we've got PyAnnotate, mypy, and MonkeyType, which are all around this type hinting, type annotation thing.
- 10:16And it's available only in Python 3.
- 10:18I started the year not thinking type hints were a good idea, but I think they are now.
- 10:23Everybody else has convinced me.
- 10:25I try to use them judiciously, but I do really like them.
- 10:28I think on this section, on this topic, our first one, this move to Python 3, we should leave people with the Python 3 death clock.
- 10:34Yes.
- 10:34Or the Python 2 death clock.
- 10:35What, PythonClock.org?
- 10:38Yeah, PythonClock.org.
- 10:40And so we have about two years, three months, and 14 days until Python 2 drops, even security fixes.
- 10:46All right.
- 10:47And so if you have a manager or your team's like, I don't know if we should really do this switch.
- 10:54We should just stick with Python 2.
- 10:55We already all know it.
- 10:56Like put this up on a big screen somewhere and just let it count down.
- 10:59It's a little scary now.
- 11:00I think in about two years it'll be real scary.
- 11:02A similar timer shows up on some of the Python libraries, the documentation, like requests has that at the top, I think.
- 11:09Yeah, that's awesome.
- 11:10All right.
- 11:11So let's move on.
- 11:12Speaking of requests, you'll find requests on PyPI, right?
- 11:16Yeah, along with a whole bunch of other things.
- 11:18A whole bunch of other things.
- 11:19What if you misspell requests?
- 11:21That would have been a problem for a while.
- 11:23Yeah.
- 11:23Yeah, absolutely.
- 11:24So one of the things that happened this year was that hackers subverted PyPI and they got 10 malicious libraries installed.
- 11:33And the malicious code is not in the library itself.
- 11:35They literally took the open source code and just put it into their library.
- 11:38But when you pip install things, it has the setup.py that runs to configure everything.
- 11:44That can do anything.
- 11:45And so they put malicious code in there.
- 11:47It was a weird thing.
- 11:49It was almost, it was kind of bizarre.
- 11:51What surprised me is that they had it running so that the actual package, the real code was still running.
- 11:58It was just the setup was all messed up.
- 12:00That's right.
- 12:01So you would not be able to determine that you had installed one of these virus packages by it not working.
- 12:08Because it was literally the same code.
- 12:10Like you imported it ran.
- 12:11It just happened to be really, really bad.
- 12:13So the way they did this was by typo squatting, basically.
- 12:17If you type requests but you misspelled it somehow, right?
- 12:21They might create a package that is this virus injected version by copying requests and uploading it to PyPI under misspellings of these various things.
- 12:32Yeah.
- 12:32It's just wacky.
- 12:35But the community kind of got around this and got it dealt with pretty quickly, which was pretty nice.
- 12:41The couple things they had, the new pip won't let you do misspellings of some of the common packages.
- 12:47You're not allowed to create standard library names, right?
- 12:49Like they used URL lib or something like that.
- 12:53Like that was not actually a package, but you would reasonably import it.
- 12:56So you, you know, they could trick you into pip installing it.
- 12:59Anything that's been seen has been taken down.
- 13:02All of these malicious libraries are gone now.
- 13:05And then, well, hopefully.
- 13:07And then somebody went around and squatted on a whole bunch of names to make sure that it wasn't taken by somebody else.
- 13:14Yeah.
- 13:14So they're like, all right, we're going to just put a message or some sort of import or install warning here and just say like, no, you can't, you can't have these.
- 13:22There's also some, some utility that would generate variations or misspellings of your package.
- 13:28So you could squat on your own if you run a popular package as well, which is, which is pretty nice.
- 13:33So I don't know.
- 13:35On one hand, this is really disturbing.
- 13:37On the other, if you look at how many times those things were downloaded, they're in the, like the tens or hundreds, not millions.
- 13:43So that's one thing.
- 13:45One of the good things about this, I think, that came out is, I mean, some people's first reaction might be, why didn't the team that runs PyPI, why didn't they proactively fix this or know about it?
- 13:57And it highlighted the fact that all these people are volunteers.
- 14:01And maybe we need to do something about that.
- 14:04Well, yeah.
- 14:04And PyPI itself is utterly critical for making the Python ecosystem work, right?
- 14:10Anytime you set up a new machine, you set up a new project, you do an automated build, there's probably some sort of pip install -r requirements.txt process that happens, right?
- 14:20And that flows through PyPI.
- 14:22The amount of data that flows through there is super incredible.
- 14:25And it turns out that there's just a handful of people, as in one or two, who work on this at all.
- 14:31And like you said, they're volunteers.
- 14:33So one of the big pieces of news is that Mozilla came along to fix this, right?
- 14:37Right.
- 14:38So the next thing we were going to talk about was the huge grant, the huge, in open source terms, $170,000 grant from Mozilla to help with the sustainability of PyPI, which is just awesome.
- 14:55Yeah, that is really, really great.
- 14:56I'm so glad to hear that they're doing this.
- 14:59It's, on one hand, it's not a huge amount of money, but it really does put the foundation in place.
- 15:05A lot of this is going towards moving over to warehouse, I think.
- 15:09So that'll be good.
- 15:11I think that'll help with a lot of open, a lot more people being able to contribute to the maintenance and update.
- 15:18That's really interesting.
- 15:19One of the problems with PyPI, the website, is that it's super old and crusty.
- 15:25It's not like Shiny Flask.
- 15:27It's not cool new Django 2.0.
- 15:30It's like hand-rolled, custom, couple of files, thousands of lines, funky code.
- 15:38And it's great that it works, but it really needs to be modernized.
- 15:43And so one of the things that this includes is moving over to what you already mentioned, warehouse.
- 15:47Warehouse is the new implementation.
- 15:50And that's what you'll find at PyPI.org, not the PyPI.python.org slash PyPI.
- 15:55Why that's there twice, who knows.
- 15:57But the new one, and that's actually written in Pyramid.
- 16:01It's a well-factored code with unit tests.
- 16:04I think that move is a great move.
- 16:06And I'm excited to put the old version behind us as soon as we can.
- 16:10It still works great.
- 16:11But I understand when people complain about having to maintain some legacy code that's crusty.
- 16:16Yeah, and the problem was people would want to come and submit a feature for it.
- 16:20And they would look at it and go, actually, no, this is a complete mess.
- 16:24I can't work on this.
- 16:25I'm out of here.
- 16:25And so we have this sort of dual problem.
- 16:30One, that there's people who are working on this critical thing only in this volunteer mode, more or less.
- 16:37And then there are people who want to contribute to it, but its current state repels them, technically speaking.
- 16:44So it's like a double negative, right?
- 16:46For some of this funding to try to convert over, then maybe we can get swarms of open source people to help out.
- 16:53Yeah, that'd be awesome.
- 16:54So I'm looking forward to that little pre-release, pre-production warning at PyPI.org to go away.
- 17:01Thanks for Mozilla helping on that.
- 17:03And just related really, really quickly, you talked about major open source projects getting funding.
- 17:08NumPy got a whopping grant for $645,000 to improve it over the next two years.
- 17:16That's awesome open source support right there.
- 17:19That's a lot of money, but that's a drop in the bucket for the people that are really leaning on data science a lot.
- 17:26Yeah, it definitely drives a lot.
- 17:27What I would just like to see is Django get that.
- 17:29Pyramid get that.
- 17:30Request get that.
- 17:32You know, other, like so many of these popular open source packages that are these third-party packages are so critical.
- 17:40So many companies making billions of dollars on it.
- 17:43They could throw in a little bit.
- 17:44A little bit of support, right?
- 17:45It does seem interesting that, I mean, requests is used, for instance, as an example.
- 17:51There's so many like that, though, that are used by so many people that, and they still have, you still have to have day jobs.
- 17:57That's right.
- 17:57All right.
- 17:58So let's move on to something slightly political.
- 18:02But I don't want to make this overly politicized.
- 18:05But I think there is something we really should touch on a little bit here, and that is I can see positive sides of the whole Democratic side of the U.S. government, the Republican arguments some of the times.
- 18:19But this anti-fact, anti-science, anti-climate science bent of the current administration, it's real danger to like a lot of what we really need to focus on.
- 18:30I mean, climate change, in my opinion, is the biggest challenge we are facing currently as humans, period.
- 18:35And it's been in danger, right?
- 18:39It doesn't even matter what side of the fence you're on.
- 18:42Taking data down is like data on climate change should be, it's just data.
- 18:47It's not something we should argue about.
- 18:49Right.
- 18:49Facts should be facts, period.
- 18:51You can argue about the interpretation, but facts are facts.
- 18:55And they're really important for us to make the right decisions.
- 18:59And so one of the huge challenges is there was a suspicion that when Donald Trump was going to become president, that many of these government-controlled, super important data sources were going to disappear, right?
- 19:13Like NOAA, the Oceanic Institute, EPA, National Renewable Energy Laboratory, all these different places, right?
- 19:20Theoretically, some of this data could be vanished, right?
- 19:24I don't know what the current state is, though, of some of that data, but some of it is at the very least harder to find.
- 19:29Yeah.
- 19:30And you hear about things like there being forbidden words at the EPA, like you can't use the word climate change, for example.
- 19:37How scary is that?
- 19:38So there were these data activists who decided we're going to save this, right?
- 19:45Yeah.
- 19:45So they went off and it started right at what?
- 19:49Right at January 20th, the inauguration, started copying as much data as possible and storing them in European servers.
- 19:57That's a pretty, I mean, it's a huge effort, but that's a pretty cool thing.
- 20:02Yeah, it is.
- 20:03So there were 60 scientists and programmers who gathered at the Department of Information Studies in UCLA.
- 20:10There was a bunch more in Toronto, Philadelphia, Chicago, all over the world.
- 20:13And I'm sure requests and beautiful soup and a lot of that was in full force going around just sucking all of this data off these websites.
- 20:22And you might say like, okay, these people are paranoid, whatever, right?
- 20:25But in fact, right at noon, the day Trump was sworn in, a lot of the climate change pages on whitehouse.gov just disappeared, right?
- 20:34So those were grabbed just in time, I think.
- 20:37That's just weird to take stuff down right away.
- 20:39Quite an interesting data hacktivist sort of story.
- 20:43I mean, they weren't actually hacking things, but they were definitely out there using code and probably a lot of Python to try to rescue the data, which is quite interesting.
- 20:49There are definitely probably people using Python, but also one of the things that I'm glad we highlighted the story is that there is not a, you can't separate your interaction with the governments and the world and the fact that you're a programmer.
- 21:06And in this story, we see that programmers are able to save things that politicians might want to get rid of.
- 21:13So it's good.
- 21:14It was really, really heartened to see this.
- 21:16Quite an interesting story.
- 21:19This portion of Talk Python To Me is brought to you by Linode.
- 21:22Are you looking for bulletproof hosting that's fast, simple, and incredibly affordable?
- 21:26Look past that bookstore and check out Linode at talkpython.fm/Linode, L-I-N-O-D-E.
- 21:32Plans start at just $5 a month for a dedicated server with a gig of RAM.
- 21:36They have 10 data centers across the globe, so no matter where you are, there's a data center near you.
- 21:41Whether you want to run your Python web app, host a private Git server, or a file server, you'll get native SSDs on all machines, a newly upgraded 200 gigabit network, and 24-7 friendly support, even on holidays, and a seven-day money-back guarantee.
- 21:55Want a dedicated server for free for the next four months?
- 21:58Use the coupon code Python17 at talkpython.fm/Linode.
- 22:04All right, so another thing that I feel like was really significant this year was the whole async and await, asyncio thing in Python.
- 22:12We saw a lot of new web frameworks come in in 2017, or at least we heard about them.
- 22:17I don't know how many of them are production ready, but they're definitely on the way, which is pretty cool.
- 22:20One of the challenges for any of these web frameworks to be async enabled, and maybe it's worth mentioning why that might be good, right?
- 22:30Especially because you have the gill, right?
- 22:34It's hard to add parallelism to your Python code in simple ways.
- 22:40But usually what do web servers do?
- 22:42They call other web services, microservice-type things, or external services, like payment gateways.
- 22:47They talk to databases, and then they do a little bit of stuff.
- 22:51Maybe they talk to the file system, and then they get back to you.
- 22:53But a lot of it is this kind of orchestration bit, really.
- 22:56And all of those can be pushed into the asyncio loop, right?
- 23:03If you use, like, Postgres, there's an async version for Postgres.
- 23:06Async library for consuming this.
- 23:08You can await, like, a query, which is really awesome.
- 23:10But if your web framework doesn't support it, like Flask doesn't support it, Pyramid doesn't support it, Django doesn't support it, you can't use that.
- 23:18Like, it's useless, right?
- 23:19You cannot use that in your website.
- 23:21So you really need a framework that will, all the way down through it, allow you to sort of release these awaitable coroutines.
- 23:30I'm probably talking through my hat on this one, since you're more of the web developer.
- 23:34But we did see three interesting ones come along, and probably more.
- 23:38Like, I'm not giving it, I guess I should probably throw aiohttp in there as well.
- 23:42But the three that come to mind for me are SANIC, which is a new web framework entirely built on alternate implementation.
- 23:51I think uvloop is what SANIC's based on.
- 23:54So you can go and write code against your web framework and use all of this async and await stuff.
- 24:00There's Jepronto, which is really interesting.
- 24:04And Jepronto, I think, caused a lot of a stir because they originally published an announcement on Medium.
- 24:13And they have, like, a really pretty impressive graph right on their GitHub page saying, we're getting millions of requests per second on a single server.
- 24:22They show it next to Go and Node.
- 24:26And it's like, I don't know, 20 times faster?
- 24:28I mean, it's a lot, lot faster than the other things.
- 24:32And so on one hand, they caused a big stir about people going, well, you're doing your benchmarking wrong for this reason or that reason or whatever.
- 24:40So Jepronto is pretty interesting.
- 24:42The thing that's unfortunate is it's kind of stalled out in the last 10 months.
- 24:48It came on really strong.
- 24:49And there's just not a lot happening in the commit history.
- 24:52Interesting.
- 24:52Yeah, but Sanic, on the other hand, it's going pretty strong.
- 24:54And a new one that we recently covered on Python Bytes is called Quart.
- 24:58And Quart takes the Flask API and makes it async and awaitable.
- 25:04So you could take the code that you know and make it work, basically, in this async world that you want.
- 25:12This one does seem to be fairly active as well.
- 25:15I'm going to have the guy who's created it on this show on Talk Python in a few weeks as well.
- 25:21So we'll dig more into it.
- 25:22But basically, it's Python asyncio web microframework with exactly the same API as Flask.
- 25:28But you can say your views can be async def method name, not just def method name, right?
- 25:34So it's really, really cool.
- 25:35Yeah.
- 25:36Hats off to him for coming up with just taking the Flask API and reusing that.
- 25:42Why come up with something new?
- 25:44That's right.
- 25:44That's smart.
- 25:45I also saw Armin Roeneker talking about this kind of stuff, who's behind Flask, talking about some of these ideas.
- 25:52And stuff around Flask on Twitter.
- 25:54I don't know if there's anything officially happening directly in Flask, but I wouldn't be surprised.
- 25:58That'd be a good thing to throw money at.
- 26:00Hey, everybody throwing money at projects.
- 26:02Yeah, exactly.
- 26:04Let's make our, instead of switching to Go or something, let's just make our web frameworks actually do what Python can do.
- 26:10One of the things that is at the core of all of our Python programs is CPython.
- 26:15And if people want to contribute to it, how and where that's happened has kind of been a journey, right?
- 26:21I didn't realize the history.
- 26:22I knew that in 2017 it moved over to GitHub, but it's moved around a little bit.
- 26:28It has.
- 26:29It was somewhere where I actually don't even know really where it was pre-2006.
- 26:33In 2006 it was on Subversion.
- 26:35Then they moved it to Mercurial.
- 26:37Back then Mercurial, Git, they were kind of vying for action.
- 26:42But, and you know, Mercurial makes a lot of sense.
- 26:44It's written in Python.
- 26:45So Python should be hosted on Python.
- 26:48It's kind of meta.
- 26:48But in 2017 it really is the modern workflow for social programming and open sources on GitHub these days.
- 26:57So the big news is Python, CPython code moved to GitHub.
- 27:01I'm not going to make a judgment call as to whether that's a, whether all of the activity on GitHub is a good thing or a bad thing.
- 27:07It just is.
- 27:08So you can't ignore that most open source developers are using GitHub.
- 27:12So it makes sense to put that there too.
- 27:14Absolutely.
- 27:15It's like saying, I want to go and do stuff on social networks, but I don't want to be on Facebook.
- 27:18It's like, well, that's just the way a lot of it is.
- 27:22I'm sorry.
- 27:23Yeah.
- 27:23So this was actually done by, sort of motivated by Brett Cannon a little bit.
- 27:28And he said one of his goals was he would like the ability to review an external contribution from submission to commit all on a tablet while at a beach on Wi-Fi.
- 27:39And he can do that with GitHub, but he couldn't do that with Mercurial and the other things.
- 27:42So that's pretty cool.
- 27:44It was also motivated by people submitting patches, but the whole flow of reviewing it, there's not the pull request style and stuff there.
- 27:52So it's, it just wasn't really, the request would set idle for like a year.
- 27:57You'd make some change to CPython and people wouldn't even like paid attention.
- 28:01Right.
- 28:01Oh, that's terrible.
- 28:02That'll take away your motivation for sure.
- 28:03Right.
- 28:04Yeah.
- 28:04And whatever we can do to get Brett on a beach more often.
- 28:07Yeah, that's right.
- 28:09Well, so well done.
- 28:12Well done.
- 28:13Everyone involved in that.
- 28:14Now, the next one I want to talk about has to do with Python becoming a very, very popular language.
- 28:20And this is not a, an achievement per se of 2017, but this is where certainly some hit some milestones and the world has started to pay a lot of attention to it.
- 28:30The growth of Python, I mean, it's been growing fast for a long time, but having it overtake some of the other languages in certain surveys happened this year, which is great.
- 28:40One of the places I love to get this data from is Stack Overflow and they have their yearly developer survey, but they also have on staff data scientists that just analyze stuff and write reports about it.
- 28:53Right.
- 28:53Which is pretty awesome.
- 28:53So one was called the incredible growth of Python.
- 28:57And they said June, 2017 was the first month that Python was the most visited tag on Stack Overflow.
- 29:07Not JavaScript, not Ruby, not C#, not Swift, Python, which I think is pretty awesome.
- 29:14Yeah, it's great.
- 29:15Hopefully that's not because it's the most confusing language.
- 29:18What I thought was really interesting is you can go read the article, the incredible growth of Python on Stack Overflow.
- 29:23And if you look at the comments and comments, at least at the time when it came out, were turned on.
- 29:29So people were commenting at the bottom.
- 29:30It read a lot like, you know, people were sort of disappointed that their favorite language didn't make it.
- 29:37Well, Ruby's used so much in Silicon Valley.
- 29:40Why is Ruby not here?
- 29:41Or I don't, you know, I think Python must be so complicated.
- 29:44That's why it's so much, you know, it's got so many visits, right?
- 29:48You should just use C++, something simple that doesn't need explaining.
- 29:51You know, and you're like, wait a minute.
- 29:53No, there's no way that C++ doesn't need more explaining than Python and its language syntax.
- 29:58And, you know, there's a lot of things that could contribute to this.
- 30:02I think partly PyPI might actually be part of it.
- 30:04Like, if you want to talk about requests, that's got a Python tag.
- 30:07You want to talk about Django, that's got a Python tag.
- 30:09You want to talk about SQL CanE, that's got a Python tag, right?
- 30:12Like, all these different things around Python that people use and love also contribute to this factor.
- 30:18Yeah, and we're seeing so many different groups like use Python that weren't before.
- 30:24There's a lot of people not using R anymore for data science and machine learning, switching to Python.
- 30:29We've got technical people, universities, a lot of people that used to use visual programming in the science and engineering fields are using free Python tools now.
- 30:40Yeah, absolutely.
- 30:41It's just great.
- 30:42Yeah, and so there's two graphs I want to call people's attention to.
- 30:45One is projections of future traffic for major programming languages.
- 30:49So Python, JavaScript, Java, C#, PHP, and C++.
- 30:52And you see the graph and almost all of those major languages are either flat or slightly downward trending, whereas Python is like hockey stick.
- 31:01And then the projection has it just blowing away from all these.
- 31:06It's really incredible.
- 31:07The other one has to do with Python compared to smaller growing technologies.
- 31:13So things like Rust and Go, there's so much hype around Go and how this is going to change the world and everyone should be there.
- 31:21If you compare the amount of interest in Python versus interest in Go, it's like 20 to 1.
- 31:27It's incredible.
- 31:28And then not just that, but the rate of the graph of interest in Python is actually growing faster than in Go or Rust or any of these things.
- 31:37So I feel like people probably hear, oh, you should switch to Go.
- 31:40You should go write that in Rust.
- 31:41You should use R or whatever, right?
- 31:43But in reality, these are not the same thing.
- 31:47I don't think things switch too quickly either.
- 31:49One of the things that came up, I think it was in this article, is the growth in high-income countries in Python is faster than a lot of other countries.
- 32:00The non-high-income countries, I don't even know what that means, but tend to follow by a year or two.
- 32:06So we should see even more growth worldwide in Python in the upcoming years.
- 32:12I think it's awesome.
- 32:13You know, on one hand, I feel like people probably say, oh, well, programming is not a popularity contest, right?
- 32:20Like, so what if it's more people use this versus that, right?
- 32:24A lot of people use PHP and PHP is crappy.
- 32:26Well, on one hand, PHP has a downward graph, right?
- 32:31So one of my rules of thumb is when you look at the trajectory of a technology that you want to bet your career on, that graph should have a positive derivative.
- 32:42It should be pointing upwards, preferably increasingly so.
- 32:45A second derivative is being positive, also good.
- 32:48But you should not necessarily bet your career on downward graphs.
- 32:54And also, if you think about, like, what hang-ups people have when they start Python, it's not things like, like, see, you got to come up with memory management and all that stuff that's really hard to deal with.
- 33:05There's a lot of hard to deal with stuff in C++.
- 33:07And I spend a lot of my time in C++, so I kind of love it too.
- 33:12But the big hang-up for Python is just the spaces thing.
- 33:15And that's easy to get over.
- 33:17And then you're on to making great things.
- 33:20Yeah, you're definitely on to making great things.
- 33:21You know, as soon as you pip install, like, a couple amazing things, you're like, oh, wait.
- 33:25Spaces, they're cool.
- 33:26I can deal with this.
- 33:27And then after a week, you're like, wait.
- 33:28Why do I have to put curly braces?
- 33:30What are all these symbols?
- 33:31Like, this is so annoying.
- 33:32Yeah.
- 33:33Yeah, pretty funny.
- 33:33Pretty funny.
- 33:34So I think this is definitely interesting.
- 33:36People out there thinking about where they should focus for their career.
- 33:41Definitely have a look at this article and draw your own conclusions.
- 33:43But I think it's really a generally positive thing for everybody involved in Python in a lot of different ways.
- 33:50Yeah, especially us.
- 33:51Yes, especially us.
- 33:52People love to listen to us talk about Python news.
- 33:56Awesome.
- 33:56So one of the things I feel like has been the trend really since the internet, before the web, since the internet came out, early William Gibson days has been like this real fascination with technology.
- 34:10Technology is, it's almost assumed that it's going to make lives better.
- 34:15We can connect more.
- 34:16And look, if we connect on Facebook more, we can share our views and they might be different.
- 34:21And then we'll come to a greater understanding.
- 34:24There'll be less fighting and less disagreement and whatnot.
- 34:27That's actually seemed to play out for quite a while.
- 34:31But I'm starting to feel like there's a trend saying maybe not so much anymore.
- 34:35Yeah, I guess I'm not quite sure where you're going with this.
- 34:38Well, there's a couple of really interesting articles and sort of trends coming out around how technology is not necessarily, by default, a positive thing for a human society, for society.
- 34:51Right?
- 34:52So there's a couple of articles.
- 34:54One is called Tech People Think They Aren't, Are They Good Guys?
- 34:57They Aren't.
- 34:57That was in Wired.
- 34:59It came out recently.
- 35:00There was one in the MIT Technology Review called The Dark Secret at the Heart of AI.
- 35:06And then the last one is The Real Threat of Artificial Intelligence on The New York Times.
- 35:12That's a pretty big turn from where we have been over the last 20 years.
- 35:17That's true.
- 35:17But I think in new technologies and programming, people don't really understand what it is.
- 35:22And so they're often scared of the unknown.
- 35:25Yeah, that's for sure.
- 35:26I think, you know, the tech people, they think they're the good guys.
- 35:29They aren't.
- 35:30This article in Wired, they talked a lot about how people in Silicon Valley,
- 35:35they really focus on Silicon Valley, but also in tech in general.
- 35:38They need to be aware that they're losing this view where, well, these startups and these
- 35:45tech startups, they're good by default unless they prove otherwise.
- 35:48Right?
- 35:49They kind of have to prove that they're doing the right thing.
- 35:51And so, you know, we used to talk about how big data was going to do a lot of good things
- 35:55for people.
- 35:55Also the dangers of it.
- 35:57But Netflix recently had some kind of social media post that was like, hey, we just noticed
- 36:04that there are 10 people that watched this, I don't know, some Christmas show or something.
- 36:09We just noticed there's these 10 people that watched the same Christmas show for 18 days
- 36:14in a row.
- 36:14How sad or something like that.
- 36:17I mean, like, that's crazy, right?
- 36:18No.
- 36:19There's a lot of like wondering like, okay, well, why would you watch the same show 18
- 36:22days in a row?
- 36:23Maybe it's just on in like some store and they always want to show this Christmas show.
- 36:27Maybe you fell asleep 17 times.
- 36:30You just want to finish it.
- 36:31That's like, this time I'm going to finish it.
- 36:32I'm getting a coffee.
- 36:34I'm going to watch it.
- 36:34I can't even remember what the show was, but it wasn't something amazing.
- 36:37I feel like there's this interesting trend of people being more skeptical.
- 36:42You know, we have Apple and the encryption more sort of thing going on with Congress and
- 36:48the FBI at the beginning of the year.
- 36:50There's a lot of stuff there.
- 36:51Being cautious is a good thing.
- 36:53Like things, people adding things like Google Home and Amazon's, whatever Amazon's thing is
- 37:01called.
- 37:01Their Echoes and various things.
- 37:03Yeah, into their house and in other forms of presence in your life that didn't used
- 37:09to be there.
- 37:10We do kind of have to trust these companies to not do anything evil with all of that information.
- 37:16And yeah, maybe it's good to be a little skeptical and have some people checking out, making sure
- 37:21that there's nothing weird going on.
- 37:23That's for sure.
- 37:23And I do feel like the default behavior or default assumption was, well, it's Google.
- 37:29They're probably fine with my email or it's Amazon.
- 37:32What are they going to do?
- 37:33You know, I'm just buying a book from them and so on.
- 37:36And it's kind of not so much that way.
- 37:38I have an Amazon Dot, which is one of the Alexa type things.
- 37:43And it's sitting here.
- 37:46I made it quiet so it wouldn't disrupt the podcast.
- 37:48And the way you do that is you press this mute button on it.
- 37:52Okay.
- 37:53But the color that it changes to when it's not listening is really interesting.
- 37:58It changes to a bright red ring.
- 38:00Like there's something wrong and dangerous about it when it's not listening.
- 38:04Oh, interesting.
- 38:05You would think it would turn, I don't know, green or white or like everything's safe.
- 38:11Tell, you know, say your secrets, whatever you want.
- 38:14Right.
- 38:14We're not listening.
- 38:14But no, it turns bright red when it's not listening.
- 38:16Interesting.
- 38:17Yeah.
- 38:17Yeah.
- 38:18Pretty.
- 38:18What does it look like when it is listening?
- 38:19It's normally dark.
- 38:21But then if it's listening to you, it gets like a blue ring that kind of whirls around.
- 38:24It's a pretty cool device.
- 38:25I really like it.
- 38:26But I only have it in my office, not, you know, the rest of the house.
- 38:29So there's two other things around this that I also wanted to talk about.
- 38:33And those were, I guess they're the same subject, but from two perspectives.
- 38:38And that's sort of this artificial intelligence machine learning.
- 38:41And so let me set the stage for you.
- 38:43Like last year, there was this experimental vehicle just created by researchers at NVIDIA,
- 38:49the graphics people.
- 38:51And it was an autonomous car, but it wasn't like what Google or Tesla or GM is doing, where
- 38:59there's some sort of conditional programming for it.
- 39:03They didn't provide it a single instruction on how to do what it did.
- 39:08Instead, what they did is they taught it how to drive by have it watch and observe what humans
- 39:13do to cars while humans drive.
- 39:14That's pretty interesting.
- 39:16It's pretty interesting.
- 39:17But then it leads, you know, like this type of thing is not just done with cars, although
- 39:21it's pretty illustrative with cars.
- 39:23It's also done with mortgages, with cancer diagnoses, various other things, police activity.
- 39:29And so if this car crashes in unexpected ways, if it's going down the street and then it just
- 39:36swerves over and crashes into a tree, how do you know why it did that?
- 39:40You can't ask it.
- 39:41It's just, well, it learned pretty well.
- 39:44And most of the time it drives right.
- 39:45And sometimes it doesn't.
- 39:46And so there's some really interesting ramifications of like living with machines that are integral
- 39:52to our lives that can't be separated from human society once we depend upon it.
- 39:56Like at one point we didn't need the internet, but imagine if you took it away now, right?
- 40:00The economies would crumble.
- 40:02So there's actually a proposal for a law in the EU saying that you need the ability to
- 40:10have the computer tell you why it made a decision about you, right?
- 40:15So if you are denied for mortgage, a mortgage loan, why?
- 40:18Right?
- 40:19Things like that.
- 40:20And so these full on deep learning AIs that just learned through observation, they can't
- 40:27tell you why they did a thing, right?
- 40:28They're not like looking at themselves knowing why.
- 40:32Possibly not.
- 40:33But I think that systems can be made such that they are interrogatable.
- 40:37Yeah, I hope so.
- 40:37But I think it's a really interesting trend that we're seeing more and more of this AI
- 40:41stuff appear, you know, up and down our interactions where we know less and less about it.
- 40:47A couple of interesting things about that is now I don't have the reference for it, but
- 40:52there was some talk about how soon should we have driverless cars on the streets?
- 40:59And one view is that we should make sure that they're very, very safe.
- 41:04And another view is that they just need to be safer than people.
- 41:07Yes.
- 41:08If you lower the death rate, even if there still is a non-zero death rate, it's still
- 41:13better than what we have now.
- 41:14And that's interesting.
- 41:15I think that's a super interesting trade-off.
- 41:17And from a high-level ethics perspective, I think you say as soon as it is safer than
- 41:23human drivers, if by deploying this technology, we save lives, it seems like the right thing
- 41:29to do.
- 41:29But, you know, if one of the behaviors of that life-saving AI is, well, there was an
- 41:35oncoming car, so I swerved and drove off a cliff to avoid hitting it and killed my own
- 41:41driver instead of I saw there were five people in the oncoming car, for example.
- 41:44So I saved four lives, right?
- 41:46Or maybe even more.
- 41:48By driving this one person off, the news coverage and the human shock of being in control or subject
- 41:56to one of these types of systems, it's going to be really interesting to see how that plays
- 41:59out.
- 42:00But still, from an ethics perspective, I think as soon as it's ready, to be safer.
- 42:03But I remember a lot of these questions, like the five versus one, these came up with, I remember
- 42:08these in philosophy in college, and I never really thought it would actually apply to technology
- 42:16right now.
- 42:17That's a really interesting point, because neither did I.
- 42:19I remember like, well, if there's a burning building, and there's a baby inside, and there's
- 42:24these people over here, and you could only save either the baby or the three older people,
- 42:30like, which is the right, you know, these weird trade offs, you're like, well, nobody's
- 42:33ever going to do that, right?
- 42:34Like, nobody's going to make those conscious decisions to sit there and go, at best, it's
- 42:38like you made a split reaction in an emergency, and you did what you did, right?
- 42:42But when you're building these systems, you're like encoding it, basically.
- 42:45Yeah, it's like, no, this isn't a rhetorical question.
- 42:48We really need to know which one should we pick.
- 42:50That's going to take some serious adjustments, I think.
- 42:54Yeah.
- 42:54Since I don't know a lot about machine learning and stuff, when I had Catherine Jarmel on test
- 43:00and code, I asked her this, is it even possible to build systems that are interrogatable?
- 43:04And her answer went over my head, of course, but she was confident that if those laws are
- 43:10in place, that it's going to be possible.
- 43:13So that's a good thing.
- 43:14Yeah, that's interesting.
- 43:15I think, you know, if you design for it, you can probably at least get some kind of, you
- 43:20probably can design for it.
- 43:22But, you know, we'll probably have to do that as an explicit requirement, right?
- 43:25Yeah.
- 43:26Because otherwise, you just make it work, and you're happy, right?
- 43:29Yeah.
- 43:29And the interesting thing about that is, I think, will benefit otherwise, too.
- 43:33The reasons why artificial intelligence system came up with a conclusion might surprise us,
- 43:39and it might teach us more about how we can better make decisions even without the AI.
- 43:45When Google beat the world champion in Go, the top Go players started to study the non-intuitive
- 43:53solutions that the AI was, you know, applying to the game to beat this guy, and they started
- 44:00becoming better and learning new techniques.
- 44:01It's pretty interesting.
- 44:02And that'll hopefully happen in, like, detecting problems in CAT scans and things like that.
- 44:08Right.
- 44:09Reliability in airplane motors so they don't crash and stuff.
- 44:12Awesome.
- 44:12So I definitely think it's both very positive and kind of, you know, we're going to go back
- 44:17to philosophy class as a society as well.
- 44:20Yeah.
- 44:21Pretty interesting.
- 44:23This portion of Talk Python To Me has been brought to you by Rollbar.
- 44:26One of the frustrating things about being a developer is dealing with errors.
- 44:30Ugh.
- 44:30Relying on users to report errors, digging through log files, trying to debug issues, or getting
- 44:36millions of alerts just flooding your inbox and ruining your day.
- 44:39With Rollbar's full stack error monitoring, you get the context, insight, and control you
- 44:43need to find and fix bugs faster.
- 44:46Adding Rollbar to your Python app is as easy as pip install Rollbar.
- 44:49You can start tracking production errors and deployments in eight minutes or less.
- 44:54Are you considering self-hosting tools for security or compliance reasons?
- 44:58Then you should really check out Rollbar's compliant SaaS option.
- 45:01Get advanced security features and meet compliance without the hassle of self-hosting, including
- 45:07HIPAA, ISO 27001, Privacy Shield, and more.
- 45:11They'd love to give you a demo.
- 45:12Give Rollbar a try today.
- 45:14Go to talkpython.fm/rollbar and check them out.
- 45:18So another big piece of news that we got was that Python is starting to appear inside of
- 45:24some major applications.
- 45:25Yeah.
- 45:26Surprising ones, I would say, actually.
- 45:28They definitely surprised me.
- 45:29Yeah.
- 45:30We may have jumped the gun on the Excel and Python, but hopefully that'll happen.
- 45:34Yeah.
- 45:34If we can encourage Microsoft to do that.
- 45:37I think it's definitely one of the highest voted things, but it's not a thing yet.
- 45:42So one thing, let's start with something that is out right now in 2017.
- 45:47And that is SQL Server, Microsoft's database server, which is ubiquitously installed inside
- 45:54these large corporations, right?
- 45:56It's like inside these large Microsoft Windows enterprises, like SQL Server is just the de facto
- 46:02database.
- 46:02And what's interesting is now Python 3.5 ships inside SQL Server so you can do in-process machine
- 46:11learning against your data.
- 46:13Oh, that's great.
- 46:14Yeah.
- 46:14Cool.
- 46:15Yeah.
- 46:15So if you've got 100 gigabytes of data in your database, instead of trying to suck that across
- 46:19the network or move it around, you just write a stored procedure that is in Python and you
- 46:26can use all the Anaconda libraries, TensorFlow, all that kind of stuff like in process, which
- 46:32is really going to be pretty awesome.
- 46:34Yeah, that's great.
- 46:35So that's a concrete thing that has happened.
- 46:38A thing that may happen, has got a lot of news in the last couple of weeks is Excel.
- 46:43I'm not sure who this came from, but I think it was part of the, what is it?
- 46:46People vote on new features or something?
- 46:48On UserVoice, they have a, like, what new features do you want in Excel?
- 46:52And this is, I think, the most popular one.
- 46:53And then they sent out like kind of a survey to find out why people want it.
- 46:58We pushed it on Python Bytes to try to get more people to answer this survey.
- 47:02I personally don't care a whole lot about SQL Server or Excel, but especially with Excel,
- 47:07if currently what you use to program Excel to automate it is this thing called VBA, which
- 47:13is like a crap, it's even for Visual Basic, it's like a crappy cut down version of that,
- 47:17right?
- 47:18It's like a bad programming language.
- 47:19And so there's this push to get Python to be the new macro programming language of Python,
- 47:27of Excel inside Excel, which would be really awesome because within companies, like Excel
- 47:35is probably the biggest database, in quotes, that companies have.
- 47:39And so many people work inside of Excel and are sort of Excel experts.
- 47:45And if we could get all of those people somewhat interested in Python, that would be just positive
- 47:51across the board, I think.
- 47:52Yeah, definitely.
- 47:52It'd be great.
- 47:53Yep.
- 47:54So everyone out there, go upload this thing on User Voice.
- 47:57We'll put the link in the show notes.
- 47:58It might increase the use of Excel, which might not be a good thing.
- 48:01Yeah, that's true.
- 48:02Maybe it would be negative.
- 48:03Try to keep that down.
- 48:04All right.
- 48:05So the last one for the year has to do with Google, right?
- 48:09Google implements Python on Go.
- 48:12Is that what we have here?
- 48:14That is what we have.
- 48:15So the people at YouTube created this thing called Grumpy, which I don't know about naming
- 48:21open source projects, but if you want people to love it and to be attracted to it, call it
- 48:25Grumpy might not be the best name.
- 48:27But instead of having Python implemented in C, as it is in CPython, it's that underlying
- 48:35implementation written in Go with some of that.
- 48:38So Go's sort of claim to fame is like asynchronous from the scratch, like parallel from the very
- 48:45core of it.
- 48:46And so if you want to do the parallel asynch.io type stuff we were talking about, then having
- 48:51Go as the foundation makes that incredibly easy and powerful.
- 48:55Do you have any idea where this stage is?
- 48:58Is it still something that's going along?
- 49:00Are people contributing to it?
- 49:01That's a pretty interesting question.
- 49:03I'm not entirely sure what's going on with it.
- 49:06I actually think it's a great name.
- 49:08It's because people grumpy about having to use Go can use Python instead.
- 49:11It's not super active.
- 49:13The last check-in was November 21st.
- 49:16So that's, and you know, that's about a month ago, right?
- 49:21But this also could just be, you know, how much is Google pushing this out?
- 49:26I think what this was, was really a research project for what would it look like if we implemented
- 49:32the foundations of Python instead of with C, we'll do it with Go.
- 49:37And the reason is, this is from the YouTube team.
- 49:40And they process, well, YouTube is running the front-end parts on Python 2.7, I believe.
- 49:47And they're processing over a million requests per second.
- 49:52So they have, let's say, unique parallels and requirements.
- 49:57Yeah.
- 49:58Right?
- 49:58And so they're like, okay, well, what can we do if we wrote this in Go?
- 50:01And it's pretty interesting.
- 50:02But it's, like you sort of pointed out, it's stalled out a little bit in the last four or five
- 50:07months.
- 50:08So I'm not sure if it's going to go somewhere, if it's like being worked on internally, and
- 50:12then they're going to release it, or I don't know.
- 50:14Maybe somebody from YouTube can contact us and tell us what's going on.
- 50:17I did have them on the podcast.
- 50:20So I had a guy named Dylan Trotter on the podcast who was a major player in this at YouTube and
- 50:27talked about it.
- 50:28But that was back on episode 95.
- 50:30So the news is not super fresh.
- 50:32One of the things you brought up here in the notes is that we often think about Python as
- 50:38just CPython, but like this Grumpy is another version that's running on Go.
- 50:43But there's a whole bunch of others that...
- 50:45There's a crazy bunch of others for people who don't know.
- 50:47Yeah.
- 50:47So you have another article called How Big is the Python Family?
- 50:50Yeah.
- 50:51This is from the Czech.io guys who have like the gamification of Python learning.
- 50:56And they wrote this article called How Big is the Python Family?
- 50:59And so we already have CPython, Jython, Iron Python, or one variation of Python on .NET.
- 51:07Then there's Python 4.NET.
- 51:08There's Cython.
- 51:09There's PyPy.
- 51:10There's MicroPython.
- 51:11And now we have Grumpy.
- 51:13And there's also some others with Java that I can't remember the name of, but it wasn't
- 51:17in the article.
- 51:17I think that's cool that people are tackling it for different things.
- 51:20I'm really excited to see MicroPython keep growing.
- 51:23Yeah.
- 51:24I'm actually really excited about MicroPython.
- 51:26So those of you who don't know, MicroPython runs on microcontrollers, so like $5 chips.
- 51:31And basically your Python program is the running operating system on there.
- 51:36And you can just do whatever you want.
- 51:38You can do insane things like you can actually take a Lambda expression and hook it directly
- 51:43to a hardware interrupt on the microcontroller.
- 51:45Yeah, that's just awesome.
- 51:46I mean, it's such a cool little project.
- 51:48Nice.
- 51:50All right.
- 51:50Well, that's our year in review.
- 51:52I know we missed a bunch of things.
- 51:53And if you feel like something's important, go to talkpython.fm/145 and put an entry
- 52:00in the show notes.
- 52:00But before we kind of round out what we want to talk about, there's a couple of honorable
- 52:05mentions left there, Brian.
- 52:07I think it was notable that you, both the podcast Python Bytes and Talk Python, hit every week
- 52:13of the year in 2017, which is pretty awesome.
- 52:16Thank you.
- 52:17Yeah, that's actually quite awesome.
- 52:19And thanks for your help with that, because I went and tooled around Europe and the Middle
- 52:24East for like four weeks.
- 52:26And you and some other folks kept it rolling.
- 52:28So awesome.
- 52:28Oh, that's right.
- 52:29We had some guest hosts.
- 52:30That was fun.
- 52:31That's right.
- 52:31And Test and Code had seven episodes.
- 52:34I'm going to try to get an eighth out before the end of the year.
- 52:36That's not as impressive, but still going.
- 52:40No, but you did 52 weeks of Python Bytes as well.
- 52:43And that was awesome.
- 52:44Those were very fun.
- 52:44And the ones that you did have on Test and Code were really good.
- 52:49The Chaos Monkey and some of the other ones, really, really nice.
- 52:52All right.
- 52:53Thanks.
- 52:53One of the most, like the most recent one with testing in machine learning and data science
- 53:00with Catherine was really popular, which is great.
- 53:02That's cool.
- 53:03Yeah, she does a great job.
- 53:04The other thing, we didn't bring them up because they weren't huge stories to talk about.
- 53:08But I think there's a trend to more and more people embracing virtual environments with
- 53:13things like PipEnv coming along.
- 53:16And I think that's a good thing.
- 53:18People should be using more of those.
- 53:20So yay.
- 53:21Yeah, yeah, absolutely.
- 53:22We have PipEnv.
- 53:23We got Tox.
- 53:24And there's some other ones as well.
- 53:27I think Fade was one that would do interesting things.
- 53:30There's a lot of libraries that are really trying to make virtual environments just seamless.
- 53:35It's really nice.
- 53:35I've been using PyCharm a lot.
- 53:37And it has picked up its game with using local virtual environments, too.
- 53:43And that's a good thing.
- 53:44I love that.
- 53:44Create a new project that says, all right, new virtual environment and a well-known folder
- 53:50within this project.
- 53:51Unless you want to say otherwise.
- 53:52This is what we're doing.
- 53:53I really think that's the right move.
- 53:54Yeah, it's great.
- 53:55Awesome.
- 53:55Another big thing, which you hinted at at the beginning, is you shipped your book, which
- 53:59was quite the long labor of work.
- 54:02But you have your Python testing with pytest out.
- 54:05And that's been going strong, right?
- 54:06It's been phenomenal.
- 54:08And people have been sending me pictures on Twitter of them and their book all over the
- 54:13world.
- 54:13I've got one picture from France and one all over, a couple in Africa.
- 54:19It's pretty cool to see all over the world.
- 54:21It's great.
- 54:22Yeah, it's been great to sort of sit on the sidelines and watch the reception of your
- 54:25book.
- 54:26So it's on Pragmatic.
- 54:27You can get it there in paperback or digital.
- 54:30And you can also get it on Amazon, right?
- 54:32Yeah, definitely.
- 54:32Awesome.
- 54:33Okay.
- 54:34So it's time to ask you the two questions that are always at the end of the show.
- 54:38All right.
- 54:39All right.
- 54:39So what is your...
- 54:41If you're going to write some Python codes, let's say it that way, what editor do you open
- 54:44up?
- 54:44Now it's PyCharm.
- 54:46When you interviewed me a couple of years ago, it was sublime, but I have fully switched
- 54:51to PyCharm.
- 54:52Interesting.
- 54:52I mean, that's my favorite as well.
- 54:54Everyone knows.
- 54:54I go on and on about it.
- 54:56But tell me why.
- 54:56Like, what was the motivation?
- 54:58The integration with pytest, of course, is pretty darn good.
- 55:01And they're working with me to try to get it even more integrated, which I'm pretty impressed
- 55:06with the development team to be responsive to some of my requests.
- 55:09Yeah, that's awesome.
- 55:10They are very responsive.
- 55:11The other thing is I write a lot of Markdown, and the Markdown plugins make writing Markdown
- 55:18in PyCharm just very, very nice.
- 55:21So it's got a side-by-side viewer, and it's cool.
- 55:24I like it.
- 55:25Yeah, nice.
- 55:25All right.
- 55:26And notable PyPI package?
- 55:28Well, pytest.
- 55:29Awesome.
- 55:30But I want to add that when I'm using pytest, lately, I'm always adding the pytest HTML plugin
- 55:38from Mozilla to make reports.
- 55:41It's pretty cool.
- 55:41Okay, nice.
- 55:42So you get better, like, HTML-friendly, pretty output, not just text logs.
- 55:47And it pops up, like, some JavaScript widgets so that you can filter and sort and all sorts
- 55:54of great things.
- 55:54Yeah, we started the show talking about, with our first item, talking about the Python 3
- 55:59and the type annotation stuff with PyAnnotate, mypy, MonkeyTypes, and all that.
- 56:04pytest has some PyAnnotate integrations as well, right?
- 56:07Oh, right.
- 56:08Yeah, I forgot about that.
- 56:09That's pretty cool.
- 56:10Yeah, I can't remember.
- 56:10Was that PyAnnotate-pytest or pytest-PyAnnotate or pytestAnnotate?
- 56:15I don't know.
- 56:16I could put the link in the show notes, but yeah, it's pretty cool.
- 56:18All right.
- 56:19All right.
- 56:19All right.
- 56:19Well, I think it's been quite the year in the Python space for 2017.
- 56:25So any final thoughts on what you've observed?
- 56:29I just want to thank everybody for their support of both this podcast and all the Python podcasts
- 56:35out there.
- 56:35And I want to mention to people that if you like this sort of banter of a couple of people
- 56:41talking about what's going on in the Python world, you should also check out Python Bytes
- 56:45if you haven't already.
- 56:46I also want to say thanks.
- 56:47That's a great point.
- 56:48People out there who listen and give us feedback and really enjoy what we're doing, that's why
- 56:53we can do this, right?
- 56:54So thank you, everyone.
- 56:55And definitely visit pythonbytes.fm and subscribe over there because we do this kind of stuff
- 57:01more or less weekly, but in shorter form over on Python Bytes.
- 57:05The number of people that showed up to say hi to us at PyCon, we had a booth there.
- 57:10That was an incredible turnout.
- 57:12A lot of people, a lot of listeners coming up and talking with us.
- 57:15It was great.
- 57:15Yeah.
- 57:15That was really, really awesome.
- 57:17And we're going to do it this year, right?
- 57:18In Cleveland.
- 57:18Yeah, definitely.
- 57:19Brian and I have a booth lined up along with some other folks.
- 57:22And so be sure to stop by in 2018.
- 57:25And get your PyCon ticket because it's going to sell out very soon.
- 57:29Definitely.
- 57:29I got mine.
- 57:30I got mine as well.
- 57:31All right, Brian.
- 57:32Thank you so much for getting together and sharing this look back at 2017 with me.
- 57:36Oh, yeah.
- 57:37Thank you.
- 57:37You bet.
- 57:37Bye.
- 57:38This has been another episode of Talk Python To Me.
- 57:41Today's guest was Brian Okken.
- 57:44And this episode has been brought to you by Linode and Rollbar.
- 57:47Linode is bulletproof hosting for whatever you're building with Python.
- 57:51Get your four months free at talkpython.fm/linode.
- 57:56Just use the code python17.
- 57:58Rollbar takes the pain out of errors.
- 58:02They give you the context and insight you need to quickly locate and fix errors that
- 58:06might have gone unnoticed until your users complain, of course.
- 58:09As Talk Python To Me listeners, track a ridiculous number of errors for free at
- 58:14rollbar.com slash talkpythontome.
- 58:16Are you or a colleague trying to learn Python?
- 58:19Have you tried books and videos that just left you bored by covering topics point by point?
- 58:23Well, check out my online course Python Jumpstart by building 10 apps at talkpython.fm/course
- 58:29to experience a more engaging way to learn Python.
- 58:32And if you're looking for something a little more advanced, try my Write Pythonic code course
- 58:37at talkpython.fm/pythonic.
- 58:40Be sure to subscribe to the show.
- 58:42Open your favorite podcatcher and search for Python.
- 58:44We should be right at the top.
- 58:46You can also find the iTunes feed at /itunes, Google Play feed at /play, and
- 58:51direct RSS feed at /rss on talkpython.fm.
- 58:55This is your host, Michael Kennedy.
- 58:57Thanks so much for listening.
- 58:58I really appreciate it.
- 58:59Now, get out there and write some Python code.
- 59:01I'll see you next time.
- 59:21Thank you.