2003-01-01 16:37:14 -04:00
|
|
|
\chapter{Built-In Objects \label{builtin}}
|
1994-01-01 21:22:07 -04:00
|
|
|
|
2003-01-01 16:37:14 -04:00
|
|
|
Names for built-in exceptions and functions and a number of constants are
|
|
|
|
found in a separate
|
1995-04-04 09:29:37 -03:00
|
|
|
symbol table. This table is searched last when the interpreter looks
|
|
|
|
up the meaning of a name, so local and global
|
1995-03-28 09:35:14 -04:00
|
|
|
user-defined names can override built-in names. Built-in types are
|
1999-04-05 18:59:15 -03:00
|
|
|
described together here for easy reference.\footnote{
|
|
|
|
Most descriptions sorely lack explanations of the exceptions
|
1994-01-01 21:22:07 -04:00
|
|
|
that may be raised --- this will be fixed in a future version of
|
1995-03-28 09:35:14 -04:00
|
|
|
this manual.}
|
1994-01-01 21:22:07 -04:00
|
|
|
\indexii{built-in}{types}
|
|
|
|
\indexii{built-in}{exceptions}
|
|
|
|
\indexii{built-in}{functions}
|
2003-01-01 16:37:14 -04:00
|
|
|
\indexii{built-in}{constants}
|
1994-01-01 21:22:07 -04:00
|
|
|
\index{symbol table}
|
1995-03-28 09:35:14 -04:00
|
|
|
|
|
|
|
The tables in this chapter document the priorities of operators by
|
|
|
|
listing them in order of ascending priority (within a table) and
|
|
|
|
grouping operators that have the same priority in the same box.
|
|
|
|
Binary operators of the same priority group from left to right.
|
|
|
|
(Unary operators group from right to left, but there you have no real
|
2000-09-09 00:31:17 -03:00
|
|
|
choice.) See chapter 5 of the \citetitle[../ref/ref.html]{Python
|
1999-11-10 12:21:37 -04:00
|
|
|
Reference Manual} for the complete picture on operator priorities.
|