mirror of
https://github.com/python/cpython.git
synced 2025-12-01 23:32:16 +00:00
Kill execfile(), use exec() instead
This commit is contained in:
parent
41eaedd361
commit
016880229a
98 changed files with 179 additions and 341 deletions
|
|
@ -24,7 +24,7 @@ import user
|
|||
|
||||
The \module{user} module looks for a file \file{.pythonrc.py} in the user's
|
||||
home directory and if it can be opened, executes it (using
|
||||
\function{execfile()}\bifuncindex{execfile}) in its own (the
|
||||
\function{exec()}\bifuncindex{exec}) in its own (the
|
||||
module \module{user}'s) global namespace. Errors during this phase
|
||||
are not caught; that's up to the program that imports the
|
||||
\module{user} module, if it wishes. The home directory is assumed to
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue