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页
中医世家-邵生宽教授临床手笔集萃 本书特色 郑璐玉、邵可森主编的《中医世家(邵生宽教授 临床手笔集粹)》系邵生宽教授六十年来的临床经验 教学科研荟萃。全书分为诊...
法国家喻户晓,享有“烘焙界毕加索”之称
作品目录第三版序第二版序第一版序1.背景:默片时代和法西斯统治时代2.新现实主义大师——罗西里尼、德·西卡与维斯康蒂3.探
乔纳森·林恩,英国编剧、导演,与安东尼·杰伊合作了著名的政治喜剧《是,大臣》《是,首相》 。
皮肤病必效单方2000首 内容简介 为了方便广大中医同道在诊治中遣方用药和广大皮肤病患者自我治疗,编者根据古今大量名医的皮肤病外治奇方妙术、民间神奇效验方、祖传...
汉语诗歌的沉潜之作,倾心于微物之神第三代诗歌代表诗人吕德安四十年诗歌创作集粹“有谁像我这样躺卧在天空下,起伏着,像尘土。”【编辑推荐】被称为“中国的弗罗斯特”,...
左瞳,日本首都大学社会学硕士,青春文学领军人物,言情小说畅销书作家。已出版《季凉川,爱了你这么多年》(1-4)《再见,顾南浔》(1-2)《因祸得夫》《厉嘉禾,只...
◆轰动日本的中国漫画!3次登上日本央视NHK电视台新闻报道节目,被日本媒体誉为“世界级水平的中国动漫精品”!◆日本四大报纸之一《每日新闻》、日本知名杂志《映画秘...
社会冲突与诉讼机制-第三版 本书特色 这是一本融法哲学、法社会学、法经济学多重原理,以中国学人视角解析诉讼制度的经典著作。作者以严谨的态度、客观的思考与恳挚的期...
George F. Simmons 毕业于耶鲁大学。他通常能用简练精妙的语言表达深刻的数学思想,在科罗拉多学院任教的日子,以其鲜明的个性以及引入入胜的教学方式,...
A look deep inside the new Silicon Valley, from the New York Times bestselling a...
实用实验诊断学 内容简介 本书内容共设九部:Ⅰ总论;Ⅱ临床一般检验;Ⅲ临床血液学检验;Ⅳ临床生物化学检验;Ⅴ临床免疫学检验;Ⅵ临床病原学检验;Ⅶ临床细胞遗传学检...
树的智慧 本书特色 ★ 24开平装,新星出版社出版★ 作者麦克斯·亚当斯为考古学家和传记作者,绘者约翰·伊夫林是一个多产作家,作品题材涉猎广泛:神学、钱币学、政...
Lonely Planet Canada is your passport to the most relevant, up-to-date advice on...
Take an unforgettable time-travelling journey through Chinese history with this ...
金属热处理工岗位手册 本书特色 本书主要内容包括:热处理基础知识,热处理常用工艺代号及术语,常见金属材料的分类及牌号,常见热处理设备及工辅材料,钢的普通热处理、...
吃脂肪,让你更瘦、更健康。风靡世界的全新健康饮食方式:生酮饮食。众多国内外明星追捧,无数医生和营养师支持,两位生酮饮食先锋,携手22位医学/营养专家,解开减重和...
神永正博(Kunihiko Kodaira)1967年出生于东京,理学博士,日本东北学院大学教授。曾在京都大学研究生院理学研究所(数学方向)进行博士后期课程学习...
Mr.Hua/老华,“80后”草根创业者,“三元”理论提出者,哔哩哔哩《一亿实盘》up主(视频上传者),外贸在线教育公司米课创始人,外贸社区平台米课圈创始人,乐...
张浚,字德远,汉州绵竹(今四川绵竹)人,南宋前期著名政治家、学者,曾官至宰相,三度掌领南宋军政。撰有《论语解》《易解并杂记》《春秋解》《绍兴奏议》《隆兴奏议》《...