annotate Doc/lib/libobjs.tex @ 21467:4e35fa5d5708 legacy-trunk

Add documentation for the help() built-in; contributed by Ka-Ping Yee. This is part of SF patch #494622.
author Fred Drake <fdrake@acm.org>
date Tue, 18 Dec 2001 16:31:08 +0000
parents a6af009347e1
children 81209c0f08a0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
20766
a6af009347e1 Promote built-in functions to come before built-in types.
Fred Drake <fdrake@acm.org>
parents: 14486
diff changeset
1 \chapter{Built-in Functions, Types, and Exceptions \label{builtin}}
1471
2ec96140a36b Restructured library documentation
Guido van Rossum <guido@python.org>
parents:
diff changeset
2
2ec96140a36b Restructured library documentation
Guido van Rossum <guido@python.org>
parents:
diff changeset
3 Names for built-in exceptions and functions are found in a separate
2630
6c89df576d91 minor things
Guido van Rossum <guido@python.org>
parents: 2609
diff changeset
4 symbol table. This table is searched last when the interpreter looks
6c89df576d91 minor things
Guido van Rossum <guido@python.org>
parents: 2609
diff changeset
5 up the meaning of a name, so local and global
2609
7ef72873e4d6 restructured library manual accordiung to functional group
Guido van Rossum <guido@python.org>
parents: 1471
diff changeset
6 user-defined names can override built-in names. Built-in types are
10520
7ee1e3134147 Fixed latex2html weirdness with footnotes.
Fred Drake <fdrake@acm.org>
parents: 7382
diff changeset
7 described together here for easy reference.\footnote{
7ee1e3134147 Fixed latex2html weirdness with footnotes.
Fred Drake <fdrake@acm.org>
parents: 7382
diff changeset
8 Most descriptions sorely lack explanations of the exceptions
1471
2ec96140a36b Restructured library documentation
Guido van Rossum <guido@python.org>
parents:
diff changeset
9 that may be raised --- this will be fixed in a future version of
2609
7ef72873e4d6 restructured library manual accordiung to functional group
Guido van Rossum <guido@python.org>
parents: 1471
diff changeset
10 this manual.}
1471
2ec96140a36b Restructured library documentation
Guido van Rossum <guido@python.org>
parents:
diff changeset
11 \indexii{built-in}{types}
2ec96140a36b Restructured library documentation
Guido van Rossum <guido@python.org>
parents:
diff changeset
12 \indexii{built-in}{exceptions}
2ec96140a36b Restructured library documentation
Guido van Rossum <guido@python.org>
parents:
diff changeset
13 \indexii{built-in}{functions}
2ec96140a36b Restructured library documentation
Guido van Rossum <guido@python.org>
parents:
diff changeset
14 \index{symbol table}
2609
7ef72873e4d6 restructured library manual accordiung to functional group
Guido van Rossum <guido@python.org>
parents: 1471
diff changeset
15
7ef72873e4d6 restructured library manual accordiung to functional group
Guido van Rossum <guido@python.org>
parents: 1471
diff changeset
16 The tables in this chapter document the priorities of operators by
7ef72873e4d6 restructured library manual accordiung to functional group
Guido van Rossum <guido@python.org>
parents: 1471
diff changeset
17 listing them in order of ascending priority (within a table) and
7ef72873e4d6 restructured library manual accordiung to functional group
Guido van Rossum <guido@python.org>
parents: 1471
diff changeset
18 grouping operators that have the same priority in the same box.
7ef72873e4d6 restructured library manual accordiung to functional group
Guido van Rossum <guido@python.org>
parents: 1471
diff changeset
19 Binary operators of the same priority group from left to right.
7ef72873e4d6 restructured library manual accordiung to functional group
Guido van Rossum <guido@python.org>
parents: 1471
diff changeset
20 (Unary operators group from right to left, but there you have no real
14486
51369a57b0aa Really minor consistency nit.
Fred Drake <fdrake@acm.org>
parents: 11463
diff changeset
21 choice.) See chapter 5 of the \citetitle[../ref/ref.html]{Python
11463
17e12305973e Use \citetitle and \programopt as appropriate.
Fred Drake <fdrake@acm.org>
parents: 10520
diff changeset
22 Reference Manual} for the complete picture on operator priorities.