blob: 450447b1dfaa2fde61aef96f64818ab9b4cf3438 [file] [log] [blame]
Guido van Rossum5fdeeea1994-01-02 01:22:07 +00001\chapter{Built-in Types, Exceptions and Functions}
Fred Drake31ecd501998-02-18 15:40:11 +00002\label{builtin}
Guido van Rossum5fdeeea1994-01-02 01:22:07 +00003
4\nodename{Built-in Objects}
5
6Names for built-in exceptions and functions are found in a separate
Guido van Rossum02ee80d1995-04-04 12:29:37 +00007symbol table. This table is searched last when the interpreter looks
8up the meaning of a name, so local and global
Guido van Rossumecde7811995-03-28 13:35:14 +00009user-defined names can override built-in names. Built-in types are
Guido van Rossum02ee80d1995-04-04 12:29:37 +000010described together here for easy reference.%
Guido van Rossumecde7811995-03-28 13:35:14 +000011\footnote{Most descriptions sorely lack explanations of the exceptions
Guido van Rossum5fdeeea1994-01-02 01:22:07 +000012 that may be raised --- this will be fixed in a future version of
Guido van Rossumecde7811995-03-28 13:35:14 +000013 this manual.}
Guido van Rossum5fdeeea1994-01-02 01:22:07 +000014\indexii{built-in}{types}
15\indexii{built-in}{exceptions}
16\indexii{built-in}{functions}
17\index{symbol table}
Guido van Rossumecde7811995-03-28 13:35:14 +000018
19The tables in this chapter document the priorities of operators by
20listing them in order of ascending priority (within a table) and
21grouping operators that have the same priority in the same box.
22Binary operators of the same priority group from left to right.
23(Unary operators group from right to left, but there you have no real
Fred Drakecbe50f41998-01-20 05:12:36 +000024choice.) See Chapter 5 of the \emph{Python Reference Manual} for the
Guido van Rossumecde7811995-03-28 13:35:14 +000025complete picture on operator priorities.