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页
★《小王子》“外传”——还记得小王子的那条蛇吗?这是关于它的冒险。★科斯塔文学奖得主、入围《格兰塔》最佳青年小说家——A.L.肯尼迪★现代版《小王子》,感动大人...
毛泽东论林业(新编本) 内容简介 全书共收入自一九一九年至一九六七年间毛泽东关于林业问题的文稿五十八篇,其中包括一些调查报告、文章、讲话、谈话的节录和有关按语、...
口腔颌面种植学词汇 本书特色 本书是基于当代国际口腔种植同仁共识的**本词汇参考书。它包含了2000多个种植相关名词的定义、概念与描述。细致的图表与图片使读者理...
六指擒龙脉法 本书特色 脉学自古以来易学难精,浙江新昌俞行先生在多 年临证中揣摩古今脉诀,创立“六指擒龙”脉法,并 整理成专*。书中系统...
Steven H. Strogatz is professor of applied mathematics at Cornell University. He...
《當代中國語境中的烏托邦與烏托邦主義:文本、思想、空間》明確地展示了烏托邦主義在十九世紀引入中國語境後,在多大程度上塑造了政治思想、文化想像和社會參與。事實上,...
範宜如,臺灣宜蘭人,國立臺灣師範大學國文研究所博士,現為臺灣師大國文系副教授。學術方向為明代文學與現代文學。近年主要關懷核心為明代邊境地誌及蘊含在其間的物、日常...
《利维坦》全书分为四部分。第一部分开宗明义宣布了作者的彻底唯物主义自然观和一般的哲学观点,声称宇宙是由物质的微粒构成,物体是独立的客观存在,物质永恒存在,既非人...
埃莱娜•西苏(Hélène Cixous, 1937-),法国当代著名小说家、散文家、戏剧家和文学评论家。 她以诸多先锋观念和实验创作在法、英、美等国家的女性主...
作品目录第一编 伊斯兰教的兴起 引言 第一章 伊斯兰教兴起前的阿拉伯社会 第一节 阿拉伯半岛的自然状况 第二节 古代的阿拉伯国家
本书记述了吴丽娥-一个平凡的中国妇女的生活与经历。作者简介 吴丽娥生于民国4年(1915年)读过两天私塾和两年小学,靠阅读中国
《办理死刑案件证据规定》与《非法证据排除规定》的释义和适用 本书特色 《与的释义和适用》由中国人民公安大学出版社出版。《办理死刑案件证据规定》与《非法证据排除规...
【塞尔维亚】埃米尔•库斯图里卡(Emir Kusturica)电影导演、演员、音乐人。1954年出生于前南斯拉夫的萨拉热窝。1971年开始在布拉格表演艺术学院学...
随着形势的发展,我国人事制度的改革势在必行。“面试”已成为招聘人员的一个重要步骤。“面试”是面对面的短兵相接,应试人的对
暢銷書《法醫.屍體.解剖室》作者道格拉斯‧萊爾醫生又一力作!本書為真正的鑑識迷所寫,不厭其煩、不避細節,帶你一窺這個刺激領域,洞悉犯罪現場調查背後真確的科學原理...
亦舒,原名倪亦舒,1946年生於上海,祖籍浙江鎮海,兩歲來港定居,曾就讀嘉道理小學、北角官小,中學畢業於何東女子職業中學,十五歲開始寫稿,第一篇小說刊登在《西點...
★日本狂銷突破25萬冊!★橫掃東販、日販、Oricon、紀伊國屋、蔦屋書店、丸善淳久堂、有隣堂、BOOK1st各大暢銷排行榜第1名!★上市前即緊急加印,上市後一...
Thebriefnessofablinkreferstotheunexpectedeventsinourlivesthat,whentheysurprise,u...
让-马克·罗切特(Jean-Marc Rochette)法国知名漫画家、插画家、登山者。代表作《雪国列车》曾获1985年安古兰国际漫画节大奖,并在2013年由韩...
陈明等编著的《MATLAB神经网络原理与实例精解(附光盘)》结合科研和高校教学的相关课程,全面、系统、详细地介绍了MATLAB神经网络的原理及应用,并给出了大量...