[issue30732] json.dumps() lacks information about RecursionError related to default function

2017-06-22 Thread Krzysztof Nazarewski
Changes by Krzysztof Nazarewski <nazar...@gmail.com>: -- title: json.dumps() lack of information about RecursionError when using default function -> json.dumps() lacks information about RecursionError related to default function ___ Pytho

[issue30732] json.dumps() lack of information about RecursionError when using default function

2017-06-22 Thread Krzysztof Nazarewski
New submission from Krzysztof Nazarewski: RecursionErrors related to json.dumps' default argument give no information whatsoever about the underlying issue. Example: $ /usr/bin/python3 -c "import json;from decimal import Decimal;json.dumps(Decimal(),default=lambda v:round(v, 8))"