|
|
|
|
|
|
|
|
1. |
Record Nr. |
UNINA9910785226503321 |
|
|
Autore |
Phillips Dusty |
|
|
Titolo |
Python 3 object oriented programming [[electronic resource] ] : harness the power of Python 3 objects / / Dusty Phillips |
|
|
|
|
|
|
|
Pubbl/distr/stampa |
|
|
Birmingham, U.K., : Packt Open Source, 2010 |
|
|
|
|
|
|
|
ISBN |
|
1-282-71248-9 |
9786612712487 |
1-84951-127-6 |
|
|
|
|
|
|
|
|
Edizione |
[1st edition] |
|
|
|
|
|
Descrizione fisica |
|
1 online resource (405 p.) |
|
|
|
|
|
|
Collana |
|
Community experience distilled |
|
|
|
|
|
|
Disciplina |
|
|
|
|
|
|
|
|
Soggetti |
|
Python (Computer program language) |
Object-oriented programming (Computer science) |
Object-oriented programming languages |
|
|
|
|
|
|
|
|
Lingua di pubblicazione |
|
|
|
|
|
|
Formato |
Materiale a stampa |
|
|
|
|
|
Livello bibliografico |
Monografia |
|
|
|
|
|
Note generali |
|
|
|
|
|
|
Nota di contenuto |
|
Cover; 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 |
Organizing 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 |
|
|
|
|