Mastering Python [2016]
Mastering Python [Master the art of writing beautiful and powerful Python by using all of the features that Python 3.5 offers]Packt Publishing | 29 April 2016 | English | ISBN: 1785289721 | 486 pages | PDF | 4.30 MbPython is a dynamic programming language. It is known for its high readability anMastering PythonCopyright C 2016 Packt PublishingAll rights reserved. No part of this book may be reproduced, stored in a retrievalsystem, or transmitted in any form or by any means, without the prior writtenpermission of the publisher, except in the case of brief quotations embedded incritcal articles or reviewsEvery effort has been made in the preparation of this book to ensure the accuracysold without warranty, either express or implied. Neither the author, nor Pac 1.of the information presented However the information contained in this bookPublishing, and its dealers and distributors will be held liable for any damagescaused or alleged to be caused directly or indirectly by this bookPackt Publishing has endeavored to provide trademark information about all of thecompanies and products mentioned in this book by the appropriate use of capitalsHowever, Packt Publishing cannot guarantee the accuracy of this informationFirst published: April 2016Production reference: 1270416Published by Packt Publishing LtdLPlace35 Livery streetBirmingham B3 2PB,UKISBN978-1-78528-9729WWWCreditsAuthoProject CoordinatorRick van hattemSuzanne coutinhoReviewersProofreaderRandall deggesSafis editorde hoogtIndexerMariamman chettiyarCommissioning EditorSarah CroftonProduction coordinateNilesh mohiteAcquisition EditorReshma ramanCover workContent Development EditeArun nadaTechnical EditorsRyan KocherTanmayee PatiCopy editoVikrant Phadkabout the authorRick van hattem is an experienced programmer, entrepreneur, andsoftware/database architect with over 20 years of programming experience,including 15 with Python. Additionally, he has a lot of experience withhigh-performance architectures featuring large amounts of concurrent usersand or dataRick has founded several start-ups and has done consulting for many companies,including a few Y Combinator start-ups and several large companies. One of thestartups he founded, Fashiolista com, is one of the largest social networks for fashionin the world, featuring millions of users and the performance challengesto accompany thoseRick was one of the reviewers on the book postgres ql Server programming,Packt publishing8Thanks to my family, in particular Marloes, who supported me everystep of the way; and my mother and sister, who have always beerthere for meabout the reviewersRandall degges is a happy programmer, speaker, author, and amateurbodybuilder living in CaliforniaGrowing up in Los Angeles, he was intensely interested in building commandline programs and writing quality software. His love of programming eventuallypropelled him into a successful career in software developmentRandall has been a life- long open source developer and has contributed tohundreds of popular projects in Python, Node. js, and Go. He's also the author ofseveral popular libraries, which you can find on his public github accountathttps://github.com/rdeggesAt 23, he cofounded an extremely popular APi service in the telephony industryOpencnam(https://www.opencnam.com).At25,hejoinedStormpath(https://stormpath.comastheheadofdeveloperevangelismwherebyhewrites open source security libraries full time and travels the world giving technicaltalks about building secure softwareIn his free time, Randall writes and edits technical books, runs a security podcastcalledStormcast(https://www.stormca.st),postsblogsonhispersonalwebsite(https://www.rdegges.com),andtriestospendtimewithhishigh-schoolsweetheart, SamanthaDave de fijter is a Python developer from the Netherlands. he alwavs knew hewould end up"doing something with computers. "At a young age, he went to thelibrary to read books about them even though he had no computer at that time.This obsession never really ended. In 2001, aged 14, he started his first part-time jobcreating dynamic websites in PHP for a local web development company, and therehe found his callingIn 2007, he finished his bachelor's degree in ICT while already working full time as aPHP developer for over a year. In 2008, he switched from PHP to Py thon and djangofor web development and loved this new technology stack so much that he neverlooked backAfter working as a Python developer for various start-ups and establishedcompanies, dave used this experience to start his own business called indentity(https://indentity.nl)in2010,focusingonPython/djangodevelopmentandadvice. Up until now, he runs this company and mainly spends his time helping outstart-ups with designing and building technologically advanced web applicationsfrom the ground up as an interim CTO/technical cofounderI de Hoogt, with some basic experience wrought from university assignments in thefield of modeling of multi-phase flows, got himself started in software developmentHis main experience in programming in Python stems from an internship at acompany dealing in 3D printing software, where a package resulting in optimizedobject orientation and guaranteed mathematical mesh validity was createdOther projects that he's been involved with have dealt with control systems such asself-parking cars, multi-legged robots, and quadcopters, but his current job is in thefield of data analysisWww.Packtpub.come Books discount offers and moreDid you know that Packt offers e Book versions of every book published, with PDFandepubfilesavailableYoucanupgradetotheebookversionatwww.packtpubcom and as a print book customer, you are entitled to a discount on the e book copyGet in touch with us at customercare@packtpub com for more detailsAtwww.Packtpub.comyoucanalsoreadacollectionoffreetechnicalarticlessignup for a range of free newsletters and receive exclusive discounts and offers on Packtbooks and ebooksPPACKTLIBhttps://www2.packtpub.com/books/subscription/packtlibDo you need instant solutions to your it questions? PacktLib is Packt's online digitalbook library. Here, you can search, access, and read Packt's entire library of booksWhy subscribe?Fully searchable across every book published by packiCopy and paste, print, and bookmark contentOn demand and accessible via a web browserTable of contentsPrefaceChapter 1: Getting Started -One Environment per ProjectCreating a virtual python environment using venvCreating your first venvvenv argumentDifferences between virtualenv and venyBootstrapping pip using ensurepipensureplp usageManual pip installInstalling C/C++ packagesDebian and ubuntuRed hat. Centos, and Fedorax12346777899901OS XWindowsSummaryChapter 2: Pythonic Syntax, Common Pitfalls, and Style Guide 13Code style -or what is Pythonic code?14Formatting strings- printf-style or str format?15PEP20, the Zen of PythonBeautiful is better than uglyExplicit is better than implicitSimple is better than complex18Flat is better than nested20Sparse is better than dense20Readability counts21Practicality beats purityErrors should never pass silentlyIn the face of ambiguity, refuse the temptation to guessOne obvious way to do itNow is better than never-[]
用户评论