mirror of https://github.com/python/cpython
Closes #18272: use 'builtins' for 3.3 instead of __builtin__
This commit is contained in:
parent
2151fc6416
commit
1d7d580d0e
|
@ -158,7 +158,7 @@ This module provides an interface to the mechanisms used to implement the
|
||||||
cache = {}
|
cache = {}
|
||||||
|
|
||||||
It is legal though generally not very useful to reload built-in or dynamically
|
It is legal though generally not very useful to reload built-in or dynamically
|
||||||
loaded modules, except for :mod:`sys`, :mod:`__main__` and :mod:`__builtin__`.
|
loaded modules, except for :mod:`sys`, :mod:`__main__` and :mod:`builtins`.
|
||||||
In many cases, however, extension modules are not designed to be initialized
|
In many cases, however, extension modules are not designed to be initialized
|
||||||
more than once, and may fail in arbitrary ways when reloaded.
|
more than once, and may fail in arbitrary ways when reloaded.
|
||||||
|
|
||||||
|
|
|
@ -762,7 +762,7 @@ which incur interpreter overhead.
|
||||||
""" Call a function repeatedly until an exception is raised.
|
""" Call a function repeatedly until an exception is raised.
|
||||||
|
|
||||||
Converts a call-until-exception interface to an iterator interface.
|
Converts a call-until-exception interface to an iterator interface.
|
||||||
Like __builtin__.iter(func, sentinel) but uses an exception instead
|
Like builtins.iter(func, sentinel) but uses an exception instead
|
||||||
of a sentinel to end the loop.
|
of a sentinel to end the loop.
|
||||||
|
|
||||||
Examples:
|
Examples:
|
||||||
|
|
Loading…
Reference in New Issue