Expert-Python-Programming-2nd-Edition-Become-an-ace-Python-programmer-by-learning-best-coding-practices-and-advance-level-concepts-with-Python-3-5.pdf
《Expert-Python-Programming-2nd-Edition-Become-an-ace-Python-programmer-by-learning-best-coding-practices-and-advance-level-concepts-with-Python-3-5.pdf》由会员分享,可在线阅读,更多相关《Expert-Python-Programming-2nd-Edition-Become-an-ace-Python-programmer-by-learning-best-coding-practices-and-advance-level-concepts-with-Python-3-5.pdf(536页珍藏版)》请在文库网上搜索。
1、www.it-ebooks.infoExpert Python ProgrammingSecond EditionBecome an ace Python programmer by learning best coding practices and advance-level concepts with Python 3.5Micha JaworskiTarek ZiadBIRMINGHAM - MUMBAIwww.it-ebooks.infoExpert Python ProgrammingSecond EditionCopyright 2016 Packt PublishingAll
2、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
3、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 authors, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or
4、 alleged to be 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.Fi
5、rst published: September 2008Second edition: May 2016Production reference: 1160516Published by Packt Publishing Ltd.Livery Place35 Livery StreetBirmingham B3 2PB, UK.ISBN 978-1-78588-685-www.it-ebooks.infoCreditsAuthorsMicha JaworskiTarek ZiadReviewerFacundo BatistaCommissioning EditorKunal ParikhAc
6、quisition EditorMeeta RajaniTechnical EditorPankaj KadamCopy EditorLaxmi SubramanianProofreaderSafis EditingIndexerRekha NairGraphicsJason MonteiroProduction CoordinatorAparna BhagatCover WorkAparna Bhagatwww.it-ebooks.infoAbout the AuthorsMicha Jaworski has 7 years of experience in Python. He is al
7、so the creator of graceful, which is a REST framework built on top of falcon. He has been in various roles at different companies: from an ordinary full-stack developer through software architect to VP of engineering in a fast-paced start-up company. He is currently a lead backend engineer in TV Sto
8、re team at Opera Software. He is highly experienced in designing high-performance distributed services. He is also an active contributor to some of the popular Python open source projects.Tarek Ziad is an engineering manager at Mozilla, working with a team specialized in building web services in Pyt
9、hon at scale for Firefox. Hes contributed to the Python packaging effort and has worked with a lot of different Python web frameworks since Zope in the early days.Tarek has also created Afpy, the French Python User Group, and has written two books on Python in French. He has delivered numerous talks
10、 and tutorials in French at international events such as Solutions Linux, PyCon, OSCON, and EuroPython.www.it-ebooks.info欢迎加入非盈利Py t h o n 编程学习交流QQ群783462347,群里免费提供500+本Py t h o n 书籍!About the ReviewerFacundo Batista is a specialist in the Python programming language, with more than 15 years of expe
11、rience with it. He is a core developer of the language, and a member by merit of the Python Software Foundation. He also received the 2009 Community Service Award for organizing PyCon Argentina and the Argentinian Python community as well as contributions to the standard library and work in translat
12、ing the Python documentation.He delivers talks in the main Python conferences in Argentina and other countries (The United States and Europe). In general, he has strong distributed collaborative experience from being involved in FLOSS development and working with people around the globe for more tha
13、n 10 years.He worked as a telecommunication engineer at Telefnica Mviles and Ericsson, and as a Python expert at Cyclelogic (developer in chief) and Canonical (senior software developer, his current position).He also loves playing tennis, and is a father of two wonderful children.www.it-ebooks.info欢
14、迎加入非盈利Py t h o n 编程学习交流QQ群783462347,群里免费提供500+本Py t h o n 书籍!www.PacktPeBooks, discount offers, and moreDid 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.PacktP and as a print book customer, you are e
15、ntitled to a discount on the eBook copy. Get in touch with us at for more details.At www.PacktP, 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.TMhttps:/ you need instant solution
16、s to your IT questions? PacktLib is Packts online digital book library. Here, you can search, access, and read Packts entire library of books.Why subscribe? Fully searchable across every book published by Packt Copy and paste, print, and bookmark content On demand and accessible via a web browserwww
17、.it-ebooks.info欢迎加入非盈利Py t h o n 编程学习交流QQ群783462347,群里免费提供500+本Py t h o n 书籍! i Table of ContentsPreface xiChapter 1: Current Status of Python 1Where are we now and where we are going? 2Why and how does Python change? 2Getting up to date with changes PEP documents 3Python 3 adoption at the time of w
18、riting this book 4The main differences between Python 3 and Python 2 5Why should I care? 5The main syntax differences and common pitfalls 5Syntax changes 6Changes in the standard library 7Changes in datatypes and collections 8The popular tools and techniques used for maintaining cross-version compat
19、ibility 8Not only CPython 12Why should I care? 13Stackless Python 13Jython 14IronPython 14PyPy 15Modern approaches to Python development 16Application-level isolation of Python environments 17Why isolation? 19Popular solutions 21virtualenv 21venv 23buildout 24Which one to choose? 24www.it-ebooks.inf
20、o欢迎加入非盈利Py t h o n 编程学习交流QQ群783462347,群里免费提供500+本Py t h o n 书籍!Table of Contents ii System-level environment isolation 25Virtual development environments using Vagrant 26Containerization versus virtualization 27Popular productivity tools 28Custom Python shells IPython, bpython, ptpython, and so on 2
21、9Setting up the PYTHONSTARTUP environment variable 30IPython 30bpython 30ptpython 31Interactive debuggers 31Useful resources 32Summary 33Chapter 2: Syntax Best Practices below the Class Level 35Pythons built-in types 36Strings and bytes 36Implementation details 38String concatenation 39Collections 4
22、0Lists and tuples 40Dictionaries 45Sets 49Beyond basic collections the collections module 50Advanced syntax 51Iterators 51The yield statement 52Decorators 56General syntax and possible implementations 57Usage and useful examples 61Context managers the with statement 68General syntax and possible imp
23、lementations 69Other syntax elements you may not know yet 72The for else statement 73Function annotations 73The general syntax 74The possible uses 74Summary 75Chapter 3: Syntax Best Practices above the Class Level 77Subclassing built-in types 78Accessing methods from superclasses 80Old-style classes
24、 and super in Python 2 82Understanding Pythons Method Resolution Order 83www.it-ebooks.info欢迎加入非盈利Py t h o n 编程学习交流QQ群783462347,群里免费提供500+本Py t h o n 书籍!Table of Contents iii super pitfalls 87Mixing super and explicit class calls 87Heterogeneous arguments 89Best practices 90Advanced attribute access
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- Expert Python Programming nd Edition Become an ace programmer by learning best coding practices and
链接地址:https://www.wenkunet.com/p-5737780.html