Guido van Rossum | 5fdeeea | 1994-01-02 01:22:07 +0000 | [diff] [blame] | 1 | \chapter{Built-in Types, Exceptions and Functions} |
Guido van Rossum | 5fdeeea | 1994-01-02 01:22:07 +0000 | [diff] [blame] | 2 | \nodename{Built-in Objects} |
Fred Drake | ea8006a | 1998-02-19 14:00:22 +0000 | [diff] [blame] | 3 | \label{builtin} |
Guido van Rossum | 5fdeeea | 1994-01-02 01:22:07 +0000 | [diff] [blame] | 4 | |
| 5 | Names for built-in exceptions and functions are found in a separate |
Guido van Rossum | 02ee80d | 1995-04-04 12:29:37 +0000 | [diff] [blame] | 6 | symbol table. This table is searched last when the interpreter looks |
| 7 | up the meaning of a name, so local and global |
Guido van Rossum | ecde781 | 1995-03-28 13:35:14 +0000 | [diff] [blame] | 8 | user-defined names can override built-in names. Built-in types are |
Fred Drake | ea003fc | 1999-04-05 21:59:15 +0000 | [diff] [blame] | 9 | described together here for easy reference.\footnote{ |
| 10 | Most descriptions sorely lack explanations of the exceptions |
Guido van Rossum | 5fdeeea | 1994-01-02 01:22:07 +0000 | [diff] [blame] | 11 | that may be raised --- this will be fixed in a future version of |
Guido van Rossum | ecde781 | 1995-03-28 13:35:14 +0000 | [diff] [blame] | 12 | this manual.} |
Guido van Rossum | 5fdeeea | 1994-01-02 01:22:07 +0000 | [diff] [blame] | 13 | \indexii{built-in}{types} |
| 14 | \indexii{built-in}{exceptions} |
| 15 | \indexii{built-in}{functions} |
| 16 | \index{symbol table} |
Guido van Rossum | ecde781 | 1995-03-28 13:35:14 +0000 | [diff] [blame] | 17 | |
| 18 | The tables in this chapter document the priorities of operators by |
| 19 | listing them in order of ascending priority (within a table) and |
| 20 | grouping operators that have the same priority in the same box. |
| 21 | Binary operators of the same priority group from left to right. |
| 22 | (Unary operators group from right to left, but there you have no real |
Fred Drake | 1172a85 | 2000-09-09 03:31:17 +0000 | [diff] [blame] | 23 | choice.) See chapter 5 of the \citetitle[../ref/ref.html]{Python |
Fred Drake | 37f1574 | 1999-11-10 16:21:37 +0000 | [diff] [blame] | 24 | Reference Manual} for the complete picture on operator priorities. |