mirror of
https://github.com/python/cpython
synced 2026-09-26 16:21:04 +03:00
SimpleNamespace({'a': 1, 'b': 2}) and SimpleNamespace([('a', 1), ('b', 2)])
are now the same as SimpleNamespace(a=1, b=2).
3 lines
169 B
ReStructuredText
3 lines
169 B
ReStructuredText
The :class:`types.SimpleNamespace` now accepts an optional positional
|
|
argument which specifies initial values of attributes as a dict or an
|
|
iterable of key-value pairs.
|