search
Subscription
0
cart
close
You have no products in your basket yet
left
Tech Categories
Tech Categories
Data Web Development Programming Cloud and Networking Security Game Development Mobile IoT and Hardware Business and Other
Best Sellers
Tech Categories
Data Web Development Programming Cloud and Networking Security Game Development Mobile IoT and Hardware Business and Other
Best Sellers
New Releases
Tech Categories
Data Web Development Programming Cloud and Networking Security Game Development Mobile IoT and Hardware Business and Other
New Releases
Books
Tech Categories
Data Web Development Programming Cloud and Networking Security Game Development Mobile IoT and Hardware Business and Other
Popular Books
Videos
Tech Categories
Data Web Development Programming Cloud and Networking Security Game Development Mobile IoT and Hardware Business and Other
Popular Videos
Audiobooks
Tech Categories
Data Web Development Programming Cloud and Networking Security Game Development Mobile IoT and Hardware Business and Other
Popular Audiobooks
Articles
Newsletters
right
Python 3 Object-Oriented Programming - Second Edition

Python 3 Object-Oriented Programming - Second Edition: Building robust and maintainable software with object oriented design patterns in Python

By Dusty Phillips
$43.99 $29.99
Book Aug 2015 460 pages 1st Edition
eBook
$43.99 $29.99
Print
$54.99
Subscription
$15.99 Monthly
eBook
$43.99 $29.99
Print
$54.99
Subscription
$15.99 Monthly

What do you get with eBook?

Feature icon Instant access to your Digital eBook purchase
Feature icon Download this book in EPUB and PDF formats
Feature icon Access this title in our online reader with advanced features
Feature icon DRM FREE - Read whenever, wherever and however you want
Buy Now

Product Details


Publication date : Aug 20, 2015
Length 460 pages
Edition : 1st Edition
Language : English
ISBN-13 : 9781784398781
Category :
toc View table of contents toc Preview Book toc Download Code

Key benefits

  • 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

Description

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.  

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

What do you get with eBook?

Feature icon Instant access to your Digital eBook purchase
Feature icon Download this book in EPUB and PDF formats
Feature icon Access this title in our online reader with advanced features
Feature icon DRM FREE - Read whenever, wherever and however you want
Buy Now

Product Details


Publication date : Aug 20, 2015
Length 460 pages
Edition : 1st Edition
Language : English
ISBN-13 : 9781784398781
Category :

Table of Contents

21 Chapters
Python 3 Object-oriented Programming Second Edition Packt Packt
Python 3 Object-oriented Programming Second Edition
Credits Packt Packt
Credits
About the Author Packt Packt
About the Author
About the Reviewers Packt Packt
About the Reviewers
www.PacktPub.com Packt Packt
www.PacktPub.com
Introduction to the second edition Packt Packt
Introduction to the second edition
Preface Packt Packt
Preface
Object-oriented Design Packt Packt
Object-oriented Design
Introducing object-oriented
Objects and classes
Specifying attributes and behaviors
Hiding details and creating the public interface
Composition
Inheritance
Case study
Exercises
Summary
Objects in Python Packt Packt
Objects in Python
Creating Python classes
Modules and packages
Organizing module contents
Who can access my data?
Third-party libraries
Case study
Exercises
Summary
When Objects Are Alike Packt Packt
When Objects Are Alike
Basic inheritance
Multiple inheritance
Polymorphism
Abstract base classes
Case study
Exercises
Summary
Expecting the Unexpected Packt Packt
Expecting the Unexpected
Raising exceptions
Case study
Exercises
Summary
When to Use Object-oriented Programming Packt Packt
When to Use Object-oriented Programming
Treat objects as objects
Adding behavior to class data with properties
Manager objects
Case study
Exercises
Summary
Python Data Structures Packt Packt
Python Data Structures
Empty objects
Tuples and named tuples
Dictionaries
Lists
Sets
Extending built-ins
Queues
Case study
Exercises
Summary
Python Object-oriented Shortcuts Packt Packt
Python Object-oriented Shortcuts
Python built-in functions
An alternative to method overloading
Functions are objects too
Case study
Exercises
Summary
Strings and Serialization Packt Packt
Strings and Serialization
Strings
Regular expressions
Serializing objects
Case study
Exercises
Summary
The Iterator Pattern Packt Packt
The Iterator Pattern
Design patterns in brief
Iterators
Comprehensions
Generators
Coroutines
Case study
Exercises
Summary
Python Design Patterns I Packt Packt
Python Design Patterns I
The decorator pattern
The observer pattern
The strategy pattern
The state pattern
The singleton pattern
The template pattern
Exercises
Summary
Python Design Patterns II Packt Packt
Python Design Patterns II
The adapter pattern
The facade pattern
The flyweight pattern
The command pattern
The abstract factory pattern
The composite pattern
Exercises
Summary
Testing Object-oriented Programs Packt Packt
Testing Object-oriented Programs
Why test?
Unit testing
Testing with py.test
Imitating expensive objects
How much testing is enough?
Case study
Exercises
Summary
Concurrency Packt Packt
Concurrency
Threads
Multiprocessing
Futures
AsyncIO
Case study
Exercises
Summary
Index Packt Packt
Index
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQS

How do I buy and download an eBook? Packt Packt

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Packt Packt

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Packt Packt
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Packt Packt

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Packt Packt
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Packt Packt

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.