Skip to content

Commit 13f7bf7

Browse files
committed
an attribute that already exists is not insertable, just modifiable
1 parent abf9b32 commit 13f7bf7

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/PythonAbstractObject.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -636,10 +636,6 @@ int access(Object object, String fieldName,
636636
if (!isImmutable.execute(owner)) {
637637
info |= REMOVABLE;
638638
info |= MODIFIABLE;
639-
} else if (check(isMapping, object)) {
640-
// Even if the attribute's owner is immutable, if the object is a mapping, it
641-
// may be inserted.
642-
info |= INSERTABLE;
643639
}
644640
} else if (!isImmutable.execute(object) || check(isMapping, object)) {
645641
// If the member does not exist yet, it is insertable if this object is mutable,

0 commit comments

Comments
 (0)