Saturday, June 18, 2011

Oh python

print {True: "hello", 1: "good bye"}

This does not print what I'd expect.

{True: goodbye}

True isn't a special case? It's just a typedef to 1. >_< How do Json importers handle this type of thing?

Edit: Apparently Json doesn't have number keys. Unfortunately this doesn't really fix my problem.