Larry Hastings added the comment: As Serhiy says, which filename to display is wholly context-sensitive to which errno it is. And there's no cheap way to display both. The cheap fix is to call path_error with a nulled-out "path" object; this will display the error without a filename.
Patch doing this attached. By default we can't fix this in 3.3.0. I'll add Georg on the off chance he wants to cherry-pick it. Perhaps for 3.3.1 I can fix this properly, with a switch on the errno. ---------- nosy: +georg.brandl Added file: http://bugs.python.org/file27343/larry.rename_error.1.diff _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue16074> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com