]> granicus.if.org Git - python/commit
Issue #25556: Fix LOAD_GLOBAL bytecode when globals type is not dict and the
authorVictor Stinner <victor.stinner@gmail.com>
Thu, 5 Nov 2015 12:55:20 +0000 (13:55 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Thu, 5 Nov 2015 12:55:20 +0000 (13:55 +0100)
commit60a1d3cd152e9340727409ee48372a7cbc31a16f
tree954863451144085e18cb0a65bb4c146849dfe730
parent4d11a94fb66ecf4d1f12d0f314d9e1f6dc3e756a
Issue #25556: Fix LOAD_GLOBAL bytecode when globals type is not dict and the
requested name doesn't exist in globals: clear the KeyError exception before
calling PyObject_GetItem(). Fail also if the raised exception is not a
KeyError.
Python/ceval.c