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页
ThisearlyworkonItalianVillasandtheirGardensisabeautifullyillustratedlookatthesub...
★青年作家周于旸最新短篇小说集★世界在弥散,意义在消亡。倘若没有小说,我们该如何讲述未来和每一个此刻?·★马孔多的雨停了,塬上的白鹿隐匿,陋室空堂衰草枯杨人生如...
周浩暉,一九七七年十一月十六日出生於江蘇省揚州市。少時偏科,精通數理化,唯懼語文,尤其視作文課為心中大患,每得命題,搜腸刮肚,擠文鑿字,苦不堪言。後考入清華大學...
公安民警执法办案常用手册-第八版 本书特色 随着依法治国的深入,公安法制的发展,基层民警在日常执法办案时,需要用到越来越多的法律法规,依据各种各样的制度规范。这...
随着智能手机应用的普及,手机已经成为今天每个人不可或缺之物,它给生活带来巨大便利的同时,也产生了诸多不为人知的弊端。你可能知道手机屏幕蓝光对眼睛有害,但你可能没...
缜-职务犯罪与侦查对策 内容简介 近年来,笔者应邀赴省和一些地、市检察机关举办的业务培训班讲授自侦业务课,虽然不太系统,但不少同行和省院政治部的同志都认为课程在...
中国南瓜史 本书特色 李昕升著的《中国南瓜史》属于农业史(农业科技史、农业经济史、农村社会史)的研究范畴,以历史地理学、历史文献学等相关理论为指导,结合定性与定...
编者中共中央文献研究室中共湖南省委《毛泽东早期文稿》编辑组
1986年毕业于同济医科大学医疗系,精神科副主任医师,被誉为“精神分析届的播种机”。创立了被称为“中国塔维斯托克”(TAVISTOCK)的武汉中德(现改称为忠德...
孙明经,祖籍山东掖县,1911年生于南京。1934年,毕业于金陵大学。1936年起,在金陵大学担任专职电影课教师,并响应蔡元培动议,用摄影机进行国情调查,一边拍...
侦查学原理 内容简介 本教材较全面地反映了我国侦查学的理论发展和成果,同时在教材结构和编写体例上做了创新性安排。本教材由侦查学科论、侦查本体论和侦查运行论三编组...
旅途生活的真实瞬间车厢内外的人生百态………………※编辑推荐※☆ 从人性的角度出发,呈现人在火车这个特殊空间里的生存状态和精神状态。☆ 记录20世纪90年代的时代...
董氏疗法治疗腰椎间盘突出症(2019农家总署推荐书目) 内容简介 董氏疗法治疗腰椎间盘突出症是董氏正骨流派从中医整体观点出发,运用手法、针刺、中药综合疗法,调整...
摇滚不仅仅是一种音乐风格,它还是一个非常重要并且有影响力的社会因素。摇滚乐自20世纪50年代中期诞生以来,已被证明是在价值数十亿美元的音乐产业中最强有力的经济因...
乔治R·R·马丁:美国著名奇幻文学作家,出于生于1948年,二十七岁以小说《莱安娜之歌》摘下象征幻想小说最高成就的雨果奖。此后他不仅在文学上获奖连连,更曾在好莱...
鲁迅,原名周樟寿,后改名周树人,字豫山,后改豫才,“鲁迅”是他1918年发表《狂人日记》时所用的笔名,也是他影响最为广泛的笔名,浙江绍兴人。著名文学家、思想家,...
李殊响对药对穴 内容简介 二联疗法主要包括对药疗法和对穴疗法。其中,对药疗法又包括中药对药和西药偶联、中西药二联。此疗法可发挥良好的协同作用,不仅增强疗法,而且...
在信息传达需要的基础上,《中国高等院校“十二五”视觉传达精品课程规划教材-图形创意》将重点加强对设计者感性创作的训练,激发
一诺,麦肯锡董事合伙人,三个孩子(生于2010年,12年,14年,呈等差数列)的妈妈,2014年1月31号和先生申华章开始做公众号“奴隶社会”——他们的“第四个...
Most programmers fear of user interface (UI) programming comes from their fear o...