Skip to content
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() not show filename when IOErro #37075

Closed
inyeol mannequin opened this issue Aug 23, 2002 · 3 comments
Closed

execfile() not show filename when IOErro #37075

inyeol mannequin opened this issue Aug 23, 2002 · 3 comments
Labels
stdlib Python modules in the Lib dir

Comments

@inyeol
Copy link
Mannequin

inyeol mannequin commented Aug 23, 2002

BPO 599163
Nosy @gvanrossum

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:

assignee = None
closed_at = <Date 2002-09-03.19:40:07.000>
created_at = <Date 2002-08-23.10:16:18.000>
labels = ['library']
title = 'execfile() not show filename when IOErro'
updated_at = <Date 2002-09-03.19:40:07.000>
user = 'https://bugs.python.org/inyeol'

bugs.python.org fields:

activity = <Date 2002-09-03.19:40:07.000>
actor = 'gvanrossum'
assignee = 'nowonder'
closed = True
closed_date = None
closer = None
components = ['Library (Lib)']
creation = <Date 2002-08-23.10:16:18.000>
creator = 'inyeol'
dependencies = []
files = []
hgrepos = []
issue_num = 599163
keywords = []
message_count = 3.0
messages = ['12115', '12116', '12117']
nosy_count = 3.0
nosy_names = ['gvanrossum', 'nowonder', 'inyeol']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue599163'
versions = ['Python 2.2']

@inyeol
Copy link
Mannequin Author

inyeol mannequin commented Aug 23, 2002

Python 2.2.1 (#1, Apr 10 2002, 18:25:16) 
[GCC 2.95.3 20010315 (release)] on sunos5
>>> try: execfile('non_existent_file')
... except IOError, msg: msg.__dict__

{'errno': 2, 'args': (2, 'No such file or directory'),
'strerror': 'No such file or directory', 'filename':
None}

There should be a filename, not None.

-Inyeol Lee

@inyeol inyeol mannequin closed this as completed Aug 23, 2002
@inyeol inyeol mannequin assigned nowonder Aug 23, 2002
@inyeol inyeol mannequin added the stdlib Python modules in the Lib dir label Aug 23, 2002
@inyeol inyeol mannequin closed this as completed Aug 23, 2002
@inyeol inyeol mannequin assigned nowonder Aug 23, 2002
@inyeol inyeol mannequin added the stdlib Python modules in the Lib dir label Aug 23, 2002
@nowonder
Copy link
Mannequin

nowonder mannequin commented Aug 27, 2002

Logged In: YES
user_id=14463

execfile incorrectly called PyErr_SetFromErrno instead of
PyErr_SetFromErrnoWithFilename.

Resolution is obvious and already committed to cvs.

@gvanrossum
Copy link
Member

Logged In: YES
user_id=6380

Credit where credit is due. :-)

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stdlib Python modules in the Lib dir
Projects
None yet
Development

No branches or pull requests

1 participant