Issue 599163: execfile() not show filename when IOErro (original) (raw)

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