Antti Haapala added the comment:

My mistake in writing, json ofc does specify that "control characters" be 
escaped. Then, it needs to be pointed out that JSON module DOES not currently 
escape \u007f-\u009f as it maybe strictly should

>>> unicodedata.category('\u007f')
'Cc'
>>> json.dumps({'a': '\u007f'}, ensure_ascii=False)
'{"a": "\x7f"}'

----------

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

Reply via email to