[ python-Bugs-1576174 ] str(WindowsError) wrong
SourceForge.net
noreply at sourceforge.net
Fri Oct 13 20:17:05 CEST 2006
Bugs item #1576174, was opened at 2006-10-12 22:12
Message generated for change (Comment added) made by theller
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1576174&group_id=5470
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: Python 2.5
Status: Open
Resolution: None
Priority: 5
Submitted By: Thomas Heller (theller)
Assigned to: Nobody/Anonymous (nobody)
Summary: str(WindowsError) wrong
Initial Comment:
str(WindowsError(1001, 'a message') in Python 2.5 gives
'[Error 22] a message'.
The attached patch with test fixes this.
----------------------------------------------------------------------
>Comment By: Thomas Heller (theller)
Date: 2006-10-13 20:17
Message:
Logged In: YES
user_id=11105
My bad. I didn't test on Linux.
----------------------------------------------------------------------
Comment By: iga Seilnacht (zseil)
Date: 2006-10-12 23:53
Message:
Logged In: YES
user_id=1326842
The part of the patch that changes EnvironmentError_str
should be removed (EnvironmentError doesn't have a winerror
member, the change causes compilation errors). Otherwise
the patch looks fine.
----------------------------------------------------------------------
Comment By: Thomas Heller (theller)
Date: 2006-10-12 22:13
Message:
Logged In: YES
user_id=11105
See also:
http://mail.python.org/pipermail/python-dev/2006-September/068869.html
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1576174&group_id=5470
More information about the Python-bugs-list
mailing list