New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
execfile() removed from Python3 #49774
Comments
In "What’s New In Python 3.0" document, I can read "Removed
We need a short function which opens the Python file with the right Attached patch proposes a function open_script() to open a Python |
-1. There is a much simpler solution to the problem: use exec(open(fn, |
martin> There is a much simpler solution to the problem: Ok... but there is the newline issue: (self quote) "exec() doesn't support And open_python() can be used for other usages than execfile() ;-) Note: tokenize.open_python() is maybe not the best module and/or function |
So that issue should get fixed, then.
I remain opposed to the entire concept. |
Ok, I will work in the other other issue. If bpo-4628 is fixed, this |
It doesn't seem helpful to leave this issue open, particularly since the |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: