Learning Python - Mark Lutz [605]
sets, Other Core Types
shared properties, Type Categories Revisited
strings, Strings, Pattern Matching
tuples, Tuples, Tuples, Why Lists and Tuples?
type, How to Break Your Code’s Flexibility
built-in scope, The Built-in Scope
builtins module, Other Built-in Numeric Tools, The Built-in Scope
byte code, OK, but What’s the Downside?, Byte code compilation
compilation, Byte code compilation
byte order marker, Text and Binary Files (see BOM)
bytearray, Strings, Using 3.0 (and 2.6) bytearray Objects, Using 3.0 (and 2.6) bytearray Objects
object type, using, Using 3.0 (and 2.6) bytearray Objects, Using 3.0 (and 2.6) bytearray Objects
bytearray string type, Python’s String Types
bytes, Strings
bytes object, String Changes in 3.0, Text and Binary Files, Other Unicode Coding Techniques
data encoding in, Text and Binary Files
literals, Other Unicode Coding Techniques
bytes string type, Other Ways to Code Strings, Python’s String Types
C
C code, Common Coding Gotchas
call expressions, String Methods
calls, Calls, Calls
character encoding schemes, Character Encoding Schemes
character set encoding declarations, Source File Character Set Encoding Declarations
chmod command, Unix Executable Scripts (#!)
class attribute descriptors, Increasing Levels of Magic
class decorators, Managing Calls and Instances, Class Decorators, Usage, Implementation, Supporting multiple instances, Coding Class Decorators, Singleton Classes, Tracing Object Interfaces, Tracing Object Interfaces, Class Blunders II: Retaining Multiple Instances, Decorators Versus Manager Functions, Why Decorators? (Revisited), Implementing Private Attributes, Using __dict__ and __slots__, Generalizing for Public Declarations, Too, Decorator tradeoffs, Metaclasses Versus Class Decorators: Round 1, Metaclasses Versus Class Decorators: Round 2, Managing instances instead of classes, Metaclasses Versus Class Decorators: Round 3
coding, Coding Class Decorators, Singleton Classes, Tracing Object Interfaces, Tracing Object Interfaces, Class Blunders II: Retaining Multiple Instances, Decorators Versus Manager Functions
decorators versus manager functions, Decorators Versus Manager Functions
retaining multiple instances, Class Blunders II: Retaining Multiple Instances
singleton classes, Singleton Classes
tracing object interfaces, Tracing Object Interfaces, Tracing Object Interfaces
implementation, Implementation
justification, Why Decorators? (Revisited)
metaclasses, compared to, Metaclasses Versus Class Decorators: Round 1, Metaclasses Versus Class Decorators: Round 2, Managing instances instead of classes, Metaclasses Versus Class Decorators: Round 3
private attributes, implementing, Implementing Private Attributes, Using __dict__ and __slots__
public attributes, implementing, Generalizing for Public Declarations, Too, Decorator tradeoffs
supporting multiple instances, Supporting multiple instances
usage, Usage
class methods, Other Method Call Possibilities, Static and Class Methods, Why the Special Methods?, Using Static and Class Methods, Using Static and Class Methods, Counting Instances with Class Methods, Counting instances per class with class methods
counting instances, Counting Instances with Class Methods, Counting instances per class with class methods
counting per class, Counting instances per class with class methods
justification, Why the Special Methods?
using, Using Static and Class Methods
class properties, Increasing Levels of Magic
class statement, OOP: The Big Picture, The class Statement, Example, General Form, Example, Example, Class Statement Protocol
example, Example, Example
general form, General Form
classes, User-Defined Classes, Function Design Concepts, OOP: The Big Picture, Why Use Classes?, Why Use Classes?, Attribute Inheritance Search, Attribute Inheritance Search, Attribute Inheritance Search, Classes and Instances, Class Method Calls, Coding Class Trees, Coding Class Trees, Coding Class Trees, Coding Class Trees, OOP Is About Code Reuse, OOP Is About Code Reuse, Classes