blob: 67df72ca3ab1f97cb34b5ac3d9f5b52a1b8d4b8b [file] [log] [blame]
Fred Drakeb4ea9d02001-10-30 06:22:02 +00001\chapter{Built-in Functions, Types, and Exceptions \label{builtin}}
Guido van Rossum5fdeeea1994-01-02 01:22:07 +00002
3Names for built-in exceptions and functions are found in a separate
Guido van Rossum02ee80d1995-04-04 12:29:37 +00004symbol table. This table is searched last when the interpreter looks
5up the meaning of a name, so local and global
Guido van Rossumecde7811995-03-28 13:35:14 +00006user-defined names can override built-in names. Built-in types are
Fred Drakeea003fc1999-04-05 21:59:15 +00007described together here for easy reference.\footnote{
8 Most descriptions sorely lack explanations of the exceptions
Guido van Rossum5fdeeea1994-01-02 01:22:07 +00009 that may be raised --- this will be fixed in a future version of
Guido van Rossumecde7811995-03-28 13:35:14 +000010 this manual.}
Guido van Rossum5fdeeea1994-01-02 01:22:07 +000011\indexii{built-in}{types}
12\indexii{built-in}{exceptions}
13\indexii{built-in}{functions}
14\index{symbol table}
Guido van Rossumecde7811995-03-28 13:35:14 +000015
16The tables in this chapter document the priorities of operators by
17listing them in order of ascending priority (within a table) and
18grouping operators that have the same priority in the same box.
19Binary 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 Drake1172a852000-09-09 03:31:17 +000021choice.) See chapter 5 of the \citetitle[../ref/ref.html]{Python
Fred Drake37f15741999-11-10 16:21:37 +000022Reference Manual} for the complete picture on operator priorities.