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

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -