This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients acdha, ezio.melotti,, pitrou, r.david.murray, rhettinger, serhiy.storchaka
Date 2017-03-05.16:35:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
There is a difference.  An __json__ attribute would have to convert to a list first.  Adding support directly to the json module would allow the deque to be read directly.

I think you all are leaning towards premature generalization and making this harder than it needs to be.  Chris and Tarek's proposal is a reasonable and straight-forward, but it is not being pushed towards PEP territory and I think Guido would need to opine on whether to enshrine yet another dunder method that would infest the library and privilege the json serialization format over all formats.
Date User Action Args
2017-03-05 16:35:54rhettingersetrecipients: + rhettinger, pitrou, ezio.melotti, r.david.murray,, serhiy.storchaka, acdha
2017-03-05 16:35:54rhettingersetmessageid: <>
2017-03-05 16:35:54rhettingerlinkissue20774 messages
2017-03-05 16:35:53rhettingercreate