Terry J. Reedy <tjre...@udel.edu> added the comment: The message is definitely an str (unicode) string. WinXP,3.1.2,
import os try: os.rmdir('nonexist') except Exception as e: print(repr(e.args[1]), '\n', repr(e.strerror), '\n', e.filename) os.rmdir('nonexist') # prints 'The system cannot find the file specified' 'The system cannot find the file specified' nonexist ... WindowsError: [Error 2] The system cannot find the file specified: 'nonexist' ---------- resolution: -> out of date status: open -> closed _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue1754> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com