[ python-Bugs-1576174 ] str(WindowsError) wrong

SourceForge.net noreply at sourceforge.net
Sat Oct 21 11:53:07 CEST 2006


Bugs item #1576174, was opened at 2006-10-12 22:12
Message generated for change (Comment added) made by loewis
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: Accepted
Priority: 5
Submitted By: Thomas Heller (theller)
>Assigned to: Thomas Heller (theller)
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: Martin v. Löwis (loewis)
Date: 2006-10-21 11:53

Message:
Logged In: YES 
user_id=21627

The patch is fine, please apply (along with a NEWS entry,
for both 2.5 and the trunk).

----------------------------------------------------------------------

Comment By: Thomas Heller (theller)
Date: 2006-10-13 20:17

Message:
Logged In: YES 
user_id=11105

Uploaded a new patch which I actually tested under Linux also.

----------------------------------------------------------------------

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