Learning Python - Mark Lutz [601]
\ (backslash) escape sequences, Other Ways to Code Strings
& (bitwise AND operator), Python Expression Operators
| (bitwise or operator), Python Expression Operators
^ (bitwise XOR operator), Python Expression Operators
: (colon), What Python Adds, Common Coding Gotchas
{ } (curly braces), Python’s Core Data Types, Mapping Operations, Python Expression Operators, Set literals in Python 3.0, Set comprehensions in Python 3.0, Dictionaries, Dictionary views and sets, Statement rule special cases
dictionaries and, Mapping Operations, Dictionaries
set comprehensions and, Set comprehensions in Python 3.0
sets and, Set literals in Python 3.0, Dictionary views and sets
/ and // (division operators), Python Expression Operators, Python Expression Operators
(see also division)
" (double quotes) and strings, Single- and Double-Quoted Strings Are the Same
... (ellipses), pass
= and == (equality operators), Python Expression Operators, Shared References and Equality
#! (hash bang), Unix Executable Scripts (#!)
# (hash character), A First Script, # Comments
>, >=, <, <= (magnitude comparison operators), Python Expression Operators
– (minus operator), Python Expression Operators
* (multiplication operator), Python Expression Operators
( ) (parentheses), Tuples, Parentheses are optional, Statement rule special cases, A Few Special Cases, Common Coding Gotchas, Generator Expressions: Iterators Meet Comprehensions
functions and, Common Coding Gotchas
generator expressions and, Generator Expressions: Iterators Meet Comprehensions
tuples and, Tuples
+ (plus operator), Python Expression Operators, Basic List Operations
"\u..." and "\U..." escapes, Coding Unicode Strings in Python 2.6
% (remainder operator), Python Expression Operators
; (semicolon), End of line is end of statement, Statement rule special cases
>> and << (shift operators), Python Expression Operators
' (single quotes) and strings, Single- and Double-Quoted Strings Are the Same
[ ] (square brackets), Python’s Core Data Types, Comprehensions, Python Expression Operators, Lists, Dictionaries in Action, Statement rule special cases, List Comprehension Basics, List Comprehensions Versus map, Coding your own zip(...) and map(None, ...)
dictionaries and, Dictionaries in Action
list comprehensions and, List Comprehension Basics, List Comprehensions Versus map, Coding your own zip(...) and map(None, ...)
lists and, Comprehensions, Lists
_ (underscore), Minimizing from * Damage: _X and __all__
__add__ method, A Third Example
__all__ variable, Minimizing from * Damage: _X and __all__
__bases__ attribute, Namespace Dictionaries, Namespace Links
__bool__ method, Boolean Tests: __bool__ and __len__
__call__ method, Call Expressions: __call__, Function Interfaces and Callback-Based Code
function interfaces and, Function Interfaces and Callback-Based Code
__class__ attribute, Namespace Dictionaries, Namespace Links
__cmp__ method (Python 2.6), Comparisons: __lt__, __gt__, and Others
__contains__ method, Membership: __contains__, __iter__, and __getitem__
__del__ method, Object Destruction: __del__
__delattr__ method, __getattr__ and __getattribute__
__delete__ method, Read-only descriptors
__dict__ attribute, Files Generate Namespaces
__doc__ attribute, Docstrings: __doc__, Documentation Strings Revisited
__enter__ method, The Context Management Protocol
__eq__ method, Comparisons: __lt__, __gt__, and Others
__exit__ method, The Context Management Protocol
__get__ method, Common Operator Overloading Methods, Descriptor method arguments
__getattr__ method, Attribute Reference: __getattr__ and __setattr__, OOP and Delegation: “Wrapper” Objects, Delegation-Based Classes in 3.0: __getattr__ and built-ins, Inserting Code to Run on Attribute Access, __getattr__ and __getattribute__, Delegation-Based Managers Revisited, Avoiding loops in attribute interception methods, A First Example, Computed Attributes, __getattr__ and __getattribute__ Compared, Intercepting Built-in Operation Attributes, Delegation-Based Managers Revisited
computed