Mark Pilgrim's Dive Into Python 3 is a hands-on guide to Python 3 (the latest version of the Python language) and its differences from Python 2. As in the original book, Dive Into Python, each chapter starts with a real, complete code sample, proceeds to pick it apart and explain the pieces, and then puts it all back together in a summary at the end.
This book includes:
* Example programs completely rewritten to illustrate powerful new concepts now available in Python 3: sets, iterators, generators, closures, comprehensions, and much more
* A detailed case study of porting a major library from Python 2 to Python 3
* A comprehensive appendix of all the syntactic and semantic changes in Python 3
This is the perfect resource for you if you need to port applications to Python 3, or if you like to jump into languages fast and get going right away.
What you'll learn
* Understand Python 3 code by seeing it broken down and explained
* Make full use of the latest Python features such as iterators, generators, closures, classes and comprehensions
* Refactor existing code to improve maintainability
* Learn how to serialize Python objects with the pickle protocol and JSON format
* Learn how to package your own Python libraries and upload them to the Python Package Index to share your projects with Python developers worldwide
* Use Python 3 to consume HTTP web services
* Port existing Python applications to Python 3 by following a case study for a major library
Who is this book for?
* Anyone who wants to learn the latest version of Python in a fast, hands-on fashion
* Existing Python programmers who want to learn quickly how to make the most of the features of the latest version of Python and port their code to it
* Programmers coming from other languages wanting a fast introduction to Python that gets them thinking about advanced concepts quickly
By day, Mark Pilgrim is a developer advocate for open source and open standards. By night, he is a husband and father who lives in North Carolina with his wife, his two sons, and his big slobbery dog. He spends his copious free time sunbathing, skydiving, and making up autobiographical information.
Otherpeopleponderedthesequestions,andtheycameupwithasolution:
——引自第110页
Thistechniqueofusingthevaluesofoutsideparameterswithinadynamicfunctioniscalledclosures.
——引自第160页
《形式综合论》(Notes On The Synthesis of Form)是亚历山大最重要且最常被引用的著作之一,该书奠定了亚历山大一生学术工作的基础,同时...
《大话移动通信》是一本通俗易懂的移动通信技术读物。作者力求用最通俗、幽默、风趣的语言,从身边的通信讲起,历数古代通信到现代通信的发展历程及从最基础、最通用的通信...
Fredric Jameson认为,我们可以把(欧洲)六十年代想像为资本和强权国家在全球退败的一个时期,也可以把这个年代构想成资本借助崭新的生产技术和全副武装的...
作品目录第9話 春の巻 9第10話 春の巻 10第11話 夏の巻 1第12話 夏の巻 2第13話 夏の巻 3第14話 夏の巻 4第15話 夏
AdentistliesmurderedathisHarleyStreetpractice...Thedentistwasfoundwithablackened...
工程质量事故分析与处理 本书特色 本书由中国土木工程学会教育工作委员会江苏分会组织编写。本书根据普通高等学校培养应用型人才的要求及现行的规范、标准和法规编写。本...
★★★你的每个矛盾时刻,身体里都在演绎爆笑漫画!荣登《纽约时报》畅销榜,作者官网月浏览量超过200万次,脸书、Instagram百万粉丝漫画家尼克•塞鲁克绘著!...
精彩摘录但每每有空,她还是要悲伤一下。就算完全没感觉的时候也要挤出几滴眼泪。那刻意的掩面而泣在她看来和发自肺腑的一样真实
李银河,社会学家。美国匹兹堡大学社会学博士,中国社会科学院社会学所研究员、教授,长期关注两性的学术问题,包括性、性别、婚姻等等,走在社会的前沿。主要研究领域为家...
张建夫名老中医医案 本书特色 本书共分五章,**章为医案概要,介绍了医案的概念和作用、医案的分类与书写、医案的发展沿革、历代名家医案赏析和阅读。第二章介绍了张建...
This book provides the first comprehensive treatment of feed-forward neural netw...
水木然畅销书作者。著有《价值规律》《工业4.0大革命》《跨界战争》《个体崛起》等。作者善于洞察时代变迁,总结社会规律和趋势。
當代女畫家 Marlene Dumas 马琳•杜玛斯Marlene Dumas是当前最引人注目的女性画家。通常被称为“精神表现主义者 ”, 她的含有性隐喻的绘画...
草庐医录-步连珍五十年中医临证精要 本书特色 本书稿是作者中医临症五十年之精华,全书分为上中下三篇,从医论、医话、医案三方面阐述。通览全书不难发现作者以临床实践...
被称为业界传奇LoneIy Planet出版公司的创始人托尼.惠勒和莫琳· 惠勒已经出版了很多的旅行指南,这些指南覆盖了这个星球的每一个国家。Lonely Pl...
为十天苦等13年《灌篮高手十日后》完结篇正式出版,1996年的第27期《少年跳跃》上,代表着一个时代的《灌篮高手》发表了最终话:全国大赛后在沙滩边漫步疗伤的樱木...
王刚,笔名秦客,陕北清涧人,路遥同乡。路遥纪念馆研究员,作家。2007年,王刚在《陕北》编辑部获得了一份“编辑”的差事,期间住在文联二楼办公室,正是路遥曾经住过...
李三科,互联网行业资深产品经理,曾担任优信二手车资深产品经理、旷视科技首位产品经理。他成功帮助一百多位“在行”学员转行当上产品经理,是“在行”北京地区最受欢迎的...
本书精选作者孙频近十年来作者生涯中最杰出的6个中篇作品,这些作品侧重于写底层人物面对磨难与困境的挣扎,还有新旧一代关于故土的矛盾以及梦想的破碎等等。更从无数个跌...
《读书与写作》内容简介:《读书与写作》收入了季羡林关于读书、写作两个话题的经典文章,读书篇部分通过季老对开卷有益的阐述,对