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页
“20世纪20年代初,石头缝里迸出了一个孙猴子,柯布西耶出版了《走向新建筑》,造了玉皇大帝的反。”——中国当代著名建筑学家陈志华教授勒·柯布西耶(Le Corb...
罗伯特·麦克法伦(Robert Macfarlane)出生于1976年,是剑桥的院士,他的研究和写作领域侧重于自然与文学的关系、二战之后的英美小说、当代诗歌和维...
" 冯昱仁上海智泉企业管理咨询公司董事长,上海博艾馆养生美容公司总经理。曾任上海永琪美容美发企业教育总监,行动成功教育集团广州公司负责人。"
田原,中国医药科技出版社中医药文化编辑中心主任,中医文化传播人。创编中医文化书籍20余部,400余万字。其作品曾获全国报刊业“最佳畅销书”和“建国60周年图书策...
作品目录仲夏夜之梦威尼斯商人温莎的风流娘儿们罗密欧与朱丽叶哈姆莱特奥瑟罗李尔王麦克白· · · · · ·精彩摘录拉山德怎么
威廉•夏伊勒(William L.Shirer)生于美国芝加哥,是著名的驻外特派记者、新闻分析员与世界现代史学家。他为哥伦比亚广播公司担任战地记者期间,报道了许...
西方对灵知派的研究著作汗牛充栋,但中国读者对灵知派的了解仍教模糊。本书可说是一本我国读者真正能读得进去的概论性的著作。在本书中,作者对作为观念体的西方二元论诸思...
本书读者群:即将毕业的人、职场新人、中高层管理者、新人培训人事主管《你从未真正拼过》是LinkedIn(领英)全球第一本简体中文实体书。全球第一职场社交平台Li...
«- Naturellement, vous savez ce que cest, Rieux ? - Jattends le résultat des ana...
2009年1月20日,在奥巴马的总统就职典礼上,联邦最高法院首席大法官罗伯茨搞砸了宣誓仪式,这可谓最高法院与白宫之间紧张关系的一个象征。更富戏剧性的一幕是,20...
中医临床思维教程 内容简介 《浙江省重点教材:中医临床思维教程》列出了临床各科室有代表性的病证。分内科疾病、妇科疾病、儿科疾病、眼科疾病、耳鼻喉科疾病、骨伤科疾...
是由国内知名插画家飞乐鸟发起的绘画工作室。致力于传播“创享美丽生活”的理念,对生活永远怀有最远大的梦想和最朴实的情怀,通过绘画、手作、栽培等多种形式让更多的人发...
中药传奇 内容简介 披一路风尘,承千年衍变。中医药为中华民族本土自主创新之奇迹,世界传统医学之瑰宝!如果没有中医药.很难想象中华文明能够走到今天!是谁.让...
高人气畅销书作家。她创造性地将爱情、悬疑、信仰、推理等元素带入小说之中,将自己独特的脑洞和人生哲学融入其中,形成了独树一帜的“淮上”风格。她笔下的故事伏笔千里,...
梁实秋(1903—1987),著名文学评论家、散文家、翻译家。曾与徐志摩、闻一多创办新月书店,主编《新月》月刊。后迁至台,历任台北师范学院英语系主任、英语教研所...
The original edition of Dr. David Reubens Everything You Always Wanted to Know A...
刑法学各论研究述评 内容简介 本书所选择的24个专题,均为刑法学各论研究中成果显著且内容重要的问题,基本上可以涵盖我国刑法学各论研究的进展与现状、广度与深度。对...
★日本宣布新作動畫《狼與辛香料 merchant meets the wise wolf》預計在2024年開播!★傳說的旅行商人羅倫斯與絕世女商人伊弗再度碰頭,...
中国丛书综录续编 本书特色 ★ 16开精装,2003年3月1版1印,北京出版社(国家图书馆前身)出版★ 施廷镛先生长子施锐経数年努力,将施老遗稿重新进行了整理,...
武嫣斐解析急性胰腺炎 本书特色 急性胰腺炎是临床常见疾病,近年来发病率呈上升趋势。目前,现代医学对急性胰腺炎的治疗疗效较为可靠,但也存在有一些问题。譬如存在麻痹...