[Patches] [ python-Patches-1011822 ] Improve error reporting when
Python opens source code
SourceForge.net
noreply at sourceforge.net
Thu Aug 19 00:24:45 CEST 2004
Patches item #1011822, was opened at 2004-08-18 22:04
Message generated for change (Comment added) made by dyoo
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1011822&group_id=5470
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Danny Yoo (dyoo)
Assigned to: Nobody/Anonymous (nobody)
Summary: Improve error reporting when Python opens source code
Initial Comment:
Python gives the slightly unhelpful error message:
"can't open file %s" when given a bad file name.
Here's a patch to make Python's error reporting a
little more explicit when a user accidently mistypes
the name of a source file. It's just a simple call to
strerror(). The patch is made against the Python-2.3.3
release.
----------------------------------------------------------------------
>Comment By: Danny Yoo (dyoo)
Date: 2004-08-18 22:24
Message:
Logged In: YES
user_id=49843
Modified the patch to more closely match error output from
Python. Now prints "[Errno %d]" as well as the strerror().
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1011822&group_id=5470
More information about the Patches
mailing list