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.

classification
Title: Backport missing errnos to 2.7
Type: enhancement Stage: resolved
Components: IO, Library (Lib), macOS Versions: Python 2.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: ronaldoussoren Nosy List: benjamin.peterson, eric.araujo, hynek, jcea, loewis, ned.deily, pitrou, ronaldoussoren
Priority: normal Keywords:

Created on 2012-04-27 14:13 by hynek, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (7)
msg159458 - (view) Author: Hynek Schlawack (hynek) * (Python committer) Date: 2012-04-27 14:13
In order to fix issue14662, we need to back port at least ENOTSUP to 2.7 (presuming we don’t want to check for magic numbers).

The question is, whether we should back port all/most of them when we’re at it? There doesn’t seem to be much harm to it.
msg159464 - (view) Author: Jesús Cea Avión (jcea) * (Python committer) Date: 2012-04-27 15:08
Benjamin should talk about this, but I am +1 to backport the missing DEFINEs. In fact, hardwired values are actually a bug, as reported in the linked issue.
msg159472 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2012-04-27 15:43
That's like introducing a new API, and therefore it should be limited to feature releases.
msg159474 - (view) Author: Hynek Schlawack (hynek) * (Python committer) Date: 2012-04-27 15:46
So what does that mean for issue14662? Backport only ENOTSUP, check against “45” or “won't fix”?
msg159476 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2012-04-27 15:51
> So what does that mean for issue14662? Backport only ENOTSUP, check
> against “45” or “won't fix”?

Then, backporting only ENOTSUP would be a reasonable solution.
Or perhaps backport it as a private attribute (_ENOTSUP).
msg159477 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) Date: 2012-04-27 15:57
I think it's okay to just backport ENOTSUP.
msg160849 - (view) Author: Hynek Schlawack (hynek) * (Python committer) Date: 2012-05-16 12:39
This one has been fixed together with #14662 in e12efebc3ba6.

Thank you everyone for your input!
History
Date User Action Args
2022-04-11 14:57:29adminsetgithub: 58887
2012-05-16 12:39:47hyneksetstatus: open -> closed
resolution: fixed
messages: + msg160849

stage: resolved
2012-04-27 15:57:28benjamin.petersonsetmessages: + msg159477
2012-04-27 15:51:45pitrousetmessages: + msg159476
2012-04-27 15:46:04hyneksetmessages: + msg159474
2012-04-27 15:43:49pitrousetnosy: + loewis, pitrou
messages: + msg159472
2012-04-27 15:08:20jceasetnosy: + jcea
messages: + msg159464
2012-04-27 14:13:01hynekcreate