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: Document references object x but doesn't show it in the example
Type: Stage: resolved
Components: Documentation Versions: Python 3.11, Python 3.10, Python 3.9
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: docs@python Nosy List: Patrick Rice, ZackerySpytz, docs@python, iritkatriel, miss-islington, veky, xtreak
Priority: normal Keywords: patch

Created on 2019-01-18 00:31 by Patrick Rice, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 22411 merged ZackerySpytz, 2020-09-25 17:57
PR 26218 merged miss-islington, 2021-05-18 21:56
PR 26219 merged miss-islington, 2021-05-18 21:56
Messages (5)
msg333917 - (view) Author: Patrick Rice (Patrick Rice) Date: 2019-01-18 00:31
https://docs.python.org/3.5/tutorial/inputoutput.html

If you have an object x, you can view its JSON string representation with a simple line of code:

>>>
>>> import json
>>> json.dumps([1, 'simple', 'list'])
'[1, "simple", "list"]'
msg333931 - (view) Author: Karthikeyan Singaravelan (xtreak) * (Python committer) Date: 2019-01-18 02:18
Thanks for the report. I think x here is implied as [1, 'simple', 'list']. Do you want to make it explicit with x = [1, 'simple', 'list'] in the code block?

Removing 3.5 since it's in security fixes only mode.
msg377526 - (view) Author: Vedran Čačić (veky) * Date: 2020-09-26 13:01
I think it would be simpler to just remove the empty name `x`.

"If you have an object, you can ...".
msg393937 - (view) Author: Irit Katriel (iritkatriel) * (Python committer) Date: 2021-05-19 08:59
New changeset 5f2afff1ddbf11c8dfa9ddc98fb7a2f2d86eabde by Miss Islington (bot) in branch '3.10':
bpo-35765: Clarify references to "object x" in the JSON tutorial (GH-22411) (GH-26218)
https://github.com/python/cpython/commit/5f2afff1ddbf11c8dfa9ddc98fb7a2f2d86eabde
msg393938 - (view) Author: Irit Katriel (iritkatriel) * (Python committer) Date: 2021-05-19 08:59
New changeset 74eb94af2b0ca652d4b6b9b853601a8b8ac7dca1 by Miss Islington (bot) in branch '3.9':
bpo-35765: Clarify references to "object x" in the JSON tutorial (GH-22411) (GH-26219)
https://github.com/python/cpython/commit/74eb94af2b0ca652d4b6b9b853601a8b8ac7dca1
History
Date User Action Args
2022-04-11 14:59:10adminsetgithub: 79946
2021-05-19 08:59:55iritkatrielsetmessages: + msg393938
2021-05-19 08:59:55iritkatrielsetnosy: + iritkatriel
messages: + msg393937
2021-05-19 08:59:48iritkatrielsetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2021-05-18 21:56:19miss-islingtonsetpull_requests: + pull_request24836
2021-05-18 21:56:14miss-islingtonsetnosy: + miss-islington
pull_requests: + pull_request24835
2021-05-18 21:54:01iritkatrielsetversions: + Python 3.9, Python 3.10, Python 3.11, - Python 3.7, Python 3.8
2020-09-26 13:01:10vekysetnosy: + veky
messages: + msg377526
2020-09-25 17:57:20ZackerySpytzsetkeywords: + patch
nosy: + ZackerySpytz

pull_requests: + pull_request21449
stage: patch review
2019-01-18 02:18:07xtreaksetnosy: + xtreak

messages: + msg333931
versions: + Python 3.7, Python 3.8, - Python 3.5
2019-01-18 00:31:40Patrick Ricecreate