mirror of
https://github.com/python/cpython.git
synced 2025-11-03 03:22:27 +00:00
Remove mention of execfile from the tutorial.
This commit is contained in:
parent
db4e939206
commit
cf48e44130
1 changed files with 6 additions and 6 deletions
|
|
@ -599,12 +599,12 @@ Note that the mangling rules are designed mostly to avoid accidents; it still is
|
||||||
possible to access or modify a variable that is considered private. This can
|
possible to access or modify a variable that is considered private. This can
|
||||||
even be useful in special circumstances, such as in the debugger.
|
even be useful in special circumstances, such as in the debugger.
|
||||||
|
|
||||||
Notice that code passed to ``exec()``, ``eval()`` or ``execfile()`` does not
|
Notice that code passed to ``exec()`` or ``eval()`` does not consider the
|
||||||
consider the classname of the invoking class to be the current class; this is
|
classname of the invoking class to be the current class; this is similar to the
|
||||||
similar to the effect of the ``global`` statement, the effect of which is
|
effect of the ``global`` statement, the effect of which is likewise restricted
|
||||||
likewise restricted to code that is byte-compiled together. The same
|
to code that is byte-compiled together. The same restriction applies to
|
||||||
restriction applies to ``getattr()``, ``setattr()`` and ``delattr()``, as well
|
``getattr()``, ``setattr()`` and ``delattr()``, as well as when referencing
|
||||||
as when referencing ``__dict__`` directly.
|
``__dict__`` directly.
|
||||||
|
|
||||||
|
|
||||||
.. _tut-odds:
|
.. _tut-odds:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue