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页
学生成语大词典(彩色本) 本书特色《学生成语大词典》是一部中型成语词典,收录成语8000余条,其中大部分是运用广泛、为人熟知的成语,同时也酌收了少量熟语。该词典...
精彩摘录殿下,这个人引诱坏了我的孩子。你,你,拉山德,你写诗句给我的孩子,和她交换着爱情的纪念物;月夜,你在她的窗前用做
文献、天象、铜器铭文“三证合一”厘清西周纪年问题,为纷乱的西周王年排序定位,揭示武王克商准确年代等重要问题。大学问出品。李学勤、杨升南、常金仓一致推荐。一部用文...
卡丽斯·鲍德温(Carliss Y.Baldwin),哈佛商学院工商管理william L.White讲席教授。1972年获得麻省理工学院学士学位,随后在哈佛商...
太史文(Stephen F.Teiser),普林斯顿大学宗教学博士,现任普林斯顿大学宗教学系教授、铃木大拙讲座教授,主攻东亚宗教和中国中古时期的民间信仰。著有《...
钱满素,女,哈佛大学美国文明史博士,中国社会科学院外文所研究员,南京师范大学特聘教授,主要从事美国文学文化研究,著有《爱默生和中国——对个人主义的反思》、《美国...
《走出“心震”带》内容简介:本书是我国第一部反映灾后心理援助的长篇报告文学,以近十年来我国汶川地震、舟曲泥石流、天津港爆炸
家具材料 本书特色 本书目录简介:**章木材构造与识别;第二章木材的性质;第三章木材缺陷、检验及保管;第四章家具用材树种各论;第五章家具用人造板;第六章贴面装饰...
這本書講了我們共同作出的一個嘗試。 過去,構圖課程很松,不成章法。講什麼練習什麼,隨意得很,隨機得很。于是大家希望改進,梳理出幾個合理的課題,設計出一些可以操作...
作品目录上册第一章导论第一节宗教背景一、伊斯兰教兴起的背景及历史二、伊斯兰教的传播和发展三、教派的形成和发展四、经典、教
亚历山大•汉密尔顿(Alexander Hamilton,1757-1804),美国的开国元勋之一,宪法的起草人之一,财经专家,美国的第一任财政部长。他是美国政...
【内容简介】《被牺牲的“局部”:淮北社会生态变迁研究(1680—1949)》为区域社会经济史的经典著作,初版于2011年北京大学出版社。自问世以来即引起广泛地影...
作者简介:Michael McMillan作为大学老师和程序员,曾编写过多部受到好评的数据结构与算法图书,包括Data Structures and Algor...
古生物学与地史学实验实习指导书 本书特色 《高等院校石油天然气类规划教材:古生物学与地史学实验实习指导书》共分为两大部分——古生物学实验与地史学实习。其中,古生...
穆里叶·德罗马,法国临床心理学家、儿童心理学司法鉴定人。有二十多年在儿科重症病房的工作经验。著有《住院儿童陪伴》《穿越哀痛的国度——与丧亲青少年交流指南》等专业...
米兰·昆德拉(Milan Kundera, 1929- ),捷克小说家,生于捷克布尔诺市。父亲为钢琴家、音乐艺术学院的教授。生长于一个小国在他看来实在是一种优势...
编辑推荐:★1867年印刷出版的《中国纹样》,是艺术史上的一本经典著作,作者是现代设计和色彩理论的先驱欧文·琼斯。★在书中,琼斯绘制了100幅最具代表性的中国纹...
★丰子恺最可爱的图文结集,记录与世界认真做游戏的孩子们。★踏着抽屉取苹果,罐头当凳凳当桌,扇子两把做小车……★写小孩的大事,画大师的童心。★这小燕子似的一群儿女...
North Korea is Orwells 1984 made reality: it is the only country in the world no...
【编辑推荐】:★设计零基础也能看懂的配色教程!修改前后直观对比,简单易懂,拯救你的设计方案!★人气设计师网站ZCOOL站酷推荐图书,庞门正道年度推荐!★53个设...