classification
Title: Docs of sys.exit() mention utf8_mode for an unclear reason
Type: Stage: resolved
Components: Documentation Versions: Python 3.8, Python 3.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: docs@python Nosy List: benjamin.peterson, docs@python, izbyshev, miss-islington, vstinner
Priority: normal Keywords: patch

Created on 2018-08-25 17:54 by izbyshev, last changed 2018-08-27 14:55 by vstinner. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 8928 merged izbyshev, 2018-08-25 17:57
PR 8929 merged miss-islington, 2018-08-25 18:23
Messages (6)
msg324086 - (view) Author: Alexey Izbyshev (izbyshev) * (Python triager) Date: 2018-08-25 17:54
Docs for sys.exit() contain the following note added in https://github.com/python/cpython/blame/1871a4a35123b278443b960255cb14314ce196f6/Doc/library/sys.rst#L336

Changed in version 3.7: Added utf8_mode attribute for the new -X utf8 flag.

Does it belong to the adjacent docs for sys.flags (though they mention utf8_mode too)?
msg324087 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) Date: 2018-08-25 18:23
New changeset 44838be9f79870ff3c9e04b7398a1dc3d56d53ed by Benjamin Peterson (Alexey Izbyshev) in branch 'master':
closes bpo-34502: Remove a note about utf8_mode from sys.exit() docs. (GH-8928)
https://github.com/python/cpython/commit/44838be9f79870ff3c9e04b7398a1dc3d56d53ed
msg324089 - (view) Author: miss-islington (miss-islington) Date: 2018-08-25 18:36
New changeset 42a1ca65d00ba59fe63cc65df0ff297a885e61b8 by Miss Islington (bot) in branch '3.7':
closes bpo-34502: Remove a note about utf8_mode from sys.exit() docs. (GH-8928)
https://github.com/python/cpython/commit/42a1ca65d00ba59fe63cc65df0ff297a885e61b8
msg324174 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2018-08-27 13:32
Yes, it's a note for sys.flags. Can you please add it back to sys.flags?

Sorry, I added the note at the wrong place.
msg324182 - (view) Author: Alexey Izbyshev (izbyshev) * (Python triager) Date: 2018-08-27 14:51
Victor, but sys.flags docs *do* contain the note[1]:

Changed in version 3.7: Added dev_mode attribute for the new -X dev flag and utf8_mode attribute for the new -X utf8 flag.

I've tried to express that in msg324086, but obviously failed.

[1] https://docs.python.org/3/library/sys.html#sys.flags
msg324183 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2018-08-27 14:55
Ah ok, in this case, everything is fine :-)
History
Date User Action Args
2018-08-27 14:55:36vstinnersetstatus: open -> closed
resolution: fixed
messages: + msg324183
2018-08-27 14:51:31izbyshevsetmessages: + msg324182
2018-08-27 13:32:44vstinnersetstatus: closed -> open
resolution: fixed -> (no value)
2018-08-27 13:32:34vstinnersetmessages: + msg324174
2018-08-25 18:36:22miss-islingtonsetnosy: + miss-islington
messages: + msg324089
2018-08-25 18:23:18miss-islingtonsetpull_requests: + pull_request8401
2018-08-25 18:23:04benjamin.petersonsetstatus: open -> closed

nosy: + benjamin.peterson
messages: + msg324087

resolution: fixed
stage: patch review -> resolved
2018-08-25 17:57:27izbyshevsetkeywords: + patch
stage: patch review
pull_requests: + pull_request8400
2018-08-25 17:54:28izbyshevcreate