Mastering Object-oriented Python.:
This 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...
Gespeichert in:
1. Verfasser: | |
---|---|
Format: | Elektronisch E-Book |
Sprache: | English |
Veröffentlicht: |
Packt Publishing,
2014.
|
Schriftenreihe: | Community experience distilled.
|
Schlagworte: | |
Online-Zugang: | Volltext |
Zusammenfassung: | This 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. |
Beschreibung: | 1 online resource |
ISBN: | 1306695562 9781306695565 9781783280988 1783280980 |
Internformat
MARC
LEADER | 00000cam a2200000 a 4500 | ||
---|---|---|---|
001 | ZDB-4-EBA-ocn878924388 | ||
003 | OCoLC | ||
005 | 20241004212047.0 | ||
006 | m o d | ||
007 | cr |n||||||||| | ||
008 | 140502s2014 xx o 000 0 eng d | ||
040 | |a IDEBK |b eng |e pn |c IDEBK |d EBLCP |d MHW |d DEBSZ |d OCLCQ |d VT2 |d OCLCO |d N$T |d COO |d OCLCO |d N$T |d OCLCF |d OCLCQ |d OCLCO |d OCLCQ |d AGLDB |d OCLCQ |d ICA |d OCLCQ |d ZCU |d MERUC |d OCLCQ |d D6H |d OCLCQ |d VTS |d ICG |d OCLCQ |d STF |d DKC |d AU@ |d OCLCQ |d AJS |d SGP |d OCLCO |d OCLCQ |d OCLCO |d OCLCL |d OCLCQ |d SXB |d OCLCQ | ||
020 | |a 1306695562 |q (electronic bk.) | ||
020 | |a 9781306695565 |q (electronic bk.) | ||
020 | |a 9781783280988 |q (electronic bk.) | ||
020 | |a 1783280980 |q (electronic bk.) | ||
020 | |z 9781783280971 | ||
020 | |z 1783280972 | ||
035 | |a (OCoLC)878924388 | ||
037 | |a 600807 |b MIL | ||
050 | 4 | |a QA76.73 .P98 | |
072 | 7 | |a COM |x 051360 |2 bisacsh | |
082 | 7 | |a 005.13 | |
049 | |a MAIN | ||
100 | 1 | |a F. Lott, Steven. | |
245 | 1 | 0 | |a Mastering Object-oriented Python. |
260 | |b Packt Publishing, |c 2014. | ||
300 | |a 1 online resource | ||
336 | |a text |b txt |2 rdacontent | ||
337 | |a computer |b c |2 rdamedia | ||
338 | |a online resource |b cr |2 rdacarrier | ||
490 | 1 | |a Community Experience Distilled | |
588 | 0 | |a Print version record. | |
520 | |a This 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. | ||
505 | 0 | |a 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 -- object | |
505 | 8 | |a The 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 design | |
505 | 8 | |a Complex 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__() method | |
505 | 8 | |a Nested 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 polymorphism | |
505 | 8 | |a A 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 properties | |
650 | 0 | |a Python (Computer program language) |0 http://id.loc.gov/authorities/subjects/sh96008834 | |
650 | 6 | |a Python (Langage de programmation) | |
650 | 7 | |a COMPUTERS |x Programming Languages |x Python. |2 bisacsh | |
650 | 7 | |a Python (Computer program language) |2 fast | |
758 | |i has work: |a Mastering object-oriented Python (Text) |1 https://id.oclc.org/worldcat/entity/E39PCFP3BDfhhGBMqT4C8vYfhd |4 https://id.oclc.org/worldcat/ontology/hasWork | ||
776 | 0 | 8 | |i Print version: |z 9781306695565 |
830 | 0 | |a Community experience distilled. |0 http://id.loc.gov/authorities/names/no2011030603 | |
856 | 4 | 0 | |l FWS01 |p ZDB-4-EBA |q FWS_PDA_EBA |u https://search.ebscohost.com/login.aspx?direct=true&scope=site&db=nlebk&AN=762389 |3 Volltext |
936 | |a BATCHLOAD | ||
938 | |a EBL - Ebook Library |b EBLB |n EBL1674864 | ||
938 | |a EBSCOhost |b EBSC |n 762389 | ||
938 | |a ProQuest MyiLibrary Digital eBook Collection |b IDEB |n cis28230914 | ||
994 | |a 92 |b GEBAY | ||
912 | |a ZDB-4-EBA | ||
049 | |a DE-863 |
Datensatz im Suchindex
DE-BY-FWS_katkey | ZDB-4-EBA-ocn878924388 |
---|---|
_version_ | 1816882270926012416 |
adam_text | |
any_adam_object | |
author | F. Lott, Steven |
author_facet | F. Lott, Steven |
author_role | |
author_sort | F. Lott, Steven |
author_variant | l s f ls lsf |
building | Verbundindex |
bvnumber | localFWS |
callnumber-first | Q - Science |
callnumber-label | QA76 |
callnumber-raw | QA76.73 .P98 |
callnumber-search | QA76.73 .P98 |
callnumber-sort | QA 276.73 P98 |
callnumber-subject | QA - Mathematics |
collection | ZDB-4-EBA |
contents | 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 -- object The 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 design Complex 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__() method Nested 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 polymorphism A 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 properties |
ctrlnum | (OCoLC)878924388 |
dewey-full | 005.13 |
dewey-hundreds | 000 - Computer science, information, general works |
dewey-ones | 005 - Computer programming, programs, data, security |
dewey-raw | 005.13 |
dewey-search | 005.13 |
dewey-sort | 15.13 |
dewey-tens | 000 - Computer science, information, general works |
discipline | Informatik |
format | Electronic eBook |
fullrecord | <?xml version="1.0" encoding="UTF-8"?><collection xmlns="http://www.loc.gov/MARC21/slim"><record><leader>05668cam a2200589 a 4500</leader><controlfield tag="001">ZDB-4-EBA-ocn878924388</controlfield><controlfield tag="003">OCoLC</controlfield><controlfield tag="005">20241004212047.0</controlfield><controlfield tag="006">m o d </controlfield><controlfield tag="007">cr |n|||||||||</controlfield><controlfield tag="008">140502s2014 xx o 000 0 eng d</controlfield><datafield tag="040" ind1=" " ind2=" "><subfield code="a">IDEBK</subfield><subfield code="b">eng</subfield><subfield code="e">pn</subfield><subfield code="c">IDEBK</subfield><subfield code="d">EBLCP</subfield><subfield code="d">MHW</subfield><subfield code="d">DEBSZ</subfield><subfield code="d">OCLCQ</subfield><subfield code="d">VT2</subfield><subfield code="d">OCLCO</subfield><subfield code="d">N$T</subfield><subfield code="d">COO</subfield><subfield code="d">OCLCO</subfield><subfield code="d">N$T</subfield><subfield code="d">OCLCF</subfield><subfield code="d">OCLCQ</subfield><subfield code="d">OCLCO</subfield><subfield code="d">OCLCQ</subfield><subfield code="d">AGLDB</subfield><subfield code="d">OCLCQ</subfield><subfield code="d">ICA</subfield><subfield code="d">OCLCQ</subfield><subfield code="d">ZCU</subfield><subfield code="d">MERUC</subfield><subfield code="d">OCLCQ</subfield><subfield code="d">D6H</subfield><subfield code="d">OCLCQ</subfield><subfield code="d">VTS</subfield><subfield code="d">ICG</subfield><subfield code="d">OCLCQ</subfield><subfield code="d">STF</subfield><subfield code="d">DKC</subfield><subfield code="d">AU@</subfield><subfield code="d">OCLCQ</subfield><subfield code="d">AJS</subfield><subfield code="d">SGP</subfield><subfield code="d">OCLCO</subfield><subfield code="d">OCLCQ</subfield><subfield code="d">OCLCO</subfield><subfield code="d">OCLCL</subfield><subfield code="d">OCLCQ</subfield><subfield code="d">SXB</subfield><subfield code="d">OCLCQ</subfield></datafield><datafield tag="020" ind1=" " ind2=" "><subfield code="a">1306695562</subfield><subfield code="q">(electronic bk.)</subfield></datafield><datafield tag="020" ind1=" " ind2=" "><subfield code="a">9781306695565</subfield><subfield code="q">(electronic bk.)</subfield></datafield><datafield tag="020" ind1=" " ind2=" "><subfield code="a">9781783280988</subfield><subfield code="q">(electronic bk.)</subfield></datafield><datafield tag="020" ind1=" " ind2=" "><subfield code="a">1783280980</subfield><subfield code="q">(electronic bk.)</subfield></datafield><datafield tag="020" ind1=" " ind2=" "><subfield code="z">9781783280971</subfield></datafield><datafield tag="020" ind1=" " ind2=" "><subfield code="z">1783280972</subfield></datafield><datafield tag="035" ind1=" " ind2=" "><subfield code="a">(OCoLC)878924388</subfield></datafield><datafield tag="037" ind1=" " ind2=" "><subfield code="a">600807</subfield><subfield code="b">MIL</subfield></datafield><datafield tag="050" ind1=" " ind2="4"><subfield code="a">QA76.73 .P98</subfield></datafield><datafield tag="072" ind1=" " ind2="7"><subfield code="a">COM</subfield><subfield code="x">051360</subfield><subfield code="2">bisacsh</subfield></datafield><datafield tag="082" ind1="7" ind2=" "><subfield code="a">005.13</subfield></datafield><datafield tag="049" ind1=" " ind2=" "><subfield code="a">MAIN</subfield></datafield><datafield tag="100" ind1="1" ind2=" "><subfield code="a">F. Lott, Steven.</subfield></datafield><datafield tag="245" ind1="1" ind2="0"><subfield code="a">Mastering Object-oriented Python.</subfield></datafield><datafield tag="260" ind1=" " ind2=" "><subfield code="b">Packt Publishing,</subfield><subfield code="c">2014.</subfield></datafield><datafield tag="300" ind1=" " ind2=" "><subfield code="a">1 online resource</subfield></datafield><datafield tag="336" ind1=" " ind2=" "><subfield code="a">text</subfield><subfield code="b">txt</subfield><subfield code="2">rdacontent</subfield></datafield><datafield tag="337" ind1=" " ind2=" "><subfield code="a">computer</subfield><subfield code="b">c</subfield><subfield code="2">rdamedia</subfield></datafield><datafield tag="338" ind1=" " ind2=" "><subfield code="a">online resource</subfield><subfield code="b">cr</subfield><subfield code="2">rdacarrier</subfield></datafield><datafield tag="490" ind1="1" ind2=" "><subfield code="a">Community Experience Distilled</subfield></datafield><datafield tag="588" ind1="0" ind2=" "><subfield code="a">Print version record.</subfield></datafield><datafield tag="520" ind1=" " ind2=" "><subfield code="a">This 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.</subfield></datafield><datafield tag="505" ind1="0" ind2=" "><subfield code="a">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 -- object</subfield></datafield><datafield tag="505" ind1="8" ind2=" "><subfield code="a">The 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 design</subfield></datafield><datafield tag="505" ind1="8" ind2=" "><subfield code="a">Complex 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__() method</subfield></datafield><datafield tag="505" ind1="8" ind2=" "><subfield code="a">Nested 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 polymorphism</subfield></datafield><datafield tag="505" ind1="8" ind2=" "><subfield code="a">A 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 properties</subfield></datafield><datafield tag="650" ind1=" " ind2="0"><subfield code="a">Python (Computer program language)</subfield><subfield code="0">http://id.loc.gov/authorities/subjects/sh96008834</subfield></datafield><datafield tag="650" ind1=" " ind2="6"><subfield code="a">Python (Langage de programmation)</subfield></datafield><datafield tag="650" ind1=" " ind2="7"><subfield code="a">COMPUTERS</subfield><subfield code="x">Programming Languages</subfield><subfield code="x">Python.</subfield><subfield code="2">bisacsh</subfield></datafield><datafield tag="650" ind1=" " ind2="7"><subfield code="a">Python (Computer program language)</subfield><subfield code="2">fast</subfield></datafield><datafield tag="758" ind1=" " ind2=" "><subfield code="i">has work:</subfield><subfield code="a">Mastering object-oriented Python (Text)</subfield><subfield code="1">https://id.oclc.org/worldcat/entity/E39PCFP3BDfhhGBMqT4C8vYfhd</subfield><subfield code="4">https://id.oclc.org/worldcat/ontology/hasWork</subfield></datafield><datafield tag="776" ind1="0" ind2="8"><subfield code="i">Print version:</subfield><subfield code="z">9781306695565</subfield></datafield><datafield tag="830" ind1=" " ind2="0"><subfield code="a">Community experience distilled.</subfield><subfield code="0">http://id.loc.gov/authorities/names/no2011030603</subfield></datafield><datafield tag="856" ind1="4" ind2="0"><subfield code="l">FWS01</subfield><subfield code="p">ZDB-4-EBA</subfield><subfield code="q">FWS_PDA_EBA</subfield><subfield code="u">https://search.ebscohost.com/login.aspx?direct=true&scope=site&db=nlebk&AN=762389</subfield><subfield code="3">Volltext</subfield></datafield><datafield tag="936" ind1=" " ind2=" "><subfield code="a">BATCHLOAD</subfield></datafield><datafield tag="938" ind1=" " ind2=" "><subfield code="a">EBL - Ebook Library</subfield><subfield code="b">EBLB</subfield><subfield code="n">EBL1674864</subfield></datafield><datafield tag="938" ind1=" " ind2=" "><subfield code="a">EBSCOhost</subfield><subfield code="b">EBSC</subfield><subfield code="n">762389</subfield></datafield><datafield tag="938" ind1=" " ind2=" "><subfield code="a">ProQuest MyiLibrary Digital eBook Collection</subfield><subfield code="b">IDEB</subfield><subfield code="n">cis28230914</subfield></datafield><datafield tag="994" ind1=" " ind2=" "><subfield code="a">92</subfield><subfield code="b">GEBAY</subfield></datafield><datafield tag="912" ind1=" " ind2=" "><subfield code="a">ZDB-4-EBA</subfield></datafield><datafield tag="049" ind1=" " ind2=" "><subfield code="a">DE-863</subfield></datafield></record></collection> |
id | ZDB-4-EBA-ocn878924388 |
illustrated | Not Illustrated |
indexdate | 2024-11-27T13:25:57Z |
institution | BVB |
isbn | 1306695562 9781306695565 9781783280988 1783280980 |
language | English |
oclc_num | 878924388 |
open_access_boolean | |
owner | MAIN DE-863 DE-BY-FWS |
owner_facet | MAIN DE-863 DE-BY-FWS |
physical | 1 online resource |
psigel | ZDB-4-EBA |
publishDate | 2014 |
publishDateSearch | 2014 |
publishDateSort | 2014 |
publisher | Packt Publishing, |
record_format | marc |
series | Community experience distilled. |
series2 | Community Experience Distilled |
spelling | F. Lott, Steven. Mastering Object-oriented Python. Packt Publishing, 2014. 1 online resource text txt rdacontent computer c rdamedia online resource cr rdacarrier Community Experience Distilled Print version record. This 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. 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 -- object The 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 design Complex 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__() method Nested 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 polymorphism A 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 properties Python (Computer program language) http://id.loc.gov/authorities/subjects/sh96008834 Python (Langage de programmation) COMPUTERS Programming Languages Python. bisacsh Python (Computer program language) fast has work: Mastering object-oriented Python (Text) https://id.oclc.org/worldcat/entity/E39PCFP3BDfhhGBMqT4C8vYfhd https://id.oclc.org/worldcat/ontology/hasWork Print version: 9781306695565 Community experience distilled. http://id.loc.gov/authorities/names/no2011030603 FWS01 ZDB-4-EBA FWS_PDA_EBA https://search.ebscohost.com/login.aspx?direct=true&scope=site&db=nlebk&AN=762389 Volltext |
spellingShingle | F. Lott, Steven Mastering Object-oriented Python. Community experience distilled. 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 -- object The 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 design Complex 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__() method Nested 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 polymorphism A 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 properties Python (Computer program language) http://id.loc.gov/authorities/subjects/sh96008834 Python (Langage de programmation) COMPUTERS Programming Languages Python. bisacsh Python (Computer program language) fast |
subject_GND | http://id.loc.gov/authorities/subjects/sh96008834 |
title | Mastering Object-oriented Python. |
title_auth | Mastering Object-oriented Python. |
title_exact_search | Mastering Object-oriented Python. |
title_full | Mastering Object-oriented Python. |
title_fullStr | Mastering Object-oriented Python. |
title_full_unstemmed | Mastering Object-oriented Python. |
title_short | Mastering Object-oriented Python. |
title_sort | mastering object oriented python |
topic | Python (Computer program language) http://id.loc.gov/authorities/subjects/sh96008834 Python (Langage de programmation) COMPUTERS Programming Languages Python. bisacsh Python (Computer program language) fast |
topic_facet | Python (Computer program language) Python (Langage de programmation) COMPUTERS Programming Languages Python. |
url | https://search.ebscohost.com/login.aspx?direct=true&scope=site&db=nlebk&AN=762389 |
work_keys_str_mv | AT flottsteven masteringobjectorientedpython |