Raymond Hettinger added the comment: FWIW, one of the design goal for deques was to make them easily substitutable for lists when needed. This feature request is a nice-to-have that moves us a little closer.
That said, I think a __json__ attribute is too big of a hammer for this simple proposal. Also, please add Bob Ippolito to all JSON issues. He has excellent design sensibilities and considerable contact with users of the json module. ---------- nosy: +bob.ippolito _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue20774> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com