Message289022
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:54 | rhettinger | set | recipients:
+ rhettinger, pitrou, ezio.melotti, r.david.murray, gdr@garethrees.org, serhiy.storchaka, acdha |
2017-03-05 16:35:54 | rhettinger | set | messageid: <1488731754.08.0.835393191098.issue20774@psf.upfronthosting.co.za> |
2017-03-05 16:35:54 | rhettinger | link | issue20774 messages |
2017-03-05 16:35:53 | rhettinger | create | |
|