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页
民以何食为天:中国食品安全现状调查 内容简介 《民以何食为天》在中国大陆的权威报告文学杂志《报告文学》2004 年9月刊头条刊出后,即被中共中央政策研究室“书刊...
不吃闷亏,创造机会,有策略地发声越不好说,越要直说!3位心理专家逾80年经验凝聚成册默许非默契,隐忍即隐患解决不愿说、不会说、不敢说等问题◎ 编辑推荐☆多年经验...
☆本书看点---------------------------------------------------------------------------...
“恰恰是无力逃脱,才是家庭暴力的显著特征。”————他们为什么不逃走?语言暴力、电击殴打、社会隔绝、指使谋杀,摧毁受害者人格的恐怖深渊。北九州连环监禁杀人案发生...
奥尔罕·帕慕克(Orhan Pamuk, 1952- ),当代欧洲最杰出的小说家之一,享誉国际的土耳其文学巨擘。出生于伊斯坦布尔,曾在伊斯坦布尔科技技大学主修建...
我已经写过太多有关修道院和博物馆的东西,现在我应该尝试自然这个主题。该如何才能做到只谈自然?就是把一个遭遇船难的人放到荒岛上面。《昨日之岛》是埃科的第三部长篇小...
刘学锴(1933-),浙江松阳人。1952-1963年就读、执教于北京大学中文系。现为安徽师范大学文学院教授、中国诗学研究中心顾问。曾任中国唐代文学学会常务理事...
《江南内房家具绘画》内容简介:何晓道是国内数一数二的收藏家,其收藏品主要是十里红妆家具和建筑木雕。江南内房家具,是其中重要
★ 一代戏剧大师思想与艺术观念的精粹。◎内容简介本书萃取了一代戏剧大师梅耶荷德艺术生涯最后五年思想与艺术观念的精华。从演员修养到舞台调度,梅耶荷德在实践中总结出...
“她的一切属于她,我的一切属于我。”“美国戏剧的良心”阿瑟·米勒的精神自白,对股市崩盘、大屠杀、猎巫运动和一代名伶的私人记忆。《堕落之后》是阿瑟•米勒于1964...
(古罗马)西塞罗(Marcu Tullius Ciero)西塞罗:古罗马著名政治家、演说家、雄辩家、法学家和哲学家。主要著作有:《论国家》、《论法律》、《论至善...
安能无恙!10种流行疾病挑战你的“审美底线”豆瓣评分9.4纪录片《手术两百年》推荐◎内容简介《病玫瑰》的书名源自威廉•布莱克的同名诗作。书中收录了自18世纪末至...
xlwings创始人教你如何让Excel飞起来!* 告别烦琐公式和VBA代码* 办公人士零压力学Python* 流行Python库xlwings创始人亲授每当花...
韩]智光大师,韩国历史上最受推崇的三位佛教领袖之一,也是其中唯一在世的。早年立下“世间无疾苦,人人得自由”的慈悲宏愿,当下影响遍及全球。大师一生怀抱悲悯之心,为...
青年必知法律知识手册(最新修订本) 内容简介 现代社会应是一个法治的社会。法律知识的普及是衡量一个社会文明程度的重要标志,学法、知法、守法、用法,增强法律意识,...
《简约工作》旨在把这种讲情理的、高效的、双赢的方法介绍给世界各地。在接下来的章节,我们将探讨传统工作场所被打破的原因,揭示隐藏在工作场所问题背后的人们的态度和信...
朱光潜(1897—1986),笔名孟实,安徽桐城人,中国著名美学家、文艺理论家、教育家、翻译家,中国现代美学的开拓者和奠基者之一。早年毕业于香港大学,后留学英法...
云际,本名冀文宏,1981年生人,现居天津,南开大学金融学硕士。现从事股权投资行业,历任多家上市公司董事、监事。业余时间喜欢科幻小说创作,著有《月球之谜》 (北...
☀内容简介悼念上升的幻觉悼念瓦解于尘的秩序这是一场举行过无数次的葬礼我们终将在沉降中汇合本书是塞巴尔德继《移民》之后又一享誉国际的作品,记录了叙事者“我”一段穿...
黃易畢業於香港中文大學藝術系,專攻中國傳統繪畫,曾任香港藝術館助理館長,致力於藝術與文化之推廣與交流;因自少鍾情武俠小說,適逢武俠雜誌徵稿活動,提筆寫成初作《破...