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: example code does not macth the very version(3.9)
Type: enhancement Stage: resolved
Components: Documentation Versions: Python 3.9
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: docs@python Nosy List: docs@python, miss-islington, rhettinger, yangqing
Priority: normal Keywords: patch

Created on 2021-08-21 01:14 by yangqing, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 27867 merged rhettinger, 2021-08-21 01:40
PR 27875 merged miss-islington, 2021-08-21 18:59
PR 27876 merged miss-islington, 2021-08-21 18:59
Messages (4)
msg400007 - (view) Author: 杨青 (yangqing) Date: 2021-08-21 01:14
【url】https://docs.python.org/3/tutorial/errors.html

【chapter】8.2. Exceptions

【origina example code】
>>> '2' + 2
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: Can't convert 'int' object to str implicitly

【what i got in practice】
>>> '2' + 2
Traceback (most recent call last):
  File "<input>", line 1, in <module>
TypeError: can only concatenate str (not "int") to str
msg400041 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2021-08-21 18:59
New changeset 15a64d89a31b7e91f0361c305b7b27d8761db93d by Raymond Hettinger in branch 'main':
bpo-44966: Fix out-of-date traceback message (GH-27867)
https://github.com/python/cpython/commit/15a64d89a31b7e91f0361c305b7b27d8761db93d
msg400046 - (view) Author: miss-islington (miss-islington) Date: 2021-08-22 00:35
New changeset 95a9ba173ecaeec0cb8bf57cfcd916d64fa6f861 by Miss Islington (bot) in branch '3.10':
bpo-44966: Fix out-of-date traceback message (GH-27867)
https://github.com/python/cpython/commit/95a9ba173ecaeec0cb8bf57cfcd916d64fa6f861
msg400047 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2021-08-22 00:37
New changeset 407b3e0bb028c30fbf5efcf58c70c50eaa6712b0 by Miss Islington (bot) in branch '3.9':
bpo-44966: Fix out-of-date traceback message (GH-27867) (GH-27876)
https://github.com/python/cpython/commit/407b3e0bb028c30fbf5efcf58c70c50eaa6712b0
History
Date User Action Args
2022-04-11 14:59:49adminsetgithub: 89129
2021-08-22 00:37:32rhettingersetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2021-08-22 00:37:01rhettingersetmessages: + msg400047
2021-08-22 00:35:43miss-islingtonsetmessages: + msg400046
2021-08-21 18:59:33miss-islingtonsetpull_requests: + pull_request26331
2021-08-21 18:59:27miss-islingtonsetnosy: + miss-islington
pull_requests: + pull_request26330
2021-08-21 18:59:21rhettingersetmessages: + msg400041
2021-08-21 01:40:52rhettingersetkeywords: + patch
nosy: + rhettinger

pull_requests: + pull_request26322
stage: patch review
2021-08-21 01:14:41yangqingcreate