public static PyString readline(PyIOBase self, PyInteger size = null) { if (size == null) { size = PyInteger.Create(-1); } return(PyString.Create(self.Readline(size.number))); }
public static void truncate(PyIOBase self, PyInteger size) { self.Truncate(size.number); }
public static PyInteger tell(PyIOBase self) { return(PyInteger.Create(self.Tell())); }
public static bool seekable(PyIOBase self) { return(PyBool.Create(self.Seekable())); }
public static void seek(PyIOBase self, PyInteger offset, PyInteger whence = null) { self.Seek(offset.number, whence?.number ?? new BigInteger(0)); }
public static PyList readlines(PyIOBase self, PyInteger size) { return(PyList.Create()); }
public static bool isatty(PyIOBase self) { return(self.IsaTTY()); }
public static bool readable(PyIOBase self) { return(PyBool.Create(self.Readable())); }
public static PyInteger fileno(PyIOBase self) { return(PyInteger.Create(self.Fileno())); }
public static void flush(PyIOBase self) { self.Flush(); }
public static bool closed(PyIOBase self) { return(self.Closed()); }
public static void close(PyIOBase self) { self.Close(); }
public static void __del__(PyIOBase self) { self.Dispose(); }
public static void writelines(PyIOBase self, PyList lines) { }
public static PyBool writeable(PyIOBase self) { return(PyBool.Create(self.Writeable())); }