Python Max Recursion Reached with ujson, not cPickle -
when comparing ujson , cpickle serializing objects in python 2.7, why using ujson shown gives error overflowerror: maximum recursion level reached?
import ujson json sys.setrecursionlimit(10000) open(mypath, 'w') fp: json.dump(data, fp) however when using cpickle, same error not occur.
import cpickle pickle sys.setrecursionlimit(10000) open(mypath, 'w') fp: pickle.dump(data, fp) why this?
Comments
Post a Comment