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页
名老中医治疗风湿病经验 内容简介 本书分为病的因机证治加以探讨,从传统中医研究风湿病的角度出发,下编则根据现代医学按风湿病的及相关并发症分类。名老中医治疗风湿病...
注册岩土工程师执业资格专业考试300问 修订版2004 内容简介 《注册土木建筑工程师执业资格考试系列教材注册岩土工程师执业资格专业考试300问2004(修订版...
这是一本非常基础的水彩风景画教程。本书延续了日本选取案例配图的风格,详细介绍了绘制水彩风景画的基本步骤,然后再分别对风景
25岁后的女人,面临着很多选择——是否结婚,是否换新工作,甚至是否还要坚持梦想。30岁后的女人,面对着很多困扰——婚姻困局,工作瓶颈,甚至梦想早已被搁置。是的,...
民法基本原则解释:增删本 内容简介 本书是以法哲学方法研究民法问题的尝试。作者以民法基本原则为显微点,力图揭示出这一制度蕴涵的丰富的政治、经济、哲学和文化的信息...
精英都在践行的高效时间管理术作者曾是差点被精神压力打垮、被工作“忙杀”的神经科医生,在决心改变自己的生活方式后,发现了将大脑机能发挥到极致的时间管理术,实现了一...
【编辑推荐】★ 图灵奖得主,中美法三国院士,法国科学院院士、世界安全计算机系统重要贡献者约瑟夫·希发基思重磅著作。★ 深入理解知识和智能的本质,明晰人类认知世界...
王子今,中国人民大学国学院教授,南京师范大学鸿国讲座教授,中国秦汉史研究会顾问,中国河洛文化研究会副会长,中国岩画学会副会长,出版《秦汉交通史稿》《史记的文化发...
花清晨女,金陵人士。迷糊、健忘、搞笑、感性、亦静亦动的综合体。人生目标是将所有噩梦,经过欢乐的文字雕琢,打造成世间最美的爱情故事,奉献给每一位喜爱自己的读者。已...
免疫学技术 内容简介 本书由上海交通大学医学院免疫学教研室、上海市免疫学研究所组织编写,涵盖了基础免疫学与临床免疫学的经典的实验技术。全书共分十六章,约200余...
Increasedautomationreducesthepotentialforoperatorerror,butintroducesthepossibili...
医疗保险、学生贷款债务、退休保障、儿童保育、获得住房所有权,都是推动美国当前政治论辩的议题。它们通过同一个问题联系在一起:是否应该让自由市场决定人们的生活?美国...
四川大学建筑与环境学院教授,四川大学城市建筑设计研究院(UAD)院长,四川大学建筑景观设计中心(ALDC)主任。日本东京大学海外研究员,世行贷款城建项目评审专家...
邱小刚,1964年出生于沈阳,70年代中期随家迁往石家庄,1982年以河北省文科第一名的成绩考入北京大学中文系。1986年北大毕业后回石家庄,任职于河北省社科院...
《玩转世界的十大公式》内容简介:坐飞机和坐火车,哪个风险更高?实力相近的两个球队交锋,比如皇马和巴萨,谁更有可能赢得比赛?
《华南灾荒与社会变迁:第8届中国灾害史学术研讨会论文集》是高岚、黎德化主编的,是第八届中国灾荒中学术研讨会论文集,共收录论
一份脑洞大开的趣味研究报告,为你揭秘独角兽的全部真相充满幻想的插画,将神秘的独角兽世界带到大家眼前,满足读者对独角兽的所有好奇◎ 编辑推荐☆ 一份脑洞大开的研究...
《李小龙技击法(全新完整版)》内容简介:本书是一代功夫之王李小龙的存世遗稿,由李小龙遗孀琳达女士和《黑带》杂志创始人水户上
乔治•奥威尔(1903—1950),英国伟大的人道主义作家、新闻记者和社会评论家,传世之作《一九八四》、《动物农场》脍炙人口,历久弥新,被誉为“一代英国人的冷峻...
父親(ベルグリフ)のお見合い相手は誰だ!?さまざまな人間を巻き込んだボルドーでの大騒動も一段落しそれぞれの日常へと戻っていった父と娘。大好きな父ベルグリフとまた...