Pages

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.

No comments:

Post a Comment

All comments are moderated unless the post is very recent.
It may take a little time for your comment to be pushed to the blog.
Anything spammy is deleted.