01196nam 2200301Ia 450 99638940030331620210104171857.0(CKB)4940000000097135(EEBO)2240891188(OCoLC)ocn907300798e(OCoLC)907300798(EXLCZ)99494000000009713520150414d1623 uy 0engurbn||||a|bb|The good treasurer., or, Heaven and earths day of iubile in finding of the most pretious hidden treasures[electronic resource] Preached at Pauls Crosse on VVhitson- Monday the 2. day of Iune. 1623. /By Henry Goodcole Minister of the word of God chaplaine at Serieants Inne in Fleetestreete.London, Printed by Nicholas Oakes.1623.[8], 48 pReproduction of original in: Yale University. Library.eebo-0198Goodcole Henry1586-1641.1008554Okes NicholasUMIUMIBOOK996389400303316The good treasurer., or, Heaven and earths day of iubile in finding of the most pretious hidden treasures2373342UNISA05327nam 2200661 450 991079091960332120200520144314.01-78328-098-0(CKB)2550000001279495(EBL)1674864(SSID)ssj0001216570(PQKBManifestationID)11788440(PQKBTitleCode)TC0001216570(PQKBWorkID)11197243(PQKB)10892514(Au-PeEL)EBL1674864(CaPaEBR)ebr10864878(CaONFJC)MIL600807(OCoLC)878924388(CaSebORM)9781783280971(MiAaPQ)EBC1674864(PPN)228034132(EXLCZ)99255000000127949520140512h20142014 uy 0engurunu|||||txtccrMastering object-oriented Python grasp the intricacies of object-oriented programming in Python in order to efficiency build powerful real-world applications /Steven F. Lott ; cover image by Duraid Fatouhi1st editionBirmingham, [England] :Packt Publishing,2014.©20141 online resource (634 p.)Community Experience DistilledIncludes index.1-78328-097-2 1-306-69556-2 Cover; Copyright; Credits; About the Author; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Some Preliminaries; About casino Blackjack; Playing the game; Blackjack player strategies; Object design for simulating Blackjack; Performance - the time it module; Testing - unittest and doctest; Unit testing and technology spikes; Docstrings - RST markup and documentation tools; The IDE question; About special method names; Summary; Part 1: Pythonic Classes via Special Methods; Chapter 1: The __init__() Method; The implicit superclass - objectThe base class object __init__() method Implementing __init__() in a super class; Using __init__() to create manifest 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; Simple composite objects; Wrapping a collection class; Extending a collection class; More requirements and another designComplex composite objects Complete composite object initialization; Stateless objects without __init__(); Some additional class definitions; Multi-strategy __init__(); More complex initialization alternatives; Initializing static methods; Yet more __init__() techniques; Initialization with type validation; Initialization, encapsulation, and privacy; Summary; Chapter 2: Integrating Seamlessly with Python - Basic Special Methods; The __repr__() and __str__() methods; Non collection __str__() and __repr__(); Collection __str__() and __repr__(); The __format__() methodNested formatting specifications Collections and delegating format specifications; The __hash__() method; Deciding what to hash; Inheriting definitions for immutable objects; Overriding definitions for immutable objects; Overriding definitions for mutable objects; Making a frozen hand from a mutable hand; The __bool__() method; The __bytes__() method; The comparison operator methods; Designing comparisons; Implementation of comparison for objects of the same class; Implementation of comparison for objects of mixed classes; Hard totals, soft totals, and polymorphismA mixed class comparison example The __del__() method; The reference count and destruction; Circular references and garbage collection; Circular references and the weak ref module; The __del__() and close() methods; The __new__() method and immutable objects; The __new__() method and metaclasses; Metaclass example 1 - ordered attributes; Metaclass example 2 - self-reference; Summary; Chapter 3: Attribute Access, Properties, and Descriptors; Basic attribute processing; Attributes and the __init__() method; Creating properties; Eagerly computed properties; Setter and deleter propertiesUsing special methods for attribute accessThis book follows a standard tutorial approach with approximately 750 code samples spread through the 19 chapters. This amounts to over 5,900 lines of code that illustrate each concept.This book is aimed at programmers who have already learned the basics of object-oriented Python and need to write more sophisticated, flexible code that integrates seamlessly with the rest of Python. This book assumes a computer science background, with experience of common Python design patterns.Community experience distilled.Python (Computer program language)Python (Computer program language)005.133Lott Steven F.1107378Fatouhi DuraidMiAaPQMiAaPQMiAaPQBOOK9910790919603321Mastering object-oriented Python3772886UNINA