[Patches] [ python-Patches-1011822 ] Improve error reporting when
Python opens source code
SourceForge.net
noreply at sourceforge.net
Thu Aug 19 13:08:31 CEST 2004
Patches item #1011822, was opened at 2004-08-19 00:04
Message generated for change (Comment added) made by loewis
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1011822&group_id=5470
Category: None
Group: None
>Status: Closed
>Resolution: Accepted
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: Martin v. Löwis (loewis)
Date: 2004-08-19 13:08
Message:
Logged In: YES
user_id=21627
Thanks for the patch, applied as main.c 1.83. Some systems
don't have strerror, which I also took into account.
----------------------------------------------------------------------
Comment By: Danny Yoo (dyoo)
Date: 2004-08-19 00: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