aboutsummaryrefslogtreecommitdiff
path: root/immutables/_map.c
diff options
context:
space:
mode:
Diffstat (limited to 'immutables/_map.c')
-rw-r--r--immutables/_map.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/immutables/_map.c b/immutables/_map.c
index 9a81556..9b406ea 100644
--- a/immutables/_map.c
+++ b/immutables/_map.c
@@ -3880,6 +3880,10 @@ mapmut_py_update(MapMutationObject *self, PyObject *args, PyObject *kwds)
return NULL;
}
+ if (mapmut_check_finalized(self)) {
+ return NULL;
+ }
+
if (arg != NULL) {
if (map_update_inplace(self->m_mutid, (BaseMapObject *)self, arg)) {
return NULL;