示例#1
0
        public static object load(PythonFile /*!*/ file)
        {
            if (file == null)
            {
                throw PythonOps.TypeError("expected file, found None");
            }

            return(MarshalOps.GetObject(FileEnumerator(file)));
        }
示例#2
0
        public static object load(CodeContext /*!*/ context, PythonIOModule._IOBase /*!*/ file)
        {
            if (file == null)
            {
                throw PythonOps.TypeError("expected file, found None");
            }

            return(MarshalOps.GetObject(FileEnumerator(context, file)));
        }
示例#3
0
 public static object loads(string @string)
 {
     return(MarshalOps.GetObject(StringEnumerator(@string)));
 }
示例#4
0
 public static object loads([BytesConversion] IList <byte> bytes)
 {
     return(MarshalOps.GetObject(bytes.GetEnumerator()));
 }