diff options
author | Araq <rumpf_a@web.de> | 2011-04-11 23:28:53 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2011-04-11 23:28:53 +0200 |
commit | 46c41e43690cba9bc1caff6a994bb6915df8a1b7 (patch) | |
tree | c96be792eceb1d189cdb5bcff6e1a06f9b51e76c /lib/wrappers/python.nim | |
parent | 3d696c3da53e5c41d839d8265fbc94f1c64980bb (diff) | |
download | Nim-46c41e43690cba9bc1caff6a994bb6915df8a1b7.tar.gz |
p[] instead of p^
Diffstat (limited to 'lib/wrappers/python.nim')
-rwxr-xr-x | lib/wrappers/python.nim | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/wrappers/python.nim b/lib/wrappers/python.nim index ea9ef1fd5..0801b1ae5 100755 --- a/lib/wrappers/python.nim +++ b/lib/wrappers/python.nim @@ -1337,7 +1337,7 @@ proc PyImport_ExecCodeModule(name: string, codeobject: PPyObject): PPyObject = Py_XDECREF(v) modules = PyImport_GetModuleDict() if PyDict_GetItemString(modules, cstring(name)) == nil: - PyErr_SetString(PyExc_ImportError^ , cstring( + PyErr_SetString(PyExc_ImportError[] , cstring( "Loaded module " & name & "not found in sys.modules")) return nil Py_XINCREF(m) @@ -1371,37 +1371,37 @@ proc PyTuple_Check(obj: PPyObject): bool = Result = PyObject_TypeCheck(obj, PyTuple_Type) proc PyTuple_CheckExact(obj: PPyObject): bool = - Result = (obj != nil) and (obj^ .ob_type == PyTuple_Type) + Result = (obj != nil) and (obj[].ob_type == PyTuple_Type) proc PyInstance_Check(obj: PPyObject): bool = - Result = (obj != nil) and (obj^ .ob_type == PyInstance_Type) + Result = (obj != nil) and (obj[].ob_type == PyInstance_Type) proc PyClass_Check(obj: PPyObject): bool = - Result = (obj != nil) and (obj^ .ob_type == PyClass_Type) + Result = (obj != nil) and (obj[].ob_type == PyClass_Type) proc PyMethod_Check(obj: PPyObject): bool = - Result = (obj != nil) and (obj^ .ob_type == PyMethod_Type) + Result = (obj != nil) and (obj[].ob_type == PyMethod_Type) proc PyList_Check(obj: PPyObject): bool = Result = PyObject_TypeCheck(obj, PyList_Type) proc PyList_CheckExact(obj: PPyObject): bool = - Result = (obj != nil) and (obj^ .ob_type == PyList_Type) + Result = (obj != nil) and (obj[].ob_type == PyList_Type) proc PyDict_Check(obj: PPyObject): bool = Result = PyObject_TypeCheck(obj, PyDict_Type) proc PyDict_CheckExact(obj: PPyObject): bool = - Result = (obj != nil) and (obj^ .ob_type == PyDict_Type) + Result = (obj != nil) and (obj[].ob_type == PyDict_Type) proc PyModule_Check(obj: PPyObject): bool = Result = PyObject_TypeCheck(obj, PyModule_Type) proc PyModule_CheckExact(obj: PPyObject): bool = - Result = (obj != nil) and (obj^ .ob_type == PyModule_Type) + Result = (obj != nil) and (obj[].ob_type == PyModule_Type) proc PySlice_Check(obj: PPyObject): bool = - Result = (obj != nil) and (obj^ .ob_type == PySlice_Type) + Result = (obj != nil) and (obj[].ob_type == PySlice_Type) proc PyFunction_Check(obj: PPyObject): bool = Result = (obj != nil) and |