LEADER 05010nam 2200709 a 450 001 9910459425903321 005 20200520144314.0 010 $a1-282-71248-9 010 $a9786612712487 010 $a1-84951-127-6 035 $a(CKB)2670000000054750 035 $a(EBL)944028 035 $a(OCoLC)796383637 035 $a(SSID)ssj0000426500 035 $a(PQKBManifestationID)11295229 035 $a(PQKBTitleCode)TC0000426500 035 $a(PQKBWorkID)10373795 035 $a(PQKB)11258427 035 $a(MiAaPQ)EBC944028 035 $a(CaSebORM)9781849511261 035 $a(PPN)228001331 035 $a(Au-PeEL)EBL944028 035 $a(CaPaEBR)ebr10442987 035 $a(CaONFJC)MIL271248 035 $a(EXLCZ)992670000000054750 100 $a20110223d2010 uy 0 101 0 $aeng 135 $aur|n|---||||| 181 $ctxt 182 $cc 183 $acr 200 10$aPython 3 object oriented programming$b[electronic resource] $eharness the power of Python 3 objects /$fDusty Phillips 205 $a1st edition 210 $aBirmingham, U.K. $cPackt Open Source$d2010 215 $a1 online resource (405 p.) 225 1 $aCommunity experience distilled 300 $aIncludes index. 311 $a1-84951-126-8 327 $aCover; Copyright; Credits; About the Author; About the Reviewers; Table of Contents; Preface; Chapter 1: Object-oriented Design; Object-oriented?; Objects and classes; Specifying attributes and behaviors; Data describes objects; Behaviors are actions; Hiding details and creating the public interface; Composition and inheritance; Inheritance; Inheritance provides abstraction; Multiple inheritance; Case study; Exercises; Summary; Chapter 2: Objects in Python; Creating Python classes; Adding attributes; Making it do something; Initializing the object; Explaining yourself; Modules and packages 327 $aOrganizing the modulesAbsolute imports; Relative imports; Who can access my data?; 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; Case study; Exercises; Summary; Chapter 4: Expecting the Unexpected; Raising exceptions; Raising an exception; What happens when an exception occurs?; Handling exceptions; Exception hierarchy; Defining our own exceptions; Exceptions aren't exceptional; Case study; Exercises; Summary 327 $aChapter 5: When to Use Object-oriented ProgrammingTreat objects as objects; Using properties to add behavior to class data; How it works; Decorators: another way to create properties; When should we use properties?; Managing objects; Removing duplicate code; In practice; Or we can use composition; Case study; Exercises; Summary; Chapter 6: Python Data Structures; Empty objects; Tuples and named tuples; Named tuples; Dictionaries; When should we use dictionaries?; Using defaultdict; Lists; Sorting lists; Sets; Extending built-ins; Case study; Exercises; Summary 327 $aChapter 7: Python Object-oriented ShortcutsPython built-in functions; Len; Reversed; Enumerate; Zip; Other functions; Comprehensions; List comprehensions; Set and dictionary comprehensions; Generator expressions; Generators; 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: Python Design Patterns I; Design patterns; Decorator pattern; Decorator example; Decorators in Python; Observer pattern; Observer example 327 $aStrategy patternStrategy example; Strategy in Python; State pattern; State example; State versus strategy; Singleton pattern; Singleton implementation; Module variables can mimic singletons; Template pattern; Template example; Exercises; Summary; Chapter 9: Python Design Patterns II; Adapter pattern; Facade pattern; Flyweight pattern; Command pattern; Abstract factory pattern; Composite pattern; Exercise; Summary; Chapter 10: Files and Strings; Strings; String manipulation; String formatting; Escaping braces; Keyword arguments; Container lookups; Object lookups; Making it look right 327 $aStrings are Unicode 330 $aHarness the power of Python 3 objects 606 $aPython (Computer program language) 606 $aObject-oriented programming (Computer science) 606 $aObject-oriented programming languages 608 $aElectronic books. 615 0$aPython (Computer program language) 615 0$aObject-oriented programming (Computer science) 615 0$aObject-oriented programming languages. 676 $a005.13 676 $a006.76 700 $aPhillips$b Dusty$0928590 801 0$bMiAaPQ 801 1$bMiAaPQ 801 2$bMiAaPQ 906 $aBOOK 912 $a9910459425903321 996 $aPython 3 object oriented programming$92086981 997 $aUNINA