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.

Author serhiy.storchaka
Recipients Tim McDonough, benjamin.peterson, serhiy.storchaka, xtreak
Date 2018-10-03.05:59:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1538546358.23.0.545547206417.issue34874@psf.upfronthosting.co.za>
In-reply-to
Content
I can reproduce this problem when use double quotes as both outer and internal quotes.

$ echo -n '{"A":"a"}' | python3 -c "import sys,json; j=json.load(sys.stdin); print(j["A"])"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
NameError: name 'A' is not defined

This has not relation to Python, this is how the quoting in the shell works. Perhaps something in your configuration makes single quotes be interpreted as double quotes.
History
Date User Action Args
2018-10-03 05:59:18serhiy.storchakasetrecipients: + serhiy.storchaka, benjamin.peterson, xtreak, Tim McDonough
2018-10-03 05:59:18serhiy.storchakasetmessageid: <1538546358.23.0.545547206417.issue34874@psf.upfronthosting.co.za>
2018-10-03 05:59:18serhiy.storchakalinkissue34874 messages
2018-10-03 05:59:18serhiy.storchakacreate