caesar0301 / treelib

An efficient implementation of tree data structure in python 2/3.
http://treelib.readthedocs.io/en/latest/
Other
801 stars 185 forks source link

Work in progress (do not merge) - serializing and deserializing trees and nodes #133

Closed leonardbinet closed 1 year ago

leonardbinet commented 4 years ago

https://github.com/caesar0301/treelib/issues/85

AdeBC commented 4 years ago

Hello, This could be achieved using pickle package, which is a python built-in package. is other serializing method really needed? I think there's just one aspect that JSON is better than pickle, JSON file is not binary and thus is human-readable while pickle file is binary.

leonardbinet commented 4 years ago

@AdeBC you are right pickle is good for many situations, although here are some of reasons why other serialization formats can be interesting:

AdeBC commented 4 years ago

Oh, that make sense, security and other features you said are really necessary. Thanks for your hard work