Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

What are some alternatives to pickling which can handle cyclic references?

I've looked into ORMs but these are invasive in terms of needing to annotate your classes and fields.



There are several approaches to references in JSON. A common Python library I found via StackOverflow mentions is: https://pypi.org/project/jsonref/ (it supports automatic dereferencing at load time, but dumping references is still a slight challenge).




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: