Fred Drake | b4ea9d0 | 2001-10-30 06:22:02 +0000 | [diff] [blame^] | 1 | \chapter{Built-in Functions, Types, and Exceptions \label{builtin}} |
Guido van Rossum | 5fdeeea | 1994-01-02 01:22:07 +0000 | [diff] [blame] | 2 | |
| 3 | 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] | 4 | symbol table. This table is searched last when the interpreter looks |
| 5 | up the meaning of a name, so local and global |
Guido van Rossum | ecde781 | 1995-03-28 13:35:14 +0000 | [diff] [blame] | 6 | user-defined names can override built-in names. Built-in types are |
Fred Drake | ea003fc | 1999-04-05 21:59:15 +0000 | [diff] [blame] | 7 | described together here for easy reference.\footnote{ |
| 8 | Most descriptions sorely lack explanations of the exceptions |
Guido van Rossum | 5fdeeea | 1994-01-02 01:22:07 +0000 | [diff] [blame] | 9 | 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] | 10 | this manual.} |
Guido van Rossum | 5fdeeea | 1994-01-02 01:22:07 +0000 | [diff] [blame] | 11 | \indexii{built-in}{types} |
| 12 | \indexii{built-in}{exceptions} |
| 13 | \indexii{built-in}{functions} |
| 14 | \index{symbol table} |
Guido van Rossum | ecde781 | 1995-03-28 13:35:14 +0000 | [diff] [blame] | 15 | |
| 16 | The tables in this chapter document the priorities of operators by |
| 17 | listing them in order of ascending priority (within a table) and |
| 18 | grouping operators that have the same priority in the same box. |
| 19 | Binary operators of the same priority group from left to right. |
| 20 | (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] | 21 | choice.) See chapter 5 of the \citetitle[../ref/ref.html]{Python |
Fred Drake | 37f1574 | 1999-11-10 16:21:37 +0000 | [diff] [blame] | 22 | Reference Manual} for the complete picture on operator priorities. |