public static object Load(object file) { PythonFile pf = file as PythonFile; if (pf == null) { throw Ops.TypeError("expected file, found '{0}'", Ops.GetDynamicType(file).__name__); } return(LoadString(pf.Read())); }
public static string ReadFromFileDescriptor(int fd, int buffersize) { PythonFile pf = PythonFileManager.GetFileFromId(fd); return(pf.Read()); }