Antoine Pitrou <[email protected]> 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...
Is iterencode() used much? I would think dump() and dumps() see the most use. ---------- _______________________________________ Python tracker <[email protected]> <http://bugs.python.org/issue12778> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
