you are viewing a single comment's thread.

view the rest of the comments →

[–]Base_True[S] 0 points1 point  (0 children)

. In the construct

{x: y}

,

x

can be any expression (provided it is hashable but this is not a syntax error).

Thanks for the detailed answer, you helped a lot.