Bob Ippolito added the comment:

This patch looks reasonable to me as-is.
With regard to "Infinite and NaN number values are accepted and output;" 
there's an option for that (allow_nan=False in encoding, 
parse_constant=some_function_that_raises in decoding). Since an exception can't 
be raised in a lambda there's no simple one-liner to ensure compliant decode.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue21514>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to