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页
Seventeenth-centuryEuropewitnessedanextraordinaryfloweringofdiscoveriesandinnova...
阿尔弗雷德·克罗斯比,美国得克萨斯州大学奥斯汀分校美洲研究、历史和地理专业的荣誉退休教授。他的著作还包括《美国被遗忘的传染病:1918年流感》(第2版,剑桥,2...
作品目录主题研讨 韦伯:法律与价值韦伯论西方法律的独特性/郑戈除魔的世界与禁欲者的守护神:韦伯社会理论中的 “英国法”问题
段永朝,财讯传媒集团首席战略官,北京大学新闻与传播学院专业硕士研究生兼职导师(2012-2015),中国“数字论坛”发起人之一及成员。中国计算机学会高级会员、高...
天上下雨地上滑,各人摔倒各人爬。亲戚朋友扶一把,酒换酒来茶换茶。美国亚洲学会列文森奖得主 文化人类学教授 阎云翔 成名之作生育、婚礼、拜寿、丧礼;定情、求助、付...
李蕾,作家,前央视主持人,帆书APP(原樊登读书)“李蕾讲经典”主讲人。已出版书籍9本,代表作有《藏地情人》《美是步履不停》等。
◑内容简介乌鸦学会了人类的语言,爱上了失明的女孩。日复一日,它为女孩衔来从别人那里夺走的眼球。眼球中装着人们的记忆。女孩将眼球放入空洞的眼眶,看到了多彩的人生,...
● 1995年,新荣记从浙江台州临海起家。作为一家典型的慢公司,26年来,新荣记旗下各品牌总共只开了30多家店铺。但它却是中国餐饮品牌中收获米其林星级最多的一个...
(二次大戰期間,倫敦遭受德軍無情轟炸,人人自危,阿嘉莎˙克莉絲蒂亦不例外。苦於生命飄搖之感,克莉絲蒂預先完成了兩部小說,讓
《拨云寻径:古典中国实用文类美学》以中国古典文学中的“实用文类”为主要书写对象,所谓“实用文类”,是指有实际功用的文体,如论说、序跋、书笺、表奏、碑铭等,在实用...
临床骨科诊断学 本书特色 骨科学主要涉及骨关节与肌肉、脊柱、脊髓、神经、血管及软组织等病变或创伤,骨科伤病的诊断包括体格查体、物理与化学检查以及对病症的综合分析...
➢内容简介全球有1/4以上的女性遭受过家暴,每天有上百名女性被伴侣杀害。在美国,每分钟就有20个人遭到伴侣的侵犯。有1名女性死于家暴凶杀案,就意味着有9名女性在...
鲁登道夫(1865-1937),德国将军,军事战略家。参加过第一次世界大战,并率部取得赫赫战功。历任德军总参谋部作战处长、步兵旅旅长、集团军参谋长、东线德军参谋...
赵晨光,紫焰品牌作家。曾获第三届温世仁百万武侠大奖赛首奖,笔下每一部作品都是值得反复阅读的精心之作。其文字清新洗练,故事引人入胜,颇有一股荡人心魄的刚硬之气。著...
《新材料革命》内容简介:材料只能作为被动的构件而为人摆布吗?它会不会变成“活的”,可以感知环境、适应环境,并自我组装到一起
此公本名陈梦因,身为《星岛日报)的总编,因每天要看“大样”,便自嘲为“特级校对”。又索性以此为笔名,不料文名益盛,一般读者只知“特级校对”,而不知其真名。上世纪...
建筑文化概论 本书特色 李耀辉主编的《建筑文化概论》书是在多年教学实践经验积累的基础上,针对目前文化进校园的要求,特别是为了帮助广大建筑类专业的学生、建筑文化的...
住在乡下的狸花猫阿梨接到一封来信后,千里迢迢进城接管了姨母留给自己的唯一遗产——人类辛勤,辛勤给阿梨取了个新名字叫斯巴达。进城后斯巴达才知道,原来城里的猫都是有...
海伦,网用ID海伦helen2009,多年致力于女性情感工作研究。在天涯论坛写的婚姻心理类帖子引起多方关注,主张以独立,成熟,理性的态度面对婚恋和人生,完成自我...
《瓜几拉的旅行手帐:美国》人气插画师“瓜几拉”旅行手账首度大公开——关于美国最鲜活的旅行书!最创意的生活美学书!随意、跳跃——人在旅途的真实状态;抖动的线条、会...