Storing instances using jsonpickle

Marko Rauhamaa marko at pacujo.net
Fri Sep 5 13:16:01 EDT 2014


MRAB <python at mrabarnett.plus.com>:

> Therefore, if you want it to be able to drop it into Python's REPL, it
> won't be compatible with JSON anyway! (Well, not unless you define
> 'true' and 'false' first.)

Sigh. I was so hopeful JSON would be great. Unfortunately, it flopped by
requiring the parser to heuristically support 5 encoding systems.

Thus, ast.literal_eval() is superior to anything JSON has to offer.


Marko



More information about the Python-list mailing list