[Python-bugs-list] [ python-Bugs-599163 ] execfile() not show filename when IOErro

noreply@sourceforge.net noreply@sourceforge.net
Fri, 23 Aug 2002 03:16:18 -0700


Bugs item #599163, was opened at 2002-08-23 10:16
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=599163&group_id=5470

Category: Python Library
Group: Python 2.2.1
Status: Open
Resolution: None
Priority: 5
Submitted By: Inyeol Lee (inyeol)
Assigned to: Nobody/Anonymous (nobody)
Summary: execfile() not show filename when IOErro

Initial Comment:
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 

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=599163&group_id=5470