Emanuel Barry added the comment:

So __json__ returns a string meant to be serializable. I'm not too keen on 
using a dunder name (although my word doesn't weigh anything ;) and I'd 
personally prefer something like as_json_string(). I think the idea in general 
is good, though. Mind submitting a patch?

----------
stage: test needed -> needs patch

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

Reply via email to