]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Have UserDict.__init__() implicitly check for updating w/ bool(kwargs) instead of...
authorSlam <3lnc.slam@gmail.com>
Tue, 2 Apr 2019 21:47:41 +0000 (00:47 +0300)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 2 Apr 2019 21:47:41 +0000 (14:47 -0700)
commit76b387bf7402863c5e64e3459e2f91ddc3b9d2d3
tree65bb8972e9a945041ab7d35424a5c2f197afbfcd
parent1c5fa5af8a95f25119e45e40a4ed8183d06f4a5b
Have UserDict.__init__() implicitly check for updating w/ bool(kwargs) instead of len() (GH-12139)

Semantically the same, but more idiomatic by checking against `kwargs` instead of `len(kwargs)`.
Lib/collections/__init__.py