On Fri, Apr 21, 2017 at 6:08 PM, Albert-Jan Roskam <[email protected]> wrote: > Would the insertion order be preserved if the last line were to be > replaced with: > > if kwds: > for k, v in kwds.items(): > self[k] = v > if args: > self.__update(*args) # no **kwds!
The basic problem is that kwds is a regular, unordered dict:
def f(**kwds):
print(type(kwds))
>>> f()
<class 'dict'>
--
https://mail.python.org/mailman/listinfo/python-list
