[issue4764] open('existing_dir') -> IOError instance's attr filename is None

2008-12-29 Thread Benjamin Peterson
Benjamin Peterson added the comment: Fixed in r68014 and r68016. -- nosy: +benjamin.peterson resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue4764] open('existing_dir') -> IOError instance's attr filename is None

2008-12-28 Thread Jan Kaliszewski
New submission from Jan Kaliszewski : Py2.4 and 2.5 (and probably other 2.x releases too): >>> try: f=open('existing_dir') ... except IOError, exc: print exc.filename ... None (expected result: "existing_dir") Py3.0 (and possibly 3.1 too): >>> try: f=open('existing_dir') ... except IOError as ex