Skip to content

Commit 3a04ef1

Browse files
committed
Critical sections
1 parent 5a4ca2c commit 3a04ef1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Objects/dictobject.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3325,6 +3325,7 @@ dict_richcompare(PyObject *v, PyObject *w, int op)
33253325
/*[clinic input]
33263326
33273327
@coexist
3328+
@critical_section
33283329
dict.__contains__
33293330
33303331
key: object
@@ -3356,6 +3357,7 @@ dict___contains__(PyDictObject *self, PyObject *key)
33563357
}
33573358

33583359
/*[clinic input]
3360+
@critical_section
33593361
dict.get
33603362
33613363
key: object
@@ -3540,6 +3542,7 @@ dict_pop_impl(PyDictObject *self, PyObject *key, PyObject *default_value)
35403542
}
35413543

35423544
/*[clinic input]
3545+
@critical_section
35433546
dict.popitem
35443547
35453548
Remove and return a (key, value) pair as a 2-tuple.

0 commit comments

Comments
 (0)