New submission from Michael Merickel: I assume there is some incompatibility in the maverick's C runtime, but getting a segfault only on the python binaries from python.org.
Version shipped by Apple OS X 10.9 Mavericks: ~❯ python2.7 Python 2.7.5 (default, Sep 12 2013, 21:33:34) [GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.0.68)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> foo = {} >>> foo[{}] = 1 Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: unhashable type: 'dict' >>> 2.7 binary installed from python.org: ~❯ /Library/Frameworks/Python.framework/Versions/2.7/bin/python Python 2.7.5 (v2.7.5:ab05e7dd2788, May 13 2013, 13:18:45) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> foo = {} >>> foo[{}] = 1 [1] 4517 segmentation fault /Library/Frameworks/Python.framework/Versions/2.7/bin/python 3.3 binary installed from python.org: Python 3.3.2 (v3.3.2:d047928ae3f6, May 13 2013, 13:52:24) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> foo = {} >>> foo[{}] = 1 [1] 1898 segmentation fault python ---------- assignee: ronaldoussoren components: Macintosh messages: 202303 nosy: mmerickel, ronaldoussoren priority: normal severity: normal status: open title: segmentation fault using a dict as a key type: crash versions: Python 2.7, Python 3.3 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue19516> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com