Skip to content

Commit fed96fb

Browse files
committed
__reduce__ do not perform eager lookup of builtin types
1 parent 7c542c4 commit fed96fb

File tree

1 file changed

+1
-1
lines changed
  • graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/map

1 file changed

+1
-1
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/map/MapBuiltins.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ PTuple doit(PMap self, @SuppressWarnings("unused") Object ignored) {
185185
Object[] args = new Object[iterators.length + 1];
186186
args[0] = self.getFunction();
187187
System.arraycopy(iterators, 0, args, 1, iterators.length);
188-
return factory().createTuple(new Object[]{getCore().lookupType(PythonBuiltinClassType.PMap), factory().createTuple(args)});
188+
return factory().createTuple(new Object[]{PythonBuiltinClassType.PMap, factory().createTuple(args)});
189189
}
190190
}
191191
}

0 commit comments

Comments
 (0)