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页
勘察设计注册工程师公共基础考试应试指南(2010执业资格考试丛书) 本书特色 《勘察设计注册工程师公共基础考试应试指南》:2010执业资格考试丛书勘察设计注册工...
本草-生草药性备要-26 本书特色 《生草药性备要》,清代何诔撰本书为岭南中草药专著,*早系统总结了岭南民间中草药使用经验,颇具地方性特色。该书分上、下两卷,共...
孙小叆(小艾),小艾从实践大学食品营养学系毕业后,曾在乔登专业减肥中心担任营养减肥顾问,怀第二个孩子时离职,在家专心照顾孩子了一段时间。再次进入职场时,已经变成...
为华丽而荒芜的世纪末认真悲伤华语文学领军人物骆以军短篇代表作《红字团》+《降生十二星座》合集♈️编辑推荐•《我们自夜暗的酒馆离开》是台湾“小说一哥”骆以军一九九...
管窥岐黄-袁海波医案 本书特色《国医验案奇术良方丛书管窥岐黄:袁海波医案》主要介绍国家级名老中医袁海波教授多年的临证医案验方,详细介绍其临证40多年来的临床经验...
苏三,河南洛阳人,现居北京。上世纪80年代就读于河南师范大学外语系,90年代进修于中国人民大学经济系研究生班。曾经在不同院校工作10年、后下海进入企业。2002...
基斯·M·依迪斯专著的《新解决方案销售(第2 版)》:涵盖了以下重要内容: 强化销售流程:本书强调了可复制的整合销售流 程的价值所在。*值得一提的是,本书将销售...
李新伟,中国社会科学院考古研究所研究员。1990年毕业于北京大学考古系。1996年获中国社会科学院研究生院硕士学位,导师为任式楠先生。2004年获澳大利亚拉筹伯...
中华人民共和国禁毒法 麻醉药品和精神药品管理条例 易制毒化学品管理条例 解毒条例 本书特色 《中华人民共和国禁毒法》是为了预防和惩治毒品违法犯罪行为,保护公民身...
作品目录Part Ⅰ 自然图案Part Ⅱ 动植物图案Part Ⅲ 日常用品图案Part Ⅳ 花形图案Part Ⅴ 食物图案Part Ⅵ 乐器、交通工具图案
蔡皋1946年生,湖南长沙人,中国著名绘本画家,中国美术家协会会员,曾长期在乡村小学执教,曾供职于出版社,2001年退休后致力于绘本创作。她是中国第一位获得BI...
托马斯·曼(Thomas Mann),是20世纪德国文坛最耀眼的巨星,他的作品具有广泛的世界影响;他于1929年获得诺贝尔文学奖。托马斯·曼于一八七五年六月六日...
《在體制內遊說》聚焦於中國市場轉型中和政治制度結構下企業家對於政策過程的影響,試圖初步回答以下研究問題: 第一,在當代中國市場轉型中,企業家如何影響政策過程? ...
作品目录中文版序 —— vii野村浩一來信 —— ix西澤治彥書評 —— xi前 言 —— 1第一章 問題所在及考察對象 —— 11一、本書
《首刷附錄版》「共生之人」特製明信片少年‧琉卡在貧窮的鄉下村子裡與父親兩人相依為命。自從母親過世後,父親就沉迷於神秘研究。
Rachel Hinman是公认的移动用户领域的思想领袖、研究员和设计师。深信技术可以改变人类的她,在近20年的职业生涯中,孜孜不倦地投身于文化研究、艺术以及设...
贡布里希教授,恩斯特爵士,功勋团成员(O.M),高级英帝国爵士(C.B.E)。1909年生于维也纳,1936年进入伦敦的瓦尔堡研究院任教职,从1959年起,担任...
伤寒论汇注精华 本书特色 《伤寒论改正并注》为陈逊斋参考诸家之说,以多年研讨《伤寒论》之心得精心编撰而成。随文释义,正讹补脱,衷中参西,阐发经旨,每遇疑...
名老中医糖尿病辨治枢要 本书特色 自新中国成立以来,许多中医大家笃行敏思,在糖尿病及其并发症的诊治方面各有所长,积累了丰富的经验。本书作者立于临床实用性,对这一...
日本战后思想界领军人物竹内好的思想传记,刻画竹内好一生追索的核心问题——日本社会如何打造健康的文化主体性。日本政治思想史学者孙歌的代表作,积十余年之功,新增对竹...