]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-108191: Add support of positional argument in SimpleNamespace constructor (GH...
authorSerhiy Storchaka <storchaka@gmail.com>
Wed, 24 Apr 2024 21:39:54 +0000 (00:39 +0300)
committerGitHub <noreply@github.com>
Wed, 24 Apr 2024 21:39:54 +0000 (00:39 +0300)
commit93b7ed7c6b1494f41818fa571b1843ca3dfe1bd1
treeb7a68ecc9aa6b2b538586037fba03093c439637b
parent85ec1c2dc67c2a506e847dbe2c3c740e81c3ab9b
gh-108191: Add support of positional argument in SimpleNamespace constructor (GH-108195)

SimpleNamespace({'a': 1, 'b': 2}) and SimpleNamespace([('a', 1), ('b', 2)])
are now the same as SimpleNamespace(a=1, b=2).
Doc/library/types.rst
Doc/whatsnew/3.13.rst
Lib/test/test_types.py
Misc/NEWS.d/next/Library/2023-08-21-10-34-43.gh-issue-108191.GZM3mv.rst [new file with mode: 0644]
Objects/namespaceobject.c