Message356276
import json
foo = {}
for i in range(1000):
json.dumps(foo)
print(i)
foo = {'bar': foo}
Will error at 994. At a minimum this magic number should be documented, but it would be better if the json library could handle arbitrarily nested JSON or have a configurable limit.
https://github.com/lovasoa/bad_json_parsers |
|
Date |
User |
Action |
Args |
2019-11-09 00:22:59 | boris | set | recipients:
+ boris |
2019-11-09 00:22:59 | boris | set | messageid: <1573258979.82.0.0958429006244.issue38751@roundup.psfhosted.org> |
2019-11-09 00:22:59 | boris | link | issue38751 messages |
2019-11-09 00:22:59 | boris | create | |
|