File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/mmap Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -517,7 +517,7 @@ protected static SequenceStorageNodes.AppendNode createAppend() {
517
517
}
518
518
}
519
519
520
- @ Builtin (name = "seek" , fixedNumOfPositionalArgs = 1 )
520
+ @ Builtin (name = "seek" , minNumOfPositionalArgs = 2 , maxNumOfPositionalArgs = 3 )
521
521
@ GenerateNodeFactory
522
522
@ TypeSystemReference (PythonArithmeticTypes .class )
523
523
abstract static class SeekNode extends PythonBuiltinNode {
@@ -703,4 +703,15 @@ public static InternalLenNode create() {
703
703
}
704
704
}
705
705
706
+ @ Builtin (name = "flush" , fixedNumOfPositionalArgs = 1 )
707
+ @ GenerateNodeFactory
708
+ abstract static class FlushNode extends PythonUnaryBuiltinNode {
709
+
710
+ @ Specialization
711
+ Object seek (@ SuppressWarnings ("unused" ) PMMap self ) {
712
+ return PNone .NONE ;
713
+ }
714
+
715
+ }
716
+
706
717
}
You can’t perform that action at this time.
0 commit comments