Commits

Anonymous committed ae51dbe Draft

_fileio.PyFileIO read() argument made optional.

Comments (0)

Files changed (1)

src/org/python/modules/_fileio/PyFileIO.java

         return PyJavaType.wrapJavaObject(file.fileno());
     }
 
-    @ExposedMethod(doc = BuiltinDocs.file_read_doc)
+    @ExposedMethod(defaults = {"-1"}, doc = BuiltinDocs.file_read_doc)
     final synchronized PyString _FileIO_read(int size) {
         checkClosed();
         ByteBuffer buf = file.read(size);