Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!news2.arglkargh.de!news.swapon.de!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Marko Rauhamaa Newsgroups: comp.lang.python Subject: Re: Storing instances using jsonpickle Date: Fri, 05 Sep 2014 20:16:01 +0300 Organization: A noiseless patient Spider Lines: 13 Message-ID: <87fvg6j8dq.fsf@elektro.pacujo.net> References: <46e782a5-b087-4f95-aadb-26e233bf5419@googlegroups.com> <5407A69B.3030707@mrabarnett.plus.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx05.eternal-september.org; posting-host="ff5cf27ef3d5b31f034d3b72bdc27a41"; logging-data="29948"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19nEwRpSzxaSP/YnWRMfMpp" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) Cancel-Lock: sha1:xZ12INCXPQGtMPhVdHi3V9lVYec= sha1:8vR2NTVobfWYjSqnXj9CqoMJ2N8= Xref: csiph.com comp.lang.python:77598 MRAB : > 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