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
exec(open(filename)) doesn't work #47442
Comments
In 2.5, exec(open(filename)), where filename refers to a file with |
There's 'execfile' in Lib/idlelib/PyShell.py...I'm looking for others. There is also a class of functions 'exec*' (and a related class, That said, I agree that exec should handle streams, and if you could |
I'm actually quite new to Python. My current interpreter of choice is Meanwhile, I'm on a wintel machine, making perusing the Python source By the way, I was told that execfile is gone from python 3. --ms |
On Tue, Jun 24, 2008 at 3:05 PM, Mike Speciner <report@bugs.python.org> wrote:
It certainly isn't in the branch I just checked out. |
(isn't gone, that is) |
Well, I think I found exec in bltinmodule.c, |
execfile is in Lib/idlelib/PyShell.py, and is an instance function, so |
bpo-1762972 supercedes this. |
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: