Re: [Python-ideas] dict.setdefault_call(), or API variations thereupon

2018-11-05 Thread Chris Barker via Python-ideas
On Fri, Nov 2, 2018 at 7:49 PM, Steven D'Aprano wrote: > Consider the use-case where you want to pass a different default value > to the dict each time: > exactly - the "default" is per call, not the same for the whole dict. though again, how common is this? > d.setdefault(key, expensive_f

Re: [Python-ideas] Serialization of CSV vs. JSON

2018-11-05 Thread Chris Barker via Python-ideas
On Fri, Nov 2, 2018 at 12:17 PM, Wes Turner wrote: > JSON5 supports comments in JSON. > https://github.com/json5/json5/issues/3 > and other nifty things -- any plans to support JSON5 in the stdlib json library? I think that would be great. -CHB > ... Some form of schema is necessary to avoi

Re: [Python-ideas] Serialization of CSV vs. JSON

2018-11-05 Thread Serhiy Storchaka
06.11.18 02:17, Chris Barker via Python-ideas пише: and other nifty things -- any plans to support JSON5 in the stdlib json library? I think that would be great. When it be widely used official standard. There is a number of general data exchange formats more popular than JSON5. _