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 2014年12月09日 07:45 by bkarge, last changed 2022年04月11日 14:58 by admin. This issue is now closed.
| Messages (8) | |||
|---|---|---|---|
| msg232348 - (view) | Author: Björn Karge (bkarge) | Date: 2014年12月09日 07:45 | |
expat.errors should expose the enum values and NOT the associated message strings, so they can be tested against ExpatError.code |
|||
| msg232383 - (view) | Author: R. David Murray (r.david.murray) * (Python committer) | Date: 2014年12月09日 15:24 | |
The API is what it is. In the Python3 docs this is documented as a backward compatibility issue, and the workaround using the new errors.codes is provided. For 2.7 we are stuck with what we have, since we don't add new features to 2.7. |
|||
| msg232414 - (view) | Author: Björn Karge (bkarge) | Date: 2014年12月10日 06:16 | |
I strongly disagree. The constants are just useless as they are (so this bug can hardly be considered a feature). The behaviour is not matching the 2.7 docs, so fixing it certainly won't be adding a new feature, and the python 3 behaviour can easily be preserved even if these constants are numbers. |
|||
| msg232426 - (view) | Author: R. David Murray (r.david.murray) * (Python committer) | Date: 2014年12月10日 14:27 | |
For backward compatibility reasons this *can not be changed*. We are stuck with it, even though we agree it is broken. Please do not reopen the issue. |
|||
| msg232427 - (view) | Author: R. David Murray (r.david.murray) * (Python committer) | Date: 2014年12月10日 14:36 | |
Actually, I'm going to reopen it as a doc issue. This should be explained in the 2.7 docs. |
|||
| msg295227 - (view) | Author: Martin Panter (martin.panter) * (Python committer) | Date: 2017年06月06日 01:45 | |
Also, even in the Py 3 docs, the ErrorCode parser attribute is said to be numeric, but there is a suggestion to compare it with "constants" defined in the "errors" (module) object. I guess it should be clarified that you can’t compare it directly; perhaps using ErrorString or Py 3’s "errors.codes" is more appropriate? |
|||
| msg352153 - (view) | Author: Tahia K (ta1hia) * | Date: 2019年09月12日 13:07 | |
Hi guys, Is this issue still free to pick up? |
|||
| msg370457 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) | Date: 2020年05月31日 13:50 | |
Python 2.7 is no longer supported. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:58:10 | admin | set | github: 67208 |
| 2020年05月31日 13:50:01 | serhiy.storchaka | set | status: open -> closed nosy: + serhiy.storchaka messages: + msg370457 resolution: wont fix -> out of date stage: needs patch -> resolved |
| 2019年09月12日 13:07:29 | ta1hia | set | nosy:
+ ta1hia messages: + msg352153 |
| 2017年06月06日 01:45:57 | martin.panter | set | nosy:
+ martin.panter messages: + msg295227 |
| 2014年12月10日 14:46:57 | berker.peksag | set | keywords:
+ easy stage: resolved -> needs patch |
| 2014年12月10日 14:36:44 | r.david.murray | set | status: closed -> open nosy: + docs@python messages: + msg232427 assignee: docs@python components: + Documentation, - Library (Lib) |
| 2014年12月10日 14:27:48 | r.david.murray | set | status: open -> closed messages: + msg232426 |
| 2014年12月10日 06:16:23 | bkarge | set | status: closed -> open messages: + msg232414 |
| 2014年12月09日 15:24:49 | r.david.murray | set | status: open -> closed nosy: + r.david.murray messages: + msg232383 resolution: wont fix stage: resolved |
| 2014年12月09日 07:45:27 | bkarge | create | |