diff options
| author | Georg Brandl <georg@python.org> | 2007-12-02 09:40:06 +0000 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2007-12-02 09:40:06 +0000 |
| commit | 1a3284ed69d545e4ef59869998cb8c29233a45fa (patch) | |
| tree | 98728a9b7aae6188ee8124160007a9d5c5277f8c /Doc/tutorial/modules.rst | |
| parent | 87f9c53937ce47f55851ac7c71a94e46cf9142bf (diff) | |
| download | cpython-git-1a3284ed69d545e4ef59869998cb8c29233a45fa.tar.gz | |
#1535: rename __builtin__ module to builtins.
Diffstat (limited to 'Doc/tutorial/modules.rst')
| -rw-r--r-- | Doc/tutorial/modules.rst | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/tutorial/modules.rst b/Doc/tutorial/modules.rst index 4d8b48f69b..2a14b35615 100644 --- a/Doc/tutorial/modules.rst +++ b/Doc/tutorial/modules.rst @@ -308,14 +308,14 @@ Without arguments, :func:`dir` lists the names you have defined currently:: Note that it lists all types of names: variables, modules, functions, etc. -.. index:: module: __builtin__ +.. index:: module: builtins :func:`dir` does not list the names of built-in functions and variables. If you want a list of those, they are defined in the standard module -:mod:`__builtin__`:: +:mod:`builtins`:: - >>> import __builtin__ - >>> dir(__builtin__) + >>> import builtins + >>> dir(builtins) ['ArithmeticError', 'AssertionError', 'AttributeError', 'BaseException', 'Buffer Error', 'DeprecationWarning', 'EOFError', 'Ellipsis', 'EnvironmentError', 'Excep |
