Is there an alternative to pickle - save a dictionary (python) -


i need save dictionary file, in dictionary there strings, integers, , dictionarys.

i did own , it's not pretty , nice user.

i know pickle know not safe use it, because if replace file , (or else) run file uses replaced file, running , might things. it's not safe.

is there function or imported thing it.

pickle not safe when transfered untrusted 3rd party. local files fine, , if can replace files on filesystem have different problem.

that said, if dictionary contains nothing string keys , values nothing python lists, numbers, strings or other dictionaries, use json, via json module.


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -