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页
精彩摘录他弄错人了。想象中的女郎是倦慵的,娇怯的,连耍乐都十分厌倦,更不要说是工作。她应是一支歌可以重复听一个下午的人。懂得享受,生活低调,是一个艺术家,不论大...
羊行屮,本名姜波,山东东营人,己未年羊年羊月出生。屮,音同“彻”, 草木刚长出来的意思,取“草木欣欣向荣”之意。曾在多家杂志发表《秦陨》《传奇人生》《大学向左 ...
荒木飞吕彦(1960- ),日本著名漫画家,代表作品有《巴欧来访者》《乔乔的奇妙冒险》等。其中《乔乔的奇妙冒险》系列凭借独特画风、充满个性的角色、让人印象深刻的...
建筑设备安装中的常见错误及预防措施 内容简介 本书以建筑设备安装工程中的各类*新标准为准绳,根据作者几十年来的教学、施工经验,全面总结了建筑设备安装工程(含材料...
作者简介:沙吉难陀1914年,沙吉难陀出生于印度南部。他是全球“整体瑜伽”协会创始人,更是一位人人尊敬的瑜伽导师、精神领袖与和平使者,也被尊封为乌思塔克大师。他...
“愿得一心人,白头不相离。”“天无涯兮地无边,我心愁兮亦复然。”“夜夜常留明月照,朝朝消受白云磨。”“易求无价宝,难得有心郎。”“生当作人杰,死亦作鬼雄。”·这...
王潇,人称“潇洒姐”,趁早品牌创始人,畅销书作家,跨领域达人,时间管理专家。出版《趁早》《按自己的意愿过一生》《五种时间》等多本畅销著作,曾荣获安永亚太区成功女...
《谷物大脑》作者戴维·珀尔马特强烈推荐《抑郁药不要》这本书中提出的抑郁症新机制及非药物疗愈法。在《抑郁药不要》的作者凯利
本书深入讲解神经网络和深度学习技术,侧重于阐释深度学习的核心概念。作者以技术原理为导向,辅以贯穿全书的MNIST手写数字识别项目示例,介绍神经网络架构、反向传播...
严耀中,北京师范大学历史系特聘教授,中国唐代史学会理事、上海市史学会理事。发表《魏晋南北朝的“役”与“力”》《东晋南朝地方财政收支述论》《敦煌文书中的“平等大王...
女科百问 本书特色 本书,系南宋医家齐仲甫于宋嘉定十三年(1220年)所著,全书共两卷。其内容简明扼要,是一部综合性的临床妇科专著,对后世颇有影响。本书共分上、...
铝合金门窗 本书特色 本书共12章,系统讲述了铝合金门窗系统的各个方面。书中内容有两条主线:一是以铝合金门窗的基础知识和系统组成为主线,阐述铝合金门窗系统各组成...
作者:贾志扬(John W. Chaffee) 美国纽约州立大学宾汉姆顿分校历史系教授,国际知名宋史专家。1979年获美国芝加哥大学博士学位。著有《天潢贵胄:宋...
李明忠名老中医辑录(二) 本书特色 本书从八个方面作了详尽的介绍:一、随心记;二、学习医易遂愿;三、《黄帝内经》中名言警句及七段原文赏释;四、医案医话;五、张锡...
2013行政执业能力测验(本硕类)(政法干警) 本书特色 《华图版2013政法干警招录考试专用教材:行政职业能力测验(本硕类)》内容涵盖政法干警考试**考点,讲...
精彩摘录那时记住的例句现在还能想起几个,毛姆说的“即使剃须刀里也有哲学”便是其一。前后还有相当长的句子,但都忘了。总之意
尼采,德国著名哲学家,西方现代哲学的开创者,语言学家、文化评论家、诗人、作曲家,他的著作对于宗教、道德、现代文化、哲学、以及科学等领域提出了广泛的批判和讨论。他...
安德鲁・韦尔,医学博士,毕业于哈佛医学院,曾在哈佛植物博物馆做过15年的民族药物学研究助理。他从世界各地收集有关植物药性、神智状态改变及康复的信息。他目前任图克...
作品目录第一章 重回图像学一、图像学的复兴二、图像学的字源学考察三、图像学学科名称的翻译与商榷四、图像意义的理解之路第二
《假如给我三天光明》内容简介:“我不断跌倒、滑落,遇到意想不到的挫折,发脾气,接着平息自己的脾气,继续攀登……每取得一点儿