Message326937
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. |
|
Date |
User |
Action |
Args |
2018-10-03 05:59:18 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, benjamin.peterson, xtreak, Tim McDonough |
2018-10-03 05:59:18 | serhiy.storchaka | set | messageid: <1538546358.23.0.545547206417.issue34874@psf.upfronthosting.co.za> |
2018-10-03 05:59:18 | serhiy.storchaka | link | issue34874 messages |
2018-10-03 05:59:18 | serhiy.storchaka | create | |
|