Normal view MARC view ISBD view

Python 3 Object-oriented Programming.

By: Phillips, Dusty.
Publisher: Birmingham : Packt Publishing Ltd, ©2018Edition: 3rd ed.Description: vi,452p.Content type: text Media type: computer Carrier type: online resourceISBN: 9781789615852.Subject(s): Computer programming | Python (Computer program language)Genre/Form: Print books.
Contents:
Cover -- Copyright -- Credits -- About the Author -- About the Reviewers -- www.PacktPub.com -- Introduction tothe second edition -- Table of Contents -- Preface -- Chapter 1: Object-oriented Design -- Introducing object-oriented -- Objects and classes -- Specifying attributes and behaviors -- Data describes objects -- Behaviors are actions -- Hiding details and creating the public interface -- Composition -- Inheritance -- Inheritance provides abstraction -- Multiple inheritance -- Case study -- Exercises -- Summary -- Chapter 2: Objects in Python -- Creating Python classes -- Adding attributes -- Making it do something -- Talking to yourself -- More arguments -- Initializing the object -- Explaining yourself -- Modules and packages -- Organizing the modules -- Absolute imports -- Relative imports -- Organizing module contents -- Who can access my data? -- Third-party libraries -- Case study -- Exercises -- Summary -- Chapter 3: When Objects Are Alike -- Basic inheritance -- Extending built-ins -- Overriding and super -- Multiple inheritance -- The diamond problem -- Different sets of arguments -- Polymorphism -- Abstract base classes -- Using an abstract base class -- Creating an abstract base class -- Demystifying the magic -- Case study -- Exercises -- Summary -- Chapter 4: Expecting the Unexpected -- Raising exceptions -- Raising an exception -- The effects of an exception -- Handling exceptions -- The Exception hierarchy -- Defining our own exceptions -- Case study -- Exercises -- Summary -- Chapter 5: When to Use Object-oriented Programming -- Treat objects as objects -- Adding behavior to class data with properties -- Properties in detail -- Decorators - another way to create properties -- Deciding when to use properties -- Manager objects -- Removing duplicate code -- In practice -- Case study -- Exercises -- Summary.
Chapter 6: Python Data Structures -- Empty objects -- Tuples and named tuples -- Named tuples -- Dictionaries -- Dictionary use cases -- Using defaultdict -- Counter -- Lists -- Sorting lists -- Sets -- Extending built-ins -- Queues -- FIFO queues -- LIFO queues -- Priority queues -- Case study -- Exercises -- Summary -- Chapter 7: Python Object-oriented Shortcuts -- Python built-in functions -- The len() function -- Reversed -- Enumerate -- File I/O -- Placing it in context -- An alternative to method overloading -- Default arguments -- Variable argument lists -- Unpacking arguments -- Functions are objects too -- Using functions as attributes -- Callable objects -- Case study -- Exercises -- Summary -- Chapter 8: Strings and Serialization -- Strings -- String manipulation -- String formatting -- Escaping braces -- Keyword arguments -- Container lookups -- Object lookups -- Making it look right -- Strings are Unicode -- Converting bytes to text -- Converting text to bytes -- Mutable byte strings -- Regular expressions -- Matching patterns -- Matching a selection of characters -- Escaping characters -- Matching multiple characters -- Grouping patterns together -- Getting information from regular expressions -- Making repeated regular expressions efficient -- Serializing objects -- Customizing pickles -- Serializing web objects -- Case study -- Exercises -- Summary -- Chapter 9: The Iterator Pattern -- Design patterns in brief -- Iterators -- The iterator protocol -- Comprehensions -- List comprehensions -- Set and dictionary comprehensions -- Generator expressions -- Generators -- Yield items from another iterable -- Coroutines -- Back to log parsing -- Closing coroutines and throwing exceptions -- The relationship between coroutines, generators, and functions -- Case study -- Exercises -- Summary -- Chapter 10: Python Design Patterns I.
The decorator pattern -- A decorator example -- Decorators in Python -- The observer pattern -- An observer example -- The strategy pattern -- A strategy example -- Strategy in Python -- The state pattern -- A state example -- State versus strategy -- State transition as coroutines -- The singleton pattern -- Singleton implementation -- The template pattern -- A template example -- Exercises -- Summary -- Chapter 11: 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 -- Chapter 12: Testing Object-oriented Programs -- Why test? -- Test-driven development -- Unit testing -- Assertion methods -- Reducing boilerplate and cleaning up -- Organizing and running tests -- Ignoring broken tests -- Testing with py.test -- One way to do setup and cleanup -- A completely different way to set up variables -- Skipping tests with py.test -- Imitating expensive objects -- How much testing is enough? -- Case study -- Implementing it -- Exercises -- Summary -- Chapter 13: Concurrency -- Threads -- The many problems with threads -- Shared memory -- The global interpreter lock -- Thread overhead -- Multiprocessing -- Multiprocessing pools -- Queues -- The problems with multiprocessing -- Futures -- AsyncIO -- AsyncIO in action -- Reading an AsyncIO Future -- AsyncIO for networking -- Using executors to wrap blocking code -- Streams -- Executors -- Case study -- Exercises -- Summary -- Index.
    average rating: 0.0 (0 votes)
Current location Call number Status Date due Barcode Item holds
On Shelf QA76.73.P98 P455 2018 (Browse shelf) Available AU00000000013053
Total holds: 0

Cover -- Copyright -- Credits -- About the Author -- About the Reviewers -- www.PacktPub.com -- Introduction tothe second edition -- Table of Contents -- Preface -- Chapter 1: Object-oriented Design -- Introducing object-oriented -- Objects and classes -- Specifying attributes and behaviors -- Data describes objects -- Behaviors are actions -- Hiding details and creating the public interface -- Composition -- Inheritance -- Inheritance provides abstraction -- Multiple inheritance -- Case study -- Exercises -- Summary -- Chapter 2: Objects in Python -- Creating Python classes -- Adding attributes -- Making it do something -- Talking to yourself -- More arguments -- Initializing the object -- Explaining yourself -- Modules and packages -- Organizing the modules -- Absolute imports -- Relative imports -- Organizing module contents -- Who can access my data? -- Third-party libraries -- Case study -- Exercises -- Summary -- Chapter 3: When Objects Are Alike -- Basic inheritance -- Extending built-ins -- Overriding and super -- Multiple inheritance -- The diamond problem -- Different sets of arguments -- Polymorphism -- Abstract base classes -- Using an abstract base class -- Creating an abstract base class -- Demystifying the magic -- Case study -- Exercises -- Summary -- Chapter 4: Expecting the Unexpected -- Raising exceptions -- Raising an exception -- The effects of an exception -- Handling exceptions -- The Exception hierarchy -- Defining our own exceptions -- Case study -- Exercises -- Summary -- Chapter 5: When to Use Object-oriented Programming -- Treat objects as objects -- Adding behavior to class data with properties -- Properties in detail -- Decorators - another way to create properties -- Deciding when to use properties -- Manager objects -- Removing duplicate code -- In practice -- Case study -- Exercises -- Summary.

Chapter 6: Python Data Structures -- Empty objects -- Tuples and named tuples -- Named tuples -- Dictionaries -- Dictionary use cases -- Using defaultdict -- Counter -- Lists -- Sorting lists -- Sets -- Extending built-ins -- Queues -- FIFO queues -- LIFO queues -- Priority queues -- Case study -- Exercises -- Summary -- Chapter 7: Python Object-oriented Shortcuts -- Python built-in functions -- The len() function -- Reversed -- Enumerate -- File I/O -- Placing it in context -- An alternative to method overloading -- Default arguments -- Variable argument lists -- Unpacking arguments -- Functions are objects too -- Using functions as attributes -- Callable objects -- Case study -- Exercises -- Summary -- Chapter 8: Strings and Serialization -- Strings -- String manipulation -- String formatting -- Escaping braces -- Keyword arguments -- Container lookups -- Object lookups -- Making it look right -- Strings are Unicode -- Converting bytes to text -- Converting text to bytes -- Mutable byte strings -- Regular expressions -- Matching patterns -- Matching a selection of characters -- Escaping characters -- Matching multiple characters -- Grouping patterns together -- Getting information from regular expressions -- Making repeated regular expressions efficient -- Serializing objects -- Customizing pickles -- Serializing web objects -- Case study -- Exercises -- Summary -- Chapter 9: The Iterator Pattern -- Design patterns in brief -- Iterators -- The iterator protocol -- Comprehensions -- List comprehensions -- Set and dictionary comprehensions -- Generator expressions -- Generators -- Yield items from another iterable -- Coroutines -- Back to log parsing -- Closing coroutines and throwing exceptions -- The relationship between coroutines, generators, and functions -- Case study -- Exercises -- Summary -- Chapter 10: Python Design Patterns I.

The decorator pattern -- A decorator example -- Decorators in Python -- The observer pattern -- An observer example -- The strategy pattern -- A strategy example -- Strategy in Python -- The state pattern -- A state example -- State versus strategy -- State transition as coroutines -- The singleton pattern -- Singleton implementation -- The template pattern -- A template example -- Exercises -- Summary -- Chapter 11: 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 -- Chapter 12: Testing Object-oriented Programs -- Why test? -- Test-driven development -- Unit testing -- Assertion methods -- Reducing boilerplate and cleaning up -- Organizing and running tests -- Ignoring broken tests -- Testing with py.test -- One way to do setup and cleanup -- A completely different way to set up variables -- Skipping tests with py.test -- Imitating expensive objects -- How much testing is enough? -- Case study -- Implementing it -- Exercises -- Summary -- Chapter 13: Concurrency -- Threads -- The many problems with threads -- Shared memory -- The global interpreter lock -- Thread overhead -- Multiprocessing -- Multiprocessing pools -- Queues -- The problems with multiprocessing -- Futures -- AsyncIO -- AsyncIO in action -- Reading an AsyncIO Future -- AsyncIO for networking -- Using executors to wrap blocking code -- Streams -- Executors -- Case study -- Exercises -- Summary -- Index.

Electronic reproduction. Ann Arbor, Michigan : ProQuest Ebook Central, 2017. Available via World Wide Web. Access may be limited to ProQuest Ebook Central affiliated libraries.

Copyright © 2020 Alfaisal University Library. All Rights Reserved.
Tel: +966 11 2158948 Fax: +966 11 2157910 Email:
librarian@alfaisal.edu