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页
本书是一部C/C++编程语言书,定位在C/C++语言本身的讲解上面。本书包含纸质图书以及教学源代码文件。本书共分为三部分:第1部分为C/C++语言概述(第1章)...
String algorithms are a traditional area of study in computer science. In recent...
迈克尔·卡莱特(Michael Kallet),毕业于伍斯特理工学院物理学专业。在2004年创立了HeadScratchers网站,主要面向商务专业人士及领导者...
解读社区刑罚 内容简介 大多数过去的作者在这个主题中已经讨论了这样的转变在刑事司法执法的语言的修饰和形式变化的程度,并且一些人已经追溯了他们的连接与更为广泛的社...
作家、导演、编剧青春文学领军作家,被读者誉为“校园女王”电影《剩者为王》导演、编剧、原著作者电影《悲伤逆流成河》导演、编剧电影《如果声音不记得》导演、编剧、原著...
Covering the basic techniques used in the latest research work, the author conso...
本书从数字、递归、对称、范畴、融合、无穷、悖论七个方面介绍了计算机程序的数学基础和原理,并以“同构”概念为线索揭示出编程本质上是和数学同构的。第1章介绍皮亚诺算...
BringatouchofA-listglamourtoyourtablewithover20inspirationalcelebrationcakesfrom...
现象级畅销书《一个人的朝圣》作者蕾秋·乔伊斯热情推荐,“文学女巫”安吉拉·卡特当代传人的一鸣惊人之作!·十二个怪诞的成人童话,讲述十二种畸零的人生。·在网上购买...
他見到一個穿白襯衫花裙的少女,雙眼像寶石,一臉寂寥,咀角微微下垂,那些微的愁苦叫他震撼。這是誰?此書目之摘要這是小鎮上唯一的餐車:一輛貨櫃車改裝的小食店,供應咖...
沈海燕,女,博士,上海大学哲学系副教授。先后获得上海华东师范大学中文系学士学位,美国加州大学圣芭芭拉分校亚洲研究系硕士学位,比利时国立根特大学佛学研究哲学博士学...
汤方辨证及临床 内容简介 本书对“汤方辨证”这一由《伤寒论》创立、临床常用、但尚未被充分重视的重要辨证体系进行全面整理。总论部分对“汤方辨证”的概念内涵、历史沿...
《求医不如求己家庭医学全书》是“国医健康绝学系列”的第十三本。与中里巴人前几《求医不如求已-家庭医学全书》的“感悟+方法”不同,《求医不如求已-家庭医学全书》直...
石田衣良,生于日本东京,日本当代著名作家。1997年出版中篇小说集《池袋西口公园》,凭此作品获得日本推理小说新人奖,2001年的小说《娼年》和2002年的小说《...
勇敢的人,被恐惧保护,却从不向恐惧低头。你是“害怕独自面对困难”“容易紧张”的人吗?脆弱与逃避并不是生命的瑕疵。接纳自己的本能情绪,感受更深、思虑更周、战胜更多...
克里斯•吉尔博(Chris Guillebeau),创业家,旅行者,《纽约时报》畅销书作家,著有《超越框住的人生》(The Art of Non-Conform...
急诊临床思维 内容简介 本书探讨了急诊临床思维的要点,并从哲学、数学、物理、化学和文学艺术等层面,对临床思维过程进行了较全面的解析。急诊临床思维 目录 第1章论...
作品目录前言凡例 卷號書名一覽表目錄王梵志詩校注附錄 釋亡名與敦煌文學 『但存方寸地,留與子孫耕』考 王梵志詩十一首辨偽 敦
Performance is critical to the success of any web site, and yet todays web appli...
身在中医-走进中医的世界 本书特色 让普通百姓走近中医了解中医接受中医信任中医让中医学子身在中医情归中医心系中医热爱中医点击免费阅读更多章节:身在中医身在中医-...