请选择 进入手机版 | 继续访问电脑版
楼主: bndnsuy
4788 13

Mastering Object-oriented Python [推广有奖]

  • 1关注
  • 3粉丝

教授

16%

还不是VIP/贵宾

-

威望
0
论坛币
6437 个
通用积分
1.9486
学术水平
74 点
热心指数
88 点
信用等级
63 点
经验
32721 点
帖子
160
精华
1
在线时间
2109 小时
注册时间
2014-6-26
最后登录
2023-8-6

bndnsuy 发表于 2014-7-27 19:31:04 |显示全部楼层 |坛友微信交流群
相似文件 换一批

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
Mastering Object-oriented Python

by Steven F. Lott

    Publisher: Packt Publishing (April 2014)
    Pages: 634
    ISBN: 9781783280971
    Language: English

Book Description

This practical example-oriented guide will teach you advanced concepts of object-oriented programming in Python. This book will present detailed examples of almost all of the special method names that support creating classes that integrate seamlessly with Python’s built-in features. It will show you how to use JSON, YAML, Pickle, CSV, XML, Shelve, and SQL to create persistent objects and transmit objects between processes. The book also covers logging, warnings, unit testing, configuration files, and how to work with the command line.

This book is broken into three major parts: Pythonic Classes via Special Methods; Persistence and Serialization; Testing, Debugging, Deploying, and Maintaining. The special methods are broken down into several focus areas: initialization, basics, attribute access, callables, contexts, containers, collections, numbers, and more advanced techniques such as decorators and mixin classes.

What you will learn from this book

  • Understand the different design patterns for the __init__() method
  • Discover the essential features of Python 3′s abstract base classes and how you can use them for your own applications
  • Design callable objects and context managers that leverage the with statement
  • Perform object serialization in formats such as JSON, YAML, Pickle, CSV, and XML
  • Employ the Shelve module as a sophisticated local database
  • Map Python objects to a SQL database using the built-in SQLite module
  • Transmit Python objects via RESTful web services
  • Devise strategies for automated unit testing, including how to use the doctest and the unittest.mock module
  • Parse command-line arguments and integrate this with configuration files and environment variables


Approach

This book follows a standard tutorial approach with approximately 750 code samples spread through the 19 chapters. This amounts to over 5,900 lines of code that illustrate each concept.

Who this book is for

This book is aimed at programmers who have already learned the basics of object-oriented Python and need to write more sophisticated, flexible code that integrates seamlessly with the rest of Python. This book assumes a computer science background, with experience of common Python design patterns.

Table of Contents

Part 1 - Pythonic Classes via Special Methods
Chapter 1. The __init__() Method
Chapter 2. Integrating Seamlessly with Python – Basic Special Methods
Chapter 3. Attribute Access, Properties, and Descriptors
Chapter 4. The ABCs of Consistent Design
Chapter 5. Using Callables and Contexts
Chapter 6. Creating Containers and Collections
Chapter 7. Creating Numbers
Chapter 8. Decorators and Mixins – Cross-cutting Aspects

Part 2 - Persistence and Serialization
Chapter 9. Serializing and Saving – JSON, YAML, Pickle, CSV, and XML
Chapter 10. Storing and Retrieving Objects via Shelve
Chapter 11. Storing and Retrieving Objects via SQLite
Chapter 12. Transmitting and Sharing Objects
Chapter 13. Configuration Files and Persistence

Part 3 - Testing, Debugging, Deploying, and Maintaining
Chapter 14. The Logging and Warning Modules
Chapter 15. Designing for Testability
Chapter 16. Coping With the Command Line
Chapter 17. The Module and Package Design
Chapter 18. Quality and Documentation

Mastering.Object-oriented.Python.pdf (3.23 MB, 需要: 10 个论坛币)
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:Mastering Oriented object Master python practical concepts creating detailed examples

已有 1 人评分经验 论坛币 学术水平 热心指数 信用等级 收起 理由
狂热的爱好者 + 60 + 60 + 3 + 3 + 3 奖励积极上传好的资料

总评分: 经验 + 60  论坛币 + 60  学术水平 + 3  热心指数 + 3  信用等级 + 3   查看全部评分

本帖被以下文库推荐

songlinjl 发表于 2014-7-27 20:03:38 来自手机 |显示全部楼层 |坛友微信交流群
bndnsuy 发表于 2014-7-27 19:31
Mastering Object-oriented Python

by Steven F. Lott
仔细学着呢。

使用道具

使用道具

hyq2003 发表于 2014-7-28 07:08:13 |显示全部楼层 |坛友微信交流群
good job

使用道具

kexinkeqing 发表于 2014-7-28 07:10:56 |显示全部楼层 |坛友微信交流群
donwload  and learn it ,thank you

使用道具

lotuseaters 发表于 2014-7-28 09:40:33 |显示全部楼层 |坛友微信交流群
THANKS

使用道具

energy1985 学生认证  发表于 2014-7-28 11:32:09 |显示全部楼层 |坛友微信交流群
仔细学着呢。

使用道具

使用道具

gssdzc 在职认证  发表于 2014-7-28 19:51:40 |显示全部楼层 |坛友微信交流群
thanks a lot

使用道具

songlinjllive 发表于 2014-7-28 21:25:04 来自手机 |显示全部楼层 |坛友微信交流群
hyq2003 发表于 2014-7-28 07:08
good job
漏了漏了

使用道具

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-3-30 15:46