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

            return(MarshalOps.GetObject(FileEnumerator(file)));
        }
Exemple #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)));
        }
Exemple #3
0
 public static object loads(string @string)
 {
     return(MarshalOps.GetObject(StringEnumerator(@string)));
 }
Exemple #4
0
 public static object loads([BytesConversion] IList <byte> bytes)
 {
     return(MarshalOps.GetObject(bytes.GetEnumerator()));
 }