Message244601
conina:~ graham$ python
Python 2.7.3 (v2.7.3:70274d53c1dd, Apr 9 2012, 20:52:43)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> dict({'a':'aa'},b='bb')
{'a': 'aa', 'b': 'bb'}
>>> dict({'a':'aa'},a='bb')
Segmentation fault: 11
conina:~ graham$
From the docs:
[[
If keyword arguments are given, the keyword arguments and their values are added to the dictionary created from the positional argument. If a key being added is already present, the value from the keyword argument replaces the value from the positional argument.
]] |
|
Date |
User |
Action |
Args |
2015-06-01 16:33:08 | Graham Klyne | set | recipients:
+ Graham Klyne, ronaldoussoren, ned.deily |
2015-06-01 16:33:07 | Graham Klyne | set | messageid: <1433176387.97.0.111097599452.issue24350@psf.upfronthosting.co.za> |
2015-06-01 16:33:07 | Graham Klyne | link | issue24350 messages |
2015-06-01 16:33:07 | Graham Klyne | create | |
|