Python 3 Object-Oriented Programming, 2nd Edition

0
(0)

Python 3 Object-Oriented Programming, 2nd Edition
 

  • Author:Dusty Phillips
  • Length: 504 pages
  • Edition: 2nd Revised edition
  • Publisher: Packt Publishing
  • Publication Date: 2015-09-01
  • ISBN-10: 1784398780
  • ISBN-13: 9781784398781
  • Sales Rank: #79065 (See Top 100 Books)
  • Download:Register/Login to Download
  • Buy Print:Buy from amazon


    Book Description

    Unleash the power of Python 3 objects

    About This Book

    • Stop writing scripts and start architecting programs
    • Learn the latest Python syntax and libraries
    • A practical, hands-on tutorial that teaches you all about abstract design patterns and how to implement them in Python 3

    Who This Book Is For

    If you’re new to object-oriented programming techniques, or if you have basic Python skills and wish to learn in depth how and when to correctly apply object-oriented programming in Python to design software, this is the book for you.

    What You Will Learn

    • Implement objects in Python by creating classes and defining methods
    • Separate related objects into a taxonomy of classes and describe the properties and behaviors of those objects via the class interface
    • Extend class functionality using inheritance
    • Understand when to use object-oriented features, and more importantly when not to use them
    • Discover what design patterns are and why they are different in Python
    • Uncover the simplicity of unit testing and why it’s so important in Python
    • Grasp common concurrency techniques and pitfalls in Python 3
    • Exploit object-oriented programming in key Python technologies such as Kivy and Django.
    • Object-oriented programming concurrently with asyncio

    In Detail

    Python 3 is more versatile and easier to use than ever. It runs on all major platforms in a huge array of use cases. Coding in Python minimizes development time and increases productivity in comparison to other languages. Clean, maintainable code is easy to both read and write using Python’s clear, concise syntax.

    Object-oriented programming is a popular design paradigm in which data and behaviors are encapsulated in such a way that they can be manipulated together. Many modern programming languages utilize the powerful concepts behind object-oriented programming and Python is no exception.

    Starting with a detailed analysis of object-oriented analysis and design, you will use the Python programming language to clearly grasp key concepts from the object-oriented paradigm. This book fully explains classes, data encapsulation, inheritance, polymorphism, abstraction, and exceptions with an emphasis on when you can use each principle to develop well-designed software.

    You’ll get an in-depth analysis of many common object-oriented design patterns that are more suitable to Python’s unique style. This book will not just teach Python syntax, but will also build your confidence in how to program.

    You will also learn how to create maintainable applications by studying higher level design patterns. Following this, you’ll learn the complexities of string and file manipulation, and how Python distinguishes between binary and textual data. Not one, but two very powerful automated testing systems will be introduced in the book. After you discover the joy of unit testing and just how easy it can be, you’ll study higher level libraries such as database connectors and GUI toolkits and learn how they uniquely apply object-oriented principles. You’ll learn how these principles will allow you to make greater use of key members of the Python eco-system such as Django and Kivy.

    This new edition includes all the topics that made Python 3 Object-oriented Programming an instant Packt classic. It’s also packed with updated content to reflect recent changes in the core Python library and covers modern third-party packages that were not available on the Python 3 platform when the book was first published.

    Style and approach

    Throughout the book you will learn key object-oriented programming techniques demonstrated by comprehensive case studies in the context of a larger project.

    Table of Contents

    Chapter 1: Object-oriented Design
    Chapter 2: Objects in Python
    Chapter 3: When Objects Are Alike
    Chapter 4: Expecting the Unexpected
    Chapter 5: When to Use Object-oriented Programming
    Chapter 6: Python Data Structures
    Chapter 7: Python Object-oriented Shortcuts
    Chapter 8: Strings and Serialization
    Chapter 9: The Iterator Pattern
    Chapter 10: Python Design Patterns I
    Chapter 11: Python Design Patterns II
    Chapter 12: Testing Object-oriented Programs
    Chapter 13: Concurrency

    中文:

    书名:Python3面向对象编程,第二版

    Unleash the power of Python 3 objects

    About This Book

    • 停止编写脚本,开始设计程序
    • 了解最新的Python语法和库
    • 这是一个实用的实践教程,教您有关抽象设计模式以及如何在Python3中实现它们的所有内容

    Who This Book Is For

    如果您是面向对象编程技术的新手,或者您有基本的Python技能,并且希望深入了解如何以及何时正确地将面向对象编程应用到软件设计中,这是一本适合您的书。

    What You Will Learn

    • 通过创建类和定义方法在Python中实现对象
    • 将相关对象分离到类的分类中,并通过类接口描述这些对象的属性和行为
    • 使用继承扩展类功能
    • 了解何时使用面向对象的功能,以及更重要的是何时不使用它们
    • 了解什么是设计模式以及它们在Python中的不同之处
    • 揭示单元测试的简单性,以及为什么它在Python中如此重要
    • 掌握Python3中的常见并发技术和陷阱
    • 在Kivy和Django等关键的Python技术中使用面向对象的编程。
    • 与Ayncio并行的面向对象编程

    In Detail

    Python3的功能比以往任何时候都要多,也更容易使用。它运行在所有主要平台上的大量用例中。与其他语言相比,使用Python语言编写代码可以最大限度地缩短开发时间并提高生产率。使用Python清晰、简明的语法,干净、可维护的代码很容易读写。

    面向对象编程是一种流行的设计范例,其中数据和行为以一种可以一起操作的方式进行封装。许多现代编程语言都利用了面向对象编程背后的强大概念,Python也不例外。

    从详细分析面向对象的分析和设计开始,您将使用Python编程语言清楚地掌握面向对象范例中的关键概念。本书全面解释了类、数据封装、继承、多态、抽象和异常,重点介绍了何时可以使用每个原则来开发设计良好的软件。

    您将深入分析更适合于Python独特风格的许多常见的面向对象设计模式。这本书不仅将教授Python语法,还将建立您对如何编程的信心。

    您还将学习如何通过学习高级设计模式来创建可维护的应用程序。接下来,您将了解字符串和文件操作的复杂性,以及Python如何区分二进制数据和文本数据。不是一个,而是两个非常强大的自动化测试系统将在书中介绍。在您了解了单元测试的joy以及它是多么容易之后,您将学习更高级的库,如数据库连接器和图形用户界面工具包,并了解它们如何独特地应用面向对象的原则。您将了解到这些原则将如何让您更好地利用Django和Kivy等Python生态系统的关键成员。

    这个新版本包含了使Python3面向对象编程成为即时Packt经典的所有主题。它还包含了更新的内容,以反映核心Python库的最新变化,并涵盖了当该书首次出版时在Python3平台上不可用的现代第三方包。

    Style and approach

    在整本书中,您将学习关键的面向对象编程技术,并在大型项目的背景下通过全面的案例研究进行演示。

    Table of Contents

    Chapter 1: Object-oriented Design
    Chapter 2: Objects in Python
    Chapter 3: When Objects Are Alike
    Chapter 4: Expecting the Unexpected
    Chapter 5: When to Use Object-oriented Programming
    Chapter 6: Python Data Structures
    第7章:面向对象的快捷键
    Chapter 8: Strings and Serialization
    Chapter 9: The Iterator Pattern
    Chapter 10: Python Design Patterns I
    第11章:Python设计模式II
    第12章:测试面向对象的程序
    Chapter 13: Concurrency

  • 下载电子版:下载地址
  • 购买纸质版:亚马逊商城

    点击星号评分!

    平均分 0 / 5. 投票数: 0

    还没有投票!请为他投一票。

  • 推荐阅读

    评论 抢沙发

    评论前必须登录!

     

    登录

    找回密码

    注册