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页
滚动轴承制造装备 本书特色 本书是作者在多年教学及科研实践的基础上,参照高等学校机械制造专业教学大纲编著的。 .本书共分13章,主要包括轴承零件加工概述、通用机...
张志,网名秋叶,新浪微博@秋叶语录,博客www.70man.com刘俊,新浪微博@卓弈刘俊杨雪,新浪微博@西岭夜雪
尼罗,民国题材大手,文风老辣,行文狠厉,故事人物性格鲜明而立体,尤其擅长刻画两面。本人嗜酒,直爽冷幽默。故事多围绕主人公的一生展开,描写其不同时期的情感经历。万...
作品目录台湾电影的新事物——来自台湾的报道(1984) 1台湾电影新浪潮(1990) 17天才归来(1991) 22探寻影像里的女性(1993)
城市环境物理 内容简介 本书既可作为高校教材,供建筑学、城市规划、总图设计及相关专业本科生和研究生学习,亦可供有关教师、建筑师、规划类工程师等技术人员参考,以便...
斯特凡•茨威格(Stefan Zweig,1881-1942),奥地利小说家、诗人和传记作家。出身赋予犹太家庭,青年时代在维也纳和柏林攻读哲学和文学,后周游世界...
余华,1960年4月出生,1983年开始写作,主要作品有《兄弟》《活着》《许三观卖血记》《在细雨中呼喊》《第七天》等。其作品被翻译成40多种语言在美国、英国、澳...
关节炎及风湿性疾患的多种疗法 本书特色 本书用通俗的语言、以图文并茂的形式向广大读者介绍了骨关节疾病的医学基础知识及多种多样的治疗及康复手段,希望能够带给您健康...
◆ 编辑推荐 ◆(1)作者经验丰富:从事SaaS产品设计多年,负责过上万家持续付费的SaaS产品设计。(2)6位专家推荐:前Salesforce大中华区销售总监...
娜塔莉·戈德堡(Natalie Goldberg)诗人、画家、作家、书写教练,至今已出版作品14部。1986年出版代表作《写出我心》,成为北美教授写作及写作治疗...
温瑞安,他被台湾《中国时报》总编辑高信疆形容为“第一个合并了诗与剑的光芒的才子”;他被上海闻人曹正文誉之为“武侠世界的奇才”;他被《联合报》主笔陈晓林认为是“以...
列奥•施坦伯格(Leo Steinberg,1920-2011),美国著名文艺复兴艺术史专家,20世纪最杰出的艺术批评家之一。著有《文艺复兴艺术及现代健忘中的基...
继《戴老师魔性诗词课》畅销30多万册后,全网超1000万粉丝翘首以盼的新作,重磅上市!…………………………………………“我用尽了自己的洪荒之力,以不负这本书的读...
基于微粒群优化的感应电动机定、转子故障检测与识别 内容简介 《基于微粒群优化的感应电动机定转子故障检测与识别》包含六章内容。**章:概述了笼型异步电动机定转子故...
周振甫先生系中华书局著名编审,学识渊博,著作宏富,曾参与编辑钱锺书《谈艺录》、《管锥编》和新版《鲁迅全集》等,于学术界颇有声望。其各种古籍选注本皆为业内经典。
那伟大的父爱受了又惨又无心的欺骗,那愚蠢的女儿沦为失败的家庭教育、婚姻和爱情的牺牲品!初入这般社会,青年人是服从?斗争?还是反抗?毛姆:如果让我推荐一部巴尔扎克...
过敏性鼻炎患者的家庭养护 本书特色 过敏性鼻炎是一种常见病、多发病,同时也是导致各种疾病的重要病因之一,例如,长期反复发病不能治愈,则很容易引起鼻旁窦炎、气管支...
猪乐桃,原名齐潇,国内“绘本小天后”, 1998年发表作品《高中5班日记》,立刻被北京电影集团收购电影改编权,成为中国内地第一个被电影公司购买电影改编权的漫画。...
郭德纲,相声演员,德云班主。天津人,生于1973年,自幼酷爱各种民间艺术,八岁投身艺坛。1996年创办北京德云社,说相声、讲评书、唱戏、拍电影、拍电视剧、主持电...
西岭雪,本名刘恺怡,1971年生于北京清华园,成长于大连,现居西安。1992年大连大学中文系毕业后任中学教师,1996年以后先后任西安《女友》、《家庭之友》、《...