mirror of
https://github.com/python/cpython.git
synced 2025-07-23 19:25:40 +00:00
Clarify that abs() is not a namespace.
This commit is contained in:
parent
62e4231a27
commit
17dafdc249
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ Let's begin with some definitions.
|
||||||
A *namespace* is a mapping from names to objects. Most namespaces are currently
|
A *namespace* is a mapping from names to objects. Most namespaces are currently
|
||||||
implemented as Python dictionaries, but that's normally not noticeable in any
|
implemented as Python dictionaries, but that's normally not noticeable in any
|
||||||
way (except for performance), and it may change in the future. Examples of
|
way (except for performance), and it may change in the future. Examples of
|
||||||
namespaces are: the set of built-in names (functions such as :func:`abs`, and
|
namespaces are: the set of built-in names (containing functions such as :func:`abs`, and
|
||||||
built-in exception names); the global names in a module; and the local names in
|
built-in exception names); the global names in a module; and the local names in
|
||||||
a function invocation. In a sense the set of attributes of an object also form
|
a function invocation. In a sense the set of attributes of an object also form
|
||||||
a namespace. The important thing to know about namespaces is that there is
|
a namespace. The important thing to know about namespaces is that there is
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue