[Python-ideas] `to_file()` method for strings

Ethan Furman ethan at stoneleaf.us
Mon Mar 28 12:20:11 EDT 2016


On 03/28/2016 08:30 AM, Chris Barker - NOAA Federal wrote:

> But could we make a not-quite-as-complete pickle-like protocol that
> could save and load arbitrary objects, without ever running arbitrary
> code?

We could use `ast.literal_eval` to parse the file.

--
~Ethan~


More information about the Python-ideas mailing list