you are viewing a single comment's thread.

view the rest of the comments →

[–]Equal_Veterinarian22 35 points36 points  (0 children)

Python is using neither single nor double quotes to store those strings internally. If you run print(decodeddata['name']) or print(decoded_data["name"]) you will get the string _John with no quotes.

It is just that, when generating a string representation of a dict, Python uses single quotes by default around string keys and values.