Re:A practical usage of ChainMap in Python
by dfee on Tuesday September 25, 2018 @03:01PM
(#18069377)
I disagree. There’s a strange precedent for builtins overloading like ‘type’. The same could be done for ‘dict’. Do you want me to share a satisficing call signature?
[ Parent
| on HN ]
Re:A practical usage of ChainMap in Python
by joshuamorton on Tuesday September 25, 2018 @06:00PM
(#18070887)
Type doesn't take in kwargs?
But yes, I'm interested in the call signature you propose such that it's possible to tell whether
dict(ordered=True)
Means `OrderedDict([])` or `{'ordered': True}`.