Table B.2 represents the operators and (built-in and factory) functions that can be used with most standard Python objects as well as user-defined objects in which you have implemented their corresponding special methods.
Table B.3 represents the operators and (built-in and factory) functions that apply to Python’s numeric objects.
Table B.4 contains the set of operators, (built-in and factory) functions, and built-in methods that can be used with sequence types.
Table B.5 lists the formatting symbols that can be used with the string format operator ( %
).
When using the string format operator (see Table B.5), you may enhance or fine-tune the object display with the directives shown in Table B.6.
The descriptions for the string built-in methods listed above are given in Table B.7.
In Table B.8, we present full descriptions and usage syntax for the list built-in methods given above.
In Table B.9, we list the full description and usage syntax for the dictionary built-in methods listed below.
Table B.10 outlines the various operators, (built-in and factory) functions, and built-in methods that apply to both set types (set
[mutable] and frozenset
[immutable]).
Table B.11 lists the built-in methods and data attributes of file objects.
Table B.13 represents the set of special methods that can be implemented to allow user-defined objects to take on behaviors and functionality of Python standard types.
Table B.14 represents the complete set of Python operators and to which standard types they apply. The operators are sorted from highest-to-lowest precedence, with those sharing the same shaded group having the same priority.