Python Interviews Discussions with Python Experts 1st Edition Mike Driscoll download
Python Interviews Discussions with Python Experts 1st Edition Mike Driscoll download
https://ebookname.com/product/python-interviews-discussions-with-
python-experts-1st-edition-mike-driscoll/
https://ebookname.com/product/bayesian-analysis-with-python-1st-
edition-martin/
https://ebookname.com/product/machine-learning-with-python-1st-
edition-oliver-theobald/
https://ebookname.com/product/starting-out-with-python-3rd-
edition-tony-gaddis/
https://ebookname.com/product/mastering-ext-js-avancini/
Laser Ignition of Energetic Materials 1st Edition S
Rafi Ahmad
https://ebookname.com/product/laser-ignition-of-energetic-
materials-1st-edition-s-rafi-ahmad/
https://ebookname.com/product/company-to-company-a-task-based-
approach-to-business-emails-letters-and-faxes-student-s-book-4th-
edition-andrew-littlejohn/
https://ebookname.com/product/nursing-informatics-scope-and-
standards-of-practice-2nd-edition-american-nurses-association/
https://ebookname.com/product/annotated-fair-work-act-related-
legislation-2017-2017-edition-edition-joe-catanzariti/
https://ebookname.com/product/the-first-telephone-first-american-
edition-bell/
The Mississippian Emergence 1st Edition Bruce D. Smith
https://ebookname.com/product/the-mississippian-emergence-1st-
edition-bruce-d-smith/
Python
Interviews
Mike Driscoll
BIRMINGHAM - MUMBAI
Python Interviews
Copyright © 2018 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval
system, or transmitted in any form or by any means, without the prior written
permission of the publisher, except in the case of brief quotations embedded
in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the
accuracy of the information presented. However, the information contained in
this book is sold without warranty, either express or implied. Neither the author,
nor Packt Publishing or its dealers and distributors, will be held liable for any
damages caused or alleged to have been caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all
of the companies and products mentioned in this book by the appropriate use
of capitals. However, Packt Publishing cannot guarantee the accuracy of this
information.
Acquisition Editor: Ben Renow-Clarke
Project Editor: Radhika Atitkar
Content Development Editors: Joanne Lovell
Technical Editor: Gaurav Gavas
Copy Editor: Joanne Lovell
Indexer: Tejal Daruwale Soni
Graphics: Tom Scaria
Production Coordinator: Arvindkumar Gupta
"Python" and the Python Logo are trademarks of the Python Software
Foundation.
mapt.io
Mapt is an online digital library that gives you full access to over
5,000 books and videos, as well as industry leading tools to help
you plan your personal development and advance your career. For
more information, please visit our website.
Why subscribe?
Spend less time learning and more time coding
with practical eBooks and Videos from over 4,000
industry professionals
Learn better with Skill Plans built especially for you
Get a free eBook or video every month
Mapt is fully searchable
Copy and paste, print, and bookmark content
PacktPub.com
Did you know that Packt offers eBook versions of every book
published, with PDF and ePub files available? You can upgrade
to the eBook version at www.PacktPub.com and as a print book
customer, you are entitled to a discount on the eBook copy. Get
in touch with us at [email protected] for more details.
At www.PacktPub.com , you can also read a collection of free
technical articles, sign up for a range of free newsletters, and
receive exclusive discounts and offers on Packt books and eBooks.
Foreword
Kenneth Reitz
Director at Large for the Python Software Foundation
Contributor
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 349
Page ii
Preface
Near the end of 2016, I was brainstorming with my editor about
the kinds of books might be of interest. I had been doing a series
of articles on my blog called PyDev of the Week that inspired us into
crafting a book based on interviewing core members of the Python
community. I spent some time hashing out 20 names of people that
I thought would be good for the book and then I started contacting
them in 2017.
In this book, you will get interesting anecdotes about the history of
Python and its creators, such as Brett Cannon and Nick Coghlan.
You will discover why Python didn't have Unicode support in its
first release, and you'll hear from core developers about where they
think Python is going in the future. You will also hear from some
well-known Python authors, like Al Sweigart, Luciano Ramalho, and
Doug Hellman.
I think you will find Alex Martelli and Steve Holden's interviews
to be especially compelling as they have been working with Python
for a very long time and have many interesting insights.
There is a lot to learn from all the individuals that I spoke with.
If you happen to know them, you know that even better than I
do. All of them were great to chat with and very responsive to me
even on the shortest of timelines. If you happen to meet them at
a conference, be sure to thank them for their contributions.
Special thanks go out to all the people I interviewed. They took time
out of their lives to help me with this project and I truly appreciate
it. I also want to thank my editors for keeping this project on
track. Finally, I would like to thank my wife, Evangeline, for putting
up with me interviewing people at random times throughout the
summer. And finally, I want to thank you, dear reader, for checking
out this book.
Page iv
1
Brett Cannon
Brett Cannon is a Canadian software
engineer and Python core developer.
He is a principal software developer at
Microsoft, where he works on editing
tools. Previous roles include software
engineer at Google and creator at
Oplop. Brett became a fellow of the
Python Software Foundation (PSF) in
2003 and served as a director of the
PSF between 2013 and 2014. He is a former PyCon US committee
member and was conference chair of PyData Seattle 2017. Brett
led the migration of CPython to GitHub and created importlib.
Among his open source achievements is caniusepython3 and he is the
co-author of 17 successful Python Enhancement Proposals.
In the year between junior high and high school, I took a computer
class over the summer and that included a little bit of Apple BASIC.
I did it and I excelled at it, to the point that I think I finished the
entire class in the first week. It hadn't really clicked that I could do
that for a job at that point.
This continued through high school, and then when it came time
to pick courses for junior college, my mom had me promise her
two things. I agreed that I would take a course in philosophy and
I would take a course in computer programming. So that's what I
did and I loved both.
Page 2
Brett Cannon
Page 3
Brett Cannon
It still ticked me off, though, that people had to input their locale
information. I was frustrated that I couldn't solve that. So in the
back of my mind, I was continuously thinking about how I could
get that locale information out. Eventually, I solved it. It was actually
the week after graduating from Berkeley, and I gifted myself the
time to write up the solution, so that you didn't have to enter locale
information anymore.
After I did that, I emailed Alex Martelli, since we'd exchanged emails
a couple of times at that point, and I said, "Hey, I've fixed this so
it's not necessary to input the locale anymore. How do I get this
upstream?" Alex Martelli said, "Oh, well you just email this mailing
list, Python-Dev, and you can submit the patch."
Page 4
Brett Cannon
So, I emailed the list and I think Skip Montanaro was the first
person to respond. Skip just said, "Yeah, that's great, just upload the
file and we'll work at it and accept it." I thought that was awesome.
I was able to contribute to this project and this language, which I
thought was really interesting.
One interesting side effect was that I got to know about any small
issues that nobody had time to take care of, so I saw anything that
cropped up before almost anybody else. I was able to very easily
pick up small issues to fix and learn, and I was able to continually
do that.
Page 5
Brett Cannon
https://wiki.python.org/moin/GetInvolved
That doesn't mean that you have to be a core developer to get into
the Python community. As long you enjoy it, you can get hooked
however it makes sense to you.
Driscoll: What then made you decide to start blogging and writing
about Python?
Driscoll: Was it important that you got into Python at just the right
time? Do you recommend getting in early on projects?
Page 6
Brett Cannon
I also got started when the Python project wasn't that big. I
remember when I started my master's degree, people would ask
what I did in my spare time. When I said I contributed to Python,
they'd reply, "Is that the language with the white space?" So I've
just been doing this for a long time.
Page 7
Brett Cannon
Jeremy Hilton had started that project, and Guido van Rossum
basically gave everyone an ultimatum, because the project had been
taking years to finish. So Guido said, "You have until the next
release to finish this."
I jumped in and helped Jeremy to carry it the last half of the way.
I did a similar thing with the warnings module. Neil Norbits had
started to implement it, but he kind of drifted off the project, so I
picked it up and finished it the rest of the way. That's how I ended
up being one of the people who knew the warnings module a
little too well!
Page 8
Brett Cannon
Cannon: Yeah, if you manage to read your own code from six
months ago and it still looks good, then there's probably something
wrong. It usually means you haven't learned something new yet.
Cannon: Probably just the friendships that I've made through being
one. A lot of the core developers are friends of mine.
Page 9
Brett Cannon
So yeah, it's honestly the friendships at this point. It's being able to
hang out and work with these people, learn from them and enjoy
what we do and keep doing that.
I don't think about the impact of Python very often. It's a little
mind-boggling sometimes to think about, so I try not to dwell on it.
I don't want any form of an ego because of it, so I try to actively
not think about it too much. If I do just sit here and think about
working on this language that's used by however many millions of
developers, then that's a bit of an eye-opener. It's kind of cool to
be able to say that I work on that, but primarily it's about getting
to work with friends.
I still remember very clearly when I first joined the team, and even
further back when I joined the mailing list, so although people say
I'm one of these big high-up leads on the Python developer team,
I've never fully acclimated to that idea. I just don't think of myself
that way. Guido famously was once asked at Google, "On a scale
of one to ten, how well do you know Python?" He said an eight.
Page 10
Brett Cannon
No one knows the entire system, because it's way too big a program
to know. We can all fit the basic semantics in our heads, but not
all the intricate details of how it actually works. How many people
know descriptors or meta classes like the back of their hand? I
have to look up that stuff on occasion, so nobody knows the
whole system.
The one place I know we're still second with Python is in data
science. I think our growth trends project that Python won't
immediately overtake R as a data science language in the next couple
of years at least. But long term, I do think that Python will catch
up. Otherwise, I just don't know very many other fields, that don't
require a systems language, where we aren't competitive for first
place with Python.
Page 11
Brett Cannon
Page 12
Brett Cannon
Page 13
Brett Cannon
Page 14
Another Random Document on
Scribd Without Any Related Topics
"Thus saith Jehovah:
Behold, they to whom it pertained not to drink of the
cup shall assuredly drink.
Art thou he that shall go altogether unpunished?
Thou shalt not go unpunished, but thou shalt
assuredly drink" (12).
There was obviously but one leader who could lead the nations to
achieve the overthrow of Edom and lead her little ones away captive,
who could come up like a lion from the thickets of Jordan, or "flying
like an eagle and spreading his wings against Bozrah" (22)—
Nebuchadnezzar, king of Babylon, who had come up against Judah
with all the kingdoms and peoples of his dominions.[233]
In this picture of chastisement and calamity, there is one apparent
touch of pitifulness:—
"Leave thine orphans, I will preserve their lives;
Let thy widows put their trust in Me" (11).
At first sight, at any rate, these seem to be the words of Jehovah. All
the adult males of Edom would perish, yet the helpless widows and
orphans would not be without a protector. The God of Israel would
watch over the lambs of Edom,[234] when they were dragged away
into captivity. We are reluctant to surrender this beautiful and
touching description of a God, who, though He may visit the iniquity
of the fathers upon the children unto the third and fourth
generation, yet even in such judgment ever remembers mercy. It is
impossible, however, to ignore the fact that such ideas are widely
different from the tone and sentiment of the rest of the section.
These words may be an immediate sequel to the previous verse, "No
Edomite survives to say to his dying brethren, Leave thine orphans
to me," or possibly they may be quoted, in bitter irony, from some
message from Edom to Jerusalem, inviting the Jews to send their
wives and children for safety to Mount Seir. Edom, ungrateful and
treacherous Edom, shall utterly perish—Edom that offered an asylum
to Jewish refugees, and yet shared the plunder of Jerusalem and
betrayed her fugitives to the Chaldeans.
There is no word of restoration. Moab and Ammon and Elam might
revive and flourish again, but for Esau, as of old, there should be no
place of repentance. For Edom, in the days of the Captivity,
trespassed upon the inheritance of Israel more grievously than
Ammon and Moab upon Reuben and Gad. The Edomites possessed
themselves of the rich pastures of the south of Judah, and the land
was thenceforth called Idumea. Thus they earned the undying
hatred of the Jews, in whose mouths Edom became a curse and a
reproach, a term of opprobrium. Like Babylon, Edom was used as a
secret name for Rome, and later on for the Christian Church.
Nevertheless, even in this prophecy, there is a hint that these
predictions of utter ruin must not be taken too literally:—
"For, behold, I will make thee small among the nations,
Despised among men" (15).
These words are scarcely consistent with the other verses, which
imply that, as a people, Edom would utterly perish from off the face
of the earth. As a matter of fact, Edom flourished in her new
territory till the time of the Maccabees, and when the Messiah came
to establish the Kingdom of God, instead of "saviours standing on
Mount Zion to judge the Mount of Esau,"[235] an Edomite dynasty
was reigning in Jerusalem.
CHAPTER XXII
DAMASCUS
xlix. 23-27.
"I will kindle a fire in the wall of Damascus, and it shall devour
the palaces of Benhadad."—Jer. xlix. 27.
"Arise, go up to Kedar;
Spoil the men of the east.
They (the Chaldeans) shall take away their tents and
flocks;
They shall take for themselves their tent-coverings,
And all their gear and their camels:
Men shall cry concerning them,
Terror on every side."[240]
Then the prophet turns to the more distant Hazor with words of
warning:—
like the people of Laish before the Danites came, and like Sparta
before the days of Epaminondas.
Possibly we are to combine these successive "utterances," and to
understand that it was alike Jehovah's will that the Chaldeans should
invade and lay waste Hazor, and that the unfortunate inhabitants
should escape—but escape plundered and impoverished: for
"I will break the bow of Elam, the chief of their might."—Jer.
xlix. 35.
These verses imply that the Jews were already in Babylon, and
throughout the author assumes the circumstances of the Exile. "The
vengeance of the Temple," i.e. vengeance for the destruction of the
Temple at the final capture of Jerusalem, is twice threatened.[247]
The ruin of Babylon is described as imminent:—
The gods of Babylon, Bel and Merodach, and all her idols, are
involved in her ruin, and reference is made to the vanity and folly of
idolatry.[252] But the wrath of Jehovah has been chiefly excited, not
by false religion, but by the wrongs inflicted by the Chaldeans on His
Chosen People. He is moved to avenge His Temple[253]:—
The Jews are urged to flee from Babylon, lest they should be
involved in its punishment, and are encouraged to return to
Jerusalem and enter afresh into an everlasting covenant with
Jehovah. As in Jeremiah xxxi., Israel is to be restored as well as
Judah:—
NOTE
SOME CHARACTERISTIC EXPRESSIONS OF JEREMIAH
This note is added partly for convenience of reference, and partly to
illustrate the repetition just mentioned as characteristic of Jeremiah.
The instances are chosen from expressions occurring in chapters
xxi.-lii. The reader will find fuller lists dealing with the whole book in
the Speaker's Commentary and the Cambridge Bible for Schools and
Colleges. The Hebrew student is referred to the list in Driver's
Introduction, upon which the following is partly based.
1. Rising up early: vii. 13, 25; xi. 7; xxv. 3, 4; xxvi. 5; xxix. 19; xxxii.
33; xxxv. 14, 15; xliv. 4. This phrase, familiar to us in the narratives
of Genesis and in the historical books, is used here, as in 2 Chron.
xxxvi. 15, of God addressing His people on sending the prophets.
2. Stubbornness of heart (A.V. imagination of heart): iii. 17; vii. 24;
ix. 14; xi. 8; xiii. 10; xvi. 12; xviii. 12; xxiii. 17; also found Deut. xxix.
19 and Ps. lxxxi. 15.
3. The evil of your doings: iv. 4; xxi. 12; xxiii. 2, 22; xxv. 5; xxvi. 3;
xliv. 22; also Deut. xxviii. 20; 1 Sam. xxv. 3; Isa. i. 16; Hos. ix. 15;
Ps. xxviii. 4; and in slightly different form in xi. 18 and Zech. i. 4.
The fruit of your doings: xvii. 10; xxi. 14; xxxii. 19; also found in
Micah vii. 13.
Doings, your doings, etc., are also found in Jeremiah and elsewhere.
4. The sword, the pestilence, and the famine, in various orders, and
either as a phrase or each word occurring in one of three successive
clauses: xiv. 12; xv. 2; xxi. 7, 9; xxiv. 10; xxvii. 8, 13; xxix. 17, 18;
xxxii. 24, 36; xxxiv. 17; xxxviii. 2; xlii. 17, 22; xliv. 13.
The sword and the famine, with similar variations: v. 12; xi. 22; xiv.
13, 15, 16, 18; xvi. 4; xviii. 21; xlii. 16; xliv. 12, 18, 27.
Cf. similar lists, etc., "death ... sword ... captivity" in xliii. 11; "war ...
evil ... pestilence," xxviii. 8.
5. Kings ... princes ... priests ... prophets, in various orders and
combinations: ii. 26; iv. 9; viii. 1; xiii. 13; xxiv. 8; xxxii. 32.
Cf. Prophet ... priest ... people, xxiii. 33, 34. Prophets ... divines ...
dreamers ... enchanters ... sorcerers, xxvii. 9.
Welcome to our website – the ideal destination for book lovers and
knowledge seekers. With a mission to inspire endlessly, we offer a
vast collection of books, ranging from classic literary works to
specialized publications, self-development books, and children's
literature. Each book is a new journey of discovery, expanding
knowledge and enriching the soul of the reade
Our website is not just a platform for buying books, but a bridge
connecting readers to the timeless values of culture and wisdom. With
an elegant, user-friendly interface and an intelligent search system,
we are committed to providing a quick and convenient shopping
experience. Additionally, our special promotions and home delivery
services ensure that you save time and fully enjoy the joy of reading.
ebookname.com