Commits

Jeff Allen  committed ae51dbe Draft

_fileio.PyFileIO read() argument made optional.

  • Participants
  • Parent commits efcd435

Comments (0)

Files changed (1)

File 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);