]> granicus.if.org Git - python/commit
Issue #25557: Refactor _PyDict_LoadGlobal()
authorVictor Stinner <victor.stinner@gmail.com>
Fri, 20 Nov 2015 08:24:02 +0000 (09:24 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Fri, 20 Nov 2015 08:24:02 +0000 (09:24 +0100)
commitb4efc963d628475c79f02ecf43a4ec564b46428e
treeee70295f62c6e30bf45acf29bd9617c1b4802a9f
parentc50ec007ff1b08fd2677bdd1d785b0e0af2588df
Issue #25557: Refactor _PyDict_LoadGlobal()

Don't fallback to PyDict_GetItemWithError() if the hash is unknown: compute the
hash instead. Add also comments to explain the optimization a little bit.
Objects/dictobject.c
Python/ceval.c