V
- validating, Example: Attribute Validations–Using __getattribute__ to Validate, Should operator methods be validated?, Example: Validating Function Arguments–Other Applications: Type Testing (If You Insist!)
-
- attributes, Example: Attribute Validations–Using __getattribute__ to Validate
- function arguments, Example: Validating Function Arguments–Other Applications: Type Testing (If You Insist!)
- operator overloading methods, Should operator methods be validated?
- value equality operators, Python Expression Operators
- van Rossum, Guido, It’s Free
- varargs, Argument Matching Basics, Applying functions generically–Applying functions generically
- variables, Running Code Interactively, The Grander Module Story: Attributes, Modules and namespaces, Sequence Operations, Sequence Operations, Variables and Basic Expressions–Variables and Basic Expressions, Variables, Objects, and References–Types Live with Objects, Not Variables, Variables, Objects, and References, Variables, Objects, and References, Variables, Objects, and References, Variables, Objects, and References, Variables, Objects, and References, Types Live with Objects, Not Variables, Shared References–Shared References and Equality, Variable Name Rules–Names have no type, but objects do, Local Variables, Python Scope Basics, Other Python scopes: Preview, Other Python scopes: Preview, Program Design: Minimize Global Variables, Other Ways to Access Globals, Scopes and Comprehension Variables, Enclosing scopes and loop variables: Factory functions, Module Design Concepts, from * Can Obscure the Meaning of Variables, Scopes and try except Variables
-
- about, Variables, Objects, and References
- assigning values to, Running Code Interactively, Sequence Operations, Variables, Objects, and References, Types Live with Objects, Not Variables
- attributes and, The Grander Module Story: Attributes
- comprehension, Other Python scopes: Preview, Scopes and Comprehension Variables
- creating, Sequence Operations, Variables, Objects, and References
- dynamic typing and, Variables, Objects, and References–Types Live with Objects, Not Variables
- exception, Other Python scopes: Preview
- expressions and, Variables, Objects, and References
- from * statement and, from * Can Obscure the Meaning of Variables
- function-related gotchas, Enclosing scopes and loop variables: Factory functions
- global, Program Design: Minimize Global Variables, Other Ways to Access Globals, Module Design Concepts
- local, Local Variables
- name collisions and, Modules and namespaces
- name rules for, Variable Name Rules–Names have no type, but objects do
- numbers in, Variables and Basic Expressions–Variables and Basic Expressions
- objects and, Variables, Objects, and References
- scope of, Python Scope Basics
- shared references and, Shared References–Shared References and Equality
- try/except statement and, Scopes and try except Variables
- version considerations for Python, The Python 2.X and 3.X Lines–Which Python Should I Use?, Python Expression Operators, Division: Classic, Floor, and True–Supporting either Python, Other Built-in Numeric Tools, Set basics in Python 2.6 and earlier–Set comprehensions in Python 3.X and 2.7, Unicode: The Short Story, Escape Sequences Represent Special Characters, The Original string Module’s Functions (Gone in 3.X)–The Original string Module’s Functions (Gone in 3.X), Comparison to the % Formatting Expression, More on sorting lists, Dictionary Changes in Python 3.X and 2.7–The has_key method is dead in 3.X: Long live in!, Text and Binary Files: The Short Story, Python 2.X and 3.X mixed-type comparisons and sorts, Python 2.X and 3.X dictionary comparisons, Python’s Statements, The Python 3.X print Function–The 2.X print statement in action, map equivalence in Python 2.X, The Iteration Protocol: File Iterators, New Iterables in Python 3.X–Dictionary View Iterables, PyDoc: HTML Reports–Python 3.2 and earlier: GUI client, Redefining built-in names: For better or worse, Program Design: Minimize Global Variables, The nonlocal Statement in 3.X–Boundary cases, State with Function Attributes: 3.X and 2.X–State with mutables: Obscure ghost of Pythons past?, Python 3.X Keyword-Only Arguments–Why keyword-only arguments?, Emulating the Python 3.X print Function–Using Keyword-Only Arguments, Iteration protocol integration, Changes in Python 3.X, The relative imports solution in 3.X, Using Code Two Ways, Abstract superclasses in Python 3.X and 2.6+: Preview, Iterable Objects: __iter__ and __next__, Boolean Methods in Python 2.X, OOP and Delegation: “Wrapper” Proxy Objects, Unbound Methods Are Functions in 3.X, Listing attributes per object in class trees, The “New Style” Class Model, Static Methods in 2.X and 3.X–Static Methods in 2.X and 3.X, Use differs in Python 2.X: Verbose calls, The raise Statement, Multiple Context Managers in 3.1, 2.7, and Later–Multiple Context Managers in 3.1, 2.7, and Later, Exception Objects, Unicode and Byte Strings–String Changes in 3.X, How Python Stores Strings in Memory, Text and Binary Modes in 2.X and 3.X, Unicode Files in 2.X, Declaration in 3.X–Metaclass Dispatch in Both 3.X and 2.X, Python Changes and This Book–Earlier and Later Python Changes
-
- about, The Python 2.X and 3.X Lines–Which Python Should I Use?
- abstract superclasses, Abstract superclasses in Python 3.X and 2.6+: Preview
- Booleans, Boolean Methods in Python 2.X
- builtins module, Other Built-in Numeric Tools, Redefining built-in names: For better or worse
- classes, The “New Style” Class Model
- comparisons and sorts, More on sorting lists, Python 2.X and 3.X mixed-type comparisons and sorts
- context managers, Multiple Context Managers in 3.1, 2.7, and Later–Multiple Context Managers in 3.1, 2.7, and Later
- dictionaries, Dictionary Changes in Python 3.X and 2.7–The has_key method is dead in 3.X: Long live in!, Python 2.X and 3.X dictionary comparisons
- division operations, Division: Classic, Floor, and True–Supporting either Python
- exception classes, Exception Objects
- expression operators, Python Expression Operators
- files, Text and Binary Files: The Short Story, Text and Binary Modes in 2.X and 3.X
- function attributes, State with Function Attributes: 3.X and 2.X–State with mutables: Obscure ghost of Pythons past?
- iteration, The Iteration Protocol: File Iterators, New Iterables in Python 3.X–Dictionary View Iterables, Iterable Objects: __iter__ and __next__
- keyword arguments, Python 3.X Keyword-Only Arguments–Why keyword-only arguments?
- map built-in function, map equivalence in Python 2.X
- metaclasses, Declaration in 3.X–Metaclass Dispatch in Both 3.X and 2.X
- next method, Iteration protocol integration
- nonlocal statement, The nonlocal Statement in 3.X–Boundary cases
- package imports, Changes in Python 3.X
- printing, The Python 3.X print Function–The 2.X print statement in action, Emulating the Python 3.X print Function–Using Keyword-Only Arguments, Using Code Two Ways
- PyDoc system, PyDoc: HTML Reports–Python 3.2 and earlier: GUI client
- raise statement, The raise Statement
- relative imports model, The relative imports solution in 3.X
- sets, Set basics in Python 2.6 and earlier–Set comprehensions in Python 3.X and 2.7
- statements, Python’s Statements
- static methods, Static Methods in 2.X and 3.X–Static Methods in 2.X and 3.X
- storing strings in memory, How Python Stores Strings in Memory
- strings, Unicode: The Short Story, Escape Sequences Represent Special Characters, The Original string Module’s Functions (Gone in 3.X)–The Original string Module’s Functions (Gone in 3.X), Comparison to the % Formatting Expression, Listing attributes per object in class trees, Unicode and Byte Strings–String Changes in 3.X, Unicode Files in 2.X
- summarized, Python Changes and This Book–Earlier and Later Python Changes
- super built-in function, Use differs in Python 2.X: Verbose calls
- threading, Program Design: Minimize Global Variables
- unbound methods, Unbound Methods Are Functions in 3.X
- wrapper classes, OOP and Delegation: “Wrapper” Proxy Objects
- view objects, Dictionary views in 3.X (and 2.7 via new methods)–Dictionary views and sets, Dictionary View Iterables–Dictionary View Iterables
- virtual attributes, Handling slots and other “virtual” attributes generically–Handling slots and other “virtual” attributes generically
- virtual concatenation, Namespace Packages in Action