3 options
Python 3 object-oriented programming : unleash the power of Python 3 objects / Dusty Phillips.
- Format:
- Book
- Author/Creator:
- Phillips, Dusty, author.
- Series:
- Community experience distilled.
- Community Experience Distilled
- Language:
- English
- Subjects (All):
- Python (Computer program language).
- Object-oriented programming (Computer science).
- Physical Description:
- 1 online resource (460 p.)
- Edition:
- 2nd ed.
- Other Title:
- Unleash the power of Python 3 objects
- Place of Publication:
- Birmingham, [England] ; Mumbai, [India] : Packt Publishing, 2015.
- System Details:
- text file
- Biography/History:
- Phillips Dusty: Dusty Phillips is a Canadian software developer and an author currently living in New Brunswick. He has been active in the open-source community for 2 decades and has been programming in Python for nearly as long. He holds a master's degree in computer science and has worked for Facebook, the United Nations, and several startups.
- Summary:
- 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...
- 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""
- Notes:
- Includes index.
- Description based on online resource; title from PDF title page (ebrary, viewed November 19, 2015).
- ISBN:
- 9781784395957
- 1784395951
- OCLC:
- 922580702
The Penn Libraries is committed to describing library materials using current, accurate, and responsible language. If you discover outdated or inaccurate language, please fill out this feedback form to report it and suggest alternative language.