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 -

javascript - How to bind ViewModel Store to View? -

javascript - Solution fails to pass one test with large inputs? -