Mercurial > cpython-lru_cache-weakref
diff Doc/tutorial/classes.rst @ 62983:30f695ec949b
Remove mention of execfile from the tutorial.
| author | Mark Dickinson <dickinsm@gmail.com> |
|---|---|
| date | Mon, 12 Jul 2010 09:37:40 +0000 |
| parents | 8df619259056 |
| children | 25216a7e234d |
line wrap: on
line diff
--- a/Doc/tutorial/classes.rst Mon Jul 12 09:06:13 2010 +0000 +++ b/Doc/tutorial/classes.rst Mon Jul 12 09:37:40 2010 +0000 @@ -599,12 +599,12 @@ possible to access or modify a variable that is considered private. This can even be useful in special circumstances, such as in the debugger. -Notice that code passed to ``exec()``, ``eval()`` or ``execfile()`` does not -consider the classname of the invoking class to be the current class; this is -similar to the effect of the ``global`` statement, the effect of which is -likewise restricted to code that is byte-compiled together. The same -restriction applies to ``getattr()``, ``setattr()`` and ``delattr()``, as well -as when referencing ``__dict__`` directly. +Notice that code passed to ``exec()`` or ``eval()`` does not consider the +classname of the invoking class to be the current class; this is similar to the +effect of the ``global`` statement, the effect of which is likewise restricted +to code that is byte-compiled together. The same restriction applies to +``getattr()``, ``setattr()`` and ``delattr()``, as well as when referencing +``__dict__`` directly. .. _tut-odds:
