We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b92e315 commit 268a0e0Copy full SHA for 268a0e0
graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/deque/DequeBuiltins.java
@@ -269,8 +269,9 @@ static PNone doGeneric(PDeque self) {
269
public abstract static class DequeCopyNode extends PythonUnaryBuiltinNode {
270
271
@Specialization
272
- PDeque doGeneric(PDeque self) {
273
- PDeque copy = factory().createDeque();
+ PDeque doGeneric(PDeque self,
+ @Cached GetClassNode getClassNode) {
274
+ PDeque copy = factory().createDeque(getClassNode.execute(self));
275
copy.setMaxLength(self.getMaxLength());
276
copy.addAll(self);
277
return copy;
0 commit comments