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

Chris Barker chris.barker at noaa.gov
Mon Mar 28 11:50:03 EDT 2016


On Mon, Mar 28, 2016 at 8:44 AM, Michel Desmoulin <desmoulinmichel at gmail.com
> wrote:

>
> If it's for quick data saving, the security is not an issue since the
> data will never comes from an attacker if you do a quick script.
>

that's why we have pickle already -- but a nice human-readable and editable
form would be nice...

Also -- when it comes to security  it's a tough one -- people DO start with
one thing, thinking "I will always trust this source" (if they think about
it at all), then later expand the system to be a web service, or .. and
oops!


> For other needs, where security is an issue, having a one liner to dump
> some serialization is not going to do much of a difference.
>

no -- I kind of mixed topics here -- my "safe json serialization" would be
for web services, configuration, etc -- where security matters, but quick
one-liner access is not so important -- though why not have one thing for
multiple uses?

-CHB



-- 

Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris.Barker at noaa.gov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20160328/85bc50bc/attachment-0001.html>


More information about the Python-ideas mailing list