poq <p...@gmx.com> added the comment:

> It would just need to call a given callable (fp.write) at regular intervals 
> and that would be enough to C-accelerate dump().

True, but that would just special case dump(), just like dumps() is 
special-cased now. Ideally JSONEncoder.iterencode() would be accelerated, so 
you wouldn't need any special cases. Or deprecate iterencode() and replace it 
with a callback interface...

----------

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

Reply via email to