[New-bugs-announce] [issue24350] dict({'a':'aa'}, a='bb') raises segmentation fault on Mac

Graham Klyne report at bugs.python.org
Mon Jun 1 18:33:07 CEST 2015

New submission from Graham Klyne:

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.

components: Macintosh
messages: 244601
nosy: Graham Klyne, ned.deily, ronaldoussoren
priority: normal
severity: normal
status: open
title: dict({'a':'aa'},a='bb') raises segmentation fault on Mac
type: crash
versions: Python 2.7

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list