8000 Remove redundant critical section in dict.get · python/cpython@152fed3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 152fed3

Browse files
committed
Remove redundant critical section in dict.get
1 parent a8dc6d6 commit 152fed3

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

Objects/clinic/dictobject.c.h

Lines changed: 1 addition & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Objects/dictobject.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4248,7 +4248,6 @@ dict___contains__(PyDictObject *self, PyObject *key)
42484248
}
42494249

42504250
/*[clinic input]
4251-
@critical_section
42524251
dict.get
42534252
42544253
key: object
@@ -4260,7 +4259,7 @@ Return the value for key if key is in the dictionary, else default.
42604259

42614260
static PyObject *
42624261
dict_get_impl(PyDictObject *self, PyObject *key, PyObject *default_value)
4263-
/*[clinic end generated code: output=bba707729dee05bf input=a631d3f18f584c60]*/
4262+
/*[clinic end generated code: output=bba707729dee05bf input=279ddb5790b6b107]*/
42644263
{
42654264
PyObject *val = NULL;
42664265
Py_hash_t hash;

0 commit comments

Comments
 (0)
0