Exemplo n.º 1
0
        internal PyObject(PythonAPI api, IntPtr pyObject)
        {
            if (pyObject == IntPtr.Zero)
            {
                throw new ArgumentNullException("pyObject");
            }

            Api = api;
            _pyUtils = new PyUtils(api);
            PyObjectPtr = pyObject;
        }
Exemplo n.º 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);
 }