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