Пример #1
0
        public static void Dump(object value, object file, object version)
        {
            PythonFile pf = file as PythonFile;

            if (pf == null)
            {
                throw Ops.TypeError("expected file, found '{0}'", Ops.GetDynamicType(file).__name__);
            }

            pf.Write(DumpString(value, version));
        }
Пример #2
0
        public static void WriteToFileDescriptor(int fd, string text)
        {
            PythonFile pf = PythonFileManager.GetFileFromId(fd);

            pf.Write(text);
        }