Пример #1
0
        internal PyObject(PythonAPI api, IntPtr pyObject)
        {
            if (pyObject == IntPtr.Zero)
            {
                throw new ArgumentNullException("pyObject");
            }

            Api = api;
            _pyUtils = new PyUtils(api);
            PyObjectPtr = pyObject;
        }
Пример #2
0
 /* TODO implement this types
 None,
 Type,
 Bool,
 Int,
 Long,
 Float,
 String,
 Unicode,
 Tuple,
 List,
 Dict,
 Function,
 Class,
 Instance,
 Method,
 Module,
 Traceback,
  */
 internal PyTypes(PythonAPI api)
 {
     _api = api;
     _pyUtils = new PyUtils(api);
 }
Пример #3
0
 internal PyUtils(PythonAPI api)
 {
     _api = api;
 }