This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2013年07月29日 16:01 by denkoren, last changed 2022年04月11日 14:57 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| pyerror.py | denkoren, 2013年07月29日 16:01 | Bug demonstration code example. | ||
| Messages (2) | |||
|---|---|---|---|
| msg193878 - (view) | Author: Denis (denkoren) | Date: 2013年07月29日 16:01 | |
On 'connection refused' error urllib creates IOError with wrong arguents:
args ('socket error', error(<os-dependent-number>, 'Connection refused'))
It results to dirty hacks in Python code like
'if e.errno == "socket error": ...'
instead of traditional
'id e.errno == errno.ECONNREFUSED: ...'
|
|||
| msg193883 - (view) | Author: R. David Murray (r.david.murray) * (Python committer) | Date: 2013年07月29日 17:16 | |
This is a duplicate of issue 6471, which we really do need to fix. But there are backward compatibility concerns with fixing it in 2.7, I'm afraid. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:57:48 | admin | set | github: 62787 |
| 2013年07月29日 17:16:38 | r.david.murray | set | status: open -> closed superseder: errno and strerror attributes incorrectly set on socket errors wrapped by urllib nosy: + r.david.murray messages: + msg193883 resolution: duplicate stage: resolved |
| 2013年07月29日 16:01:57 | denkoren | create | |