Title Statements
- Full title :Mastering object-oriented Python : build powerful applications with reusable code using OOP design patterns and Python 3.7 / Steven F. Lott.
Summary
Mastering Object-Oriented Python, Second Edition, will introduce the advanced features of the Python programming language to create the highest quality Python programs possible. This means exploring design alternatives and determining which design offers the best performance, while still being a good fit with the problem being solved.
Read More ↓Edition Statements
- Publication Date:2019
- Edition:Second edition
Publication Statements
- Publisher(s):Packt Publishing, Limited
- Place of Publication:Birmingham
- Language:eng
- Publication Date:2019
Notes
Creating properties
The Physical Object
- Description:1 online resource (755 pages)
Edition Identifiers
- ISBN:1789531403, 9781789531404, 1789531365, 9781789531367
- oclc:on1107588524
- LC Classification:QA76.73.P98
- Dewey Decimal:005.133
Table of Contents
Cover; Title Page; Copyright and Credits; About Packt; Contributors; Table of Contents; Preface; Section 1: Tighter Integration Via Special Methods; Chapter 1: Preliminaries, Tools, and Techniques; Technical requirements; About the Blackjack game; Playing the game; Blackjack player strategies; Object design for simulating Blackjack; The Python runtime and special methods; Interaction, scripting, and tools; Selecting an IDE; Consistency and style; Type hints and the mypy program; Performance -- the timeit module; Testing -- unittest and doctest; Documentation -- sphinx and RST markup
Installing componentsSummary; Chapter 2: The __init__() Method; Technical requirements; The implicit superclass -- object; The base class object __init__() method; Implementing __init__() in a superclass; Creating enumerated constants; Leveraging __init__() via a factory function; Faulty factory design and the vague else clause; Simplicity and consistency using elif sequences; Simplicity using mapping and class objects; Two parallel mappings; Mapping to a tuple of values; The partial function solution; Fluent APIs for factories; Implementing __init__() in each subclass; Composite objects
Wrapping a c…
Subjects
Writers
No reviews yet. Be the first to rate this work.
Files & Downloads
No downloadable files are registered for this work yet.
Rate & Review