1. 内建对象 Built-In Objects

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 reference.1.1

内建的异常、函数和一组常量的名字都能在一个独立的符号表中找到。当解释器在查 找一个名字的意义的时候,这个表格是被最后查找的,所以局部的和全局的用户定义 的名字可以覆盖内建的名字。 所有的内建类型都统一在本章描述,作为一个简单的参考。1.2

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 chapter 5 of the Python Reference Manual for the complete picture on operator priorities.

在本章的表格中,对于操作符的优先级,以它们在表格中列出的顺序,升序排列, (在同一个表格中) 并且把相同优先级的操作符组织在同一格当中。同一优先级的二元操作符已从左到 右的顺序结合。(一元操作符从右到左结合,但事实上,你并没有选择的余地。) 对于操作符优先级的一个整体印象参见 Python参考手册第5章。



注脚

... reference.1.1
Most descriptions sorely lack explanations of the exceptions that may be raised -- this will be fixed in a future version of this manual.
... 所有的内建类型都统一在本章描述,作为一个简单的参考。1.2
这儿的绝大多数描述都非常缺乏对它们所能抛出的异常的解释 -- 这将会在本 手册的未来版本得到修正。