2007-08-15 11:28:22 -03:00
|
|
|
|
|
|
|
.. _builtin:
|
|
|
|
|
|
|
|
****************
|
|
|
|
Built-in Objects
|
|
|
|
****************
|
|
|
|
|
|
|
|
.. index::
|
|
|
|
pair: built-in; types
|
|
|
|
pair: built-in; exceptions
|
|
|
|
pair: built-in; functions
|
|
|
|
pair: built-in; constants
|
|
|
|
single: symbol table
|
|
|
|
|
|
|
|
Names for built-in exceptions and functions and a number of constants are found
|
|
|
|
in a separate symbol table. This table is searched last when the interpreter
|
|
|
|
looks up the meaning of a name, so local and global user-defined names can
|
|
|
|
override built-in names. Built-in types are described together here for easy
|
Merged revisions 59512-59540 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r59513 | raymond.hettinger | 2007-12-15 01:07:25 +0100 (Sat, 15 Dec 2007) | 6 lines
Optimize PyList_AsTuple(). Improve cache performance by doing the
pointer copy and object increment in one pass. For small lists,
save the overhead of the call to memcpy() -- this comes up in
calls like f(*listcomp).
........
r59519 | christian.heimes | 2007-12-15 06:38:35 +0100 (Sat, 15 Dec 2007) | 2 lines
Fixed #1624: Remove output comparison for test_pep277
I had to modify Brett's patch slightly.
........
r59520 | georg.brandl | 2007-12-15 10:34:59 +0100 (Sat, 15 Dec 2007) | 2 lines
Add note about future import needed for with statement.
........
r59522 | georg.brandl | 2007-12-15 10:36:37 +0100 (Sat, 15 Dec 2007) | 2 lines
Argh, wrong version.
........
r59524 | georg.brandl | 2007-12-16 12:06:09 +0100 (Sun, 16 Dec 2007) | 2 lines
Dummy commit to investigate #1617.
........
r59525 | georg.brandl | 2007-12-16 12:21:48 +0100 (Sun, 16 Dec 2007) | 2 lines
Revert dummy commit now that the build slave is building.
........
r59527 | georg.brandl | 2007-12-16 16:47:46 +0100 (Sun, 16 Dec 2007) | 2 lines
Remove orphaned footnote reference.
........
r59528 | georg.brandl | 2007-12-16 16:53:49 +0100 (Sun, 16 Dec 2007) | 2 lines
Remove gratuitous unicode character.
........
r59529 | georg.brandl | 2007-12-16 16:59:19 +0100 (Sun, 16 Dec 2007) | 2 lines
Remove another unnecessary Unicode character.
........
r59530 | georg.brandl | 2007-12-16 17:00:36 +0100 (Sun, 16 Dec 2007) | 2 lines
Remove curious space-like characters.
........
r59532 | georg.brandl | 2007-12-16 20:36:51 +0100 (Sun, 16 Dec 2007) | 2 lines
Adapt conf.py to new option names.
........
r59533 | christian.heimes | 2007-12-16 22:39:43 +0100 (Sun, 16 Dec 2007) | 1 line
Fixed #1638: %zd configure test fails on Linux
........
r59536 | georg.brandl | 2007-12-17 00:11:16 +0100 (Mon, 17 Dec 2007) | 2 lines
Simplify.
........
r59537 | georg.brandl | 2007-12-17 00:13:29 +0100 (Mon, 17 Dec 2007) | 2 lines
Use PEP 8.
........
r59539 | georg.brandl | 2007-12-17 00:15:07 +0100 (Mon, 17 Dec 2007) | 2 lines
Don't use quotes for non-string code.
........
r59540 | facundo.batista | 2007-12-17 15:18:42 +0100 (Mon, 17 Dec 2007) | 4 lines
Removed the private _rounding_decision: it was not needed, and the code
is now simpler. Thanks Mark Dickinson.
........
2007-12-17 16:04:13 -04:00
|
|
|
reference.
|
2007-08-15 11:28:22 -03: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 choice.) See :ref:`operator-summary` for the complete picture on
|
|
|
|
operator priorities.
|
|
|
|
|