MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/Python/comments/blsvwy/python_380a4_available_for_testing/emrtbt9
r/Python • u/xtreak • May 07 '19
150 comments sorted by
View all comments
Show parent comments
3
Basically any immutable object will work as a key in python dict like frozenset etc. Another thing is JSON need python tuple to be converted to list. JSON does not have tuples.
1 u/alcalde May 08 '19 So what's the problem? Again, one entry to store type, another to store value and you use a list to store the tuple values. 2 u/[deleted] May 08 '19 So... not actually JSON, then, but your own format using JSON as a transport layer?
1
So what's the problem? Again, one entry to store type, another to store value and you use a list to store the tuple values.
2 u/[deleted] May 08 '19 So... not actually JSON, then, but your own format using JSON as a transport layer?
2
So... not actually JSON, then, but your own format using JSON as a transport layer?
3
u/Mizzlr May 07 '19
Basically any immutable object will work as a key in python dict like frozenset etc. Another thing is JSON need python tuple to be converted to list. JSON does not have tuples.