6221 lines
280 KiB
C
6221 lines
280 KiB
C
|
/* Generated by Cython 0.12 on Sun Mar 14 21:49:58 2010 */
|
||
|
|
||
|
#define PY_SSIZE_T_CLEAN
|
||
|
#include "Python.h"
|
||
|
#include "structmember.h"
|
||
|
#ifndef Py_PYTHON_H
|
||
|
#error Python headers needed to compile C extensions, please install development version of Python.
|
||
|
#else
|
||
|
#ifndef PY_LONG_LONG
|
||
|
#define PY_LONG_LONG LONG_LONG
|
||
|
#endif
|
||
|
#ifndef DL_EXPORT
|
||
|
#define DL_EXPORT(t) t
|
||
|
#endif
|
||
|
#if PY_VERSION_HEX < 0x02040000
|
||
|
#define METH_COEXIST 0
|
||
|
#define PyDict_CheckExact(op) (Py_TYPE(op) == &PyDict_Type)
|
||
|
#define PyDict_Contains(d,o) PySequence_Contains(d,o)
|
||
|
#endif
|
||
|
#if PY_VERSION_HEX < 0x02050000
|
||
|
typedef int Py_ssize_t;
|
||
|
#define PY_SSIZE_T_MAX INT_MAX
|
||
|
#define PY_SSIZE_T_MIN INT_MIN
|
||
|
#define PY_FORMAT_SIZE_T ""
|
||
|
#define PyInt_FromSsize_t(z) PyInt_FromLong(z)
|
||
|
#define PyInt_AsSsize_t(o) PyInt_AsLong(o)
|
||
|
#define PyNumber_Index(o) PyNumber_Int(o)
|
||
|
#define PyIndex_Check(o) PyNumber_Check(o)
|
||
|
#endif
|
||
|
#if PY_VERSION_HEX < 0x02060000
|
||
|
#define Py_REFCNT(ob) (((PyObject*)(ob))->ob_refcnt)
|
||
|
#define Py_TYPE(ob) (((PyObject*)(ob))->ob_type)
|
||
|
#define Py_SIZE(ob) (((PyVarObject*)(ob))->ob_size)
|
||
|
#define PyVarObject_HEAD_INIT(type, size) \
|
||
|
PyObject_HEAD_INIT(type) size,
|
||
|
#define PyType_Modified(t)
|
||
|
|
||
|
typedef struct {
|
||
|
void *buf;
|
||
|
PyObject *obj;
|
||
|
Py_ssize_t len;
|
||
|
Py_ssize_t itemsize;
|
||
|
int readonly;
|
||
|
int ndim;
|
||
|
char *format;
|
||
|
Py_ssize_t *shape;
|
||
|
Py_ssize_t *strides;
|
||
|
Py_ssize_t *suboffsets;
|
||
|
void *internal;
|
||
|
} Py_buffer;
|
||
|
|
||
|
#define PyBUF_SIMPLE 0
|
||
|
#define PyBUF_WRITABLE 0x0001
|
||
|
#define PyBUF_FORMAT 0x0004
|
||
|
#define PyBUF_ND 0x0008
|
||
|
#define PyBUF_STRIDES (0x0010 | PyBUF_ND)
|
||
|
#define PyBUF_C_CONTIGUOUS (0x0020 | PyBUF_STRIDES)
|
||
|
#define PyBUF_F_CONTIGUOUS (0x0040 | PyBUF_STRIDES)
|
||
|
#define PyBUF_ANY_CONTIGUOUS (0x0080 | PyBUF_STRIDES)
|
||
|
#define PyBUF_INDIRECT (0x0100 | PyBUF_STRIDES)
|
||
|
|
||
|
#endif
|
||
|
#if PY_MAJOR_VERSION < 3
|
||
|
#define __Pyx_BUILTIN_MODULE_NAME "__builtin__"
|
||
|
#else
|
||
|
#define __Pyx_BUILTIN_MODULE_NAME "builtins"
|
||
|
#endif
|
||
|
#if PY_MAJOR_VERSION >= 3
|
||
|
#define Py_TPFLAGS_CHECKTYPES 0
|
||
|
#define Py_TPFLAGS_HAVE_INDEX 0
|
||
|
#endif
|
||
|
#if (PY_VERSION_HEX < 0x02060000) || (PY_MAJOR_VERSION >= 3)
|
||
|
#define Py_TPFLAGS_HAVE_NEWBUFFER 0
|
||
|
#endif
|
||
|
#if PY_MAJOR_VERSION >= 3
|
||
|
#define PyBaseString_Type PyUnicode_Type
|
||
|
#define PyString_Type PyUnicode_Type
|
||
|
#define PyString_CheckExact PyUnicode_CheckExact
|
||
|
#else
|
||
|
#define PyBytes_Type PyString_Type
|
||
|
#define PyBytes_CheckExact PyString_CheckExact
|
||
|
#endif
|
||
|
#if PY_MAJOR_VERSION >= 3
|
||
|
#define PyInt_Type PyLong_Type
|
||
|
#define PyInt_Check(op) PyLong_Check(op)
|
||
|
#define PyInt_CheckExact(op) PyLong_CheckExact(op)
|
||
|
#define PyInt_FromString PyLong_FromString
|
||
|
#define PyInt_FromUnicode PyLong_FromUnicode
|
||
|
#define PyInt_FromLong PyLong_FromLong
|
||
|
#define PyInt_FromSize_t PyLong_FromSize_t
|
||
|
#define PyInt_FromSsize_t PyLong_FromSsize_t
|
||
|
#define PyInt_AsLong PyLong_AsLong
|
||
|
#define PyInt_AS_LONG PyLong_AS_LONG
|
||
|
#define PyInt_AsSsize_t PyLong_AsSsize_t
|
||
|
#define PyInt_AsUnsignedLongMask PyLong_AsUnsignedLongMask
|
||
|
#define PyInt_AsUnsignedLongLongMask PyLong_AsUnsignedLongLongMask
|
||
|
#define __Pyx_PyNumber_Divide(x,y) PyNumber_TrueDivide(x,y)
|
||
|
#define __Pyx_PyNumber_InPlaceDivide(x,y) PyNumber_InPlaceTrueDivide(x,y)
|
||
|
#else
|
||
|
#define __Pyx_PyNumber_Divide(x,y) PyNumber_Divide(x,y)
|
||
|
#define __Pyx_PyNumber_InPlaceDivide(x,y) PyNumber_InPlaceDivide(x,y)
|
||
|
#endif
|
||
|
#if PY_MAJOR_VERSION >= 3
|
||
|
#define PyMethod_New(func, self, klass) PyInstanceMethod_New(func)
|
||
|
#endif
|
||
|
#if !defined(WIN32) && !defined(MS_WINDOWS)
|
||
|
#ifndef __stdcall
|
||
|
#define __stdcall
|
||
|
#endif
|
||
|
#ifndef __cdecl
|
||
|
#define __cdecl
|
||
|
#endif
|
||
|
#ifndef __fastcall
|
||
|
#define __fastcall
|
||
|
#endif
|
||
|
#else
|
||
|
#define _USE_MATH_DEFINES
|
||
|
#endif
|
||
|
#if PY_VERSION_HEX < 0x02050000
|
||
|
#define __Pyx_GetAttrString(o,n) PyObject_GetAttrString((o),((char *)(n)))
|
||
|
#define __Pyx_SetAttrString(o,n,a) PyObject_SetAttrString((o),((char *)(n)),(a))
|
||
|
#define __Pyx_DelAttrString(o,n) PyObject_DelAttrString((o),((char *)(n)))
|
||
|
#else
|
||
|
#define __Pyx_GetAttrString(o,n) PyObject_GetAttrString((o),(n))
|
||
|
#define __Pyx_SetAttrString(o,n,a) PyObject_SetAttrString((o),(n),(a))
|
||
|
#define __Pyx_DelAttrString(o,n) PyObject_DelAttrString((o),(n))
|
||
|
#endif
|
||
|
#if PY_VERSION_HEX < 0x02050000
|
||
|
#define __Pyx_NAMESTR(n) ((char *)(n))
|
||
|
#define __Pyx_DOCSTR(n) ((char *)(n))
|
||
|
#else
|
||
|
#define __Pyx_NAMESTR(n) (n)
|
||
|
#define __Pyx_DOCSTR(n) (n)
|
||
|
#endif
|
||
|
#ifdef __cplusplus
|
||
|
#define __PYX_EXTERN_C extern "C"
|
||
|
#else
|
||
|
#define __PYX_EXTERN_C extern
|
||
|
#endif
|
||
|
#include <math.h>
|
||
|
#define __PYX_HAVE_API__h5py__h5e
|
||
|
#include "stdlib.h"
|
||
|
#include "string.h"
|
||
|
#include "time.h"
|
||
|
#include "unistd.h"
|
||
|
#include "stdint.h"
|
||
|
#include "compat.h"
|
||
|
#include "lzf_filter.h"
|
||
|
#include "hdf5.h"
|
||
|
|
||
|
#ifdef __GNUC__
|
||
|
#define INLINE __inline__
|
||
|
#elif _WIN32
|
||
|
#define INLINE __inline
|
||
|
#else
|
||
|
#define INLINE
|
||
|
#endif
|
||
|
|
||
|
typedef struct {PyObject **p; char *s; const long n; const char* encoding; const char is_unicode; const char is_str; const char intern; } __Pyx_StringTabEntry; /*proto*/
|
||
|
|
||
|
|
||
|
/* Type Conversion Predeclarations */
|
||
|
|
||
|
#if PY_MAJOR_VERSION < 3
|
||
|
#define __Pyx_PyBytes_FromString PyString_FromString
|
||
|
#define __Pyx_PyBytes_FromStringAndSize PyString_FromStringAndSize
|
||
|
#define __Pyx_PyBytes_AsString PyString_AsString
|
||
|
#else
|
||
|
#define __Pyx_PyBytes_FromString PyBytes_FromString
|
||
|
#define __Pyx_PyBytes_FromStringAndSize PyBytes_FromStringAndSize
|
||
|
#define __Pyx_PyBytes_AsString PyBytes_AsString
|
||
|
#endif
|
||
|
|
||
|
#define __Pyx_PyBytes_FromUString(s) __Pyx_PyBytes_FromString((char*)s)
|
||
|
#define __Pyx_PyBytes_AsUString(s) ((unsigned char*) __Pyx_PyBytes_AsString(s))
|
||
|
|
||
|
#define __Pyx_PyBool_FromLong(b) ((b) ? (Py_INCREF(Py_True), Py_True) : (Py_INCREF(Py_False), Py_False))
|
||
|
static INLINE int __Pyx_PyObject_IsTrue(PyObject*);
|
||
|
static INLINE PyObject* __Pyx_PyNumber_Int(PyObject* x);
|
||
|
|
||
|
#if !defined(T_PYSSIZET)
|
||
|
#if PY_VERSION_HEX < 0x02050000
|
||
|
#define T_PYSSIZET T_INT
|
||
|
#elif !defined(T_LONGLONG)
|
||
|
#define T_PYSSIZET \
|
||
|
((sizeof(Py_ssize_t) == sizeof(int)) ? T_INT : \
|
||
|
((sizeof(Py_ssize_t) == sizeof(long)) ? T_LONG : -1))
|
||
|
#else
|
||
|
#define T_PYSSIZET \
|
||
|
((sizeof(Py_ssize_t) == sizeof(int)) ? T_INT : \
|
||
|
((sizeof(Py_ssize_t) == sizeof(long)) ? T_LONG : \
|
||
|
((sizeof(Py_ssize_t) == sizeof(PY_LONG_LONG)) ? T_LONGLONG : -1)))
|
||
|
#endif
|
||
|
#endif
|
||
|
|
||
|
|
||
|
#if !defined(T_ULONGLONG)
|
||
|
#define __Pyx_T_UNSIGNED_INT(x) \
|
||
|
((sizeof(x) == sizeof(unsigned char)) ? T_UBYTE : \
|
||
|
((sizeof(x) == sizeof(unsigned short)) ? T_USHORT : \
|
||
|
((sizeof(x) == sizeof(unsigned int)) ? T_UINT : \
|
||
|
((sizeof(x) == sizeof(unsigned long)) ? T_ULONG : -1))))
|
||
|
#else
|
||
|
#define __Pyx_T_UNSIGNED_INT(x) \
|
||
|
((sizeof(x) == sizeof(unsigned char)) ? T_UBYTE : \
|
||
|
((sizeof(x) == sizeof(unsigned short)) ? T_USHORT : \
|
||
|
((sizeof(x) == sizeof(unsigned int)) ? T_UINT : \
|
||
|
((sizeof(x) == sizeof(unsigned long)) ? T_ULONG : \
|
||
|
((sizeof(x) == sizeof(unsigned PY_LONG_LONG)) ? T_ULONGLONG : -1)))))
|
||
|
#endif
|
||
|
#if !defined(T_LONGLONG)
|
||
|
#define __Pyx_T_SIGNED_INT(x) \
|
||
|
((sizeof(x) == sizeof(char)) ? T_BYTE : \
|
||
|
((sizeof(x) == sizeof(short)) ? T_SHORT : \
|
||
|
((sizeof(x) == sizeof(int)) ? T_INT : \
|
||
|
((sizeof(x) == sizeof(long)) ? T_LONG : -1))))
|
||
|
#else
|
||
|
#define __Pyx_T_SIGNED_INT(x) \
|
||
|
((sizeof(x) == sizeof(char)) ? T_BYTE : \
|
||
|
((sizeof(x) == sizeof(short)) ? T_SHORT : \
|
||
|
((sizeof(x) == sizeof(int)) ? T_INT : \
|
||
|
((sizeof(x) == sizeof(long)) ? T_LONG : \
|
||
|
((sizeof(x) == sizeof(PY_LONG_LONG)) ? T_LONGLONG : -1)))))
|
||
|
#endif
|
||
|
|
||
|
#define __Pyx_T_FLOATING(x) \
|
||
|
((sizeof(x) == sizeof(float)) ? T_FLOAT : \
|
||
|
((sizeof(x) == sizeof(double)) ? T_DOUBLE : -1))
|
||
|
|
||
|
#if !defined(T_SIZET)
|
||
|
#if !defined(T_ULONGLONG)
|
||
|
#define T_SIZET \
|
||
|
((sizeof(size_t) == sizeof(unsigned int)) ? T_UINT : \
|
||
|
((sizeof(size_t) == sizeof(unsigned long)) ? T_ULONG : -1))
|
||
|
#else
|
||
|
#define T_SIZET \
|
||
|
((sizeof(size_t) == sizeof(unsigned int)) ? T_UINT : \
|
||
|
((sizeof(size_t) == sizeof(unsigned long)) ? T_ULONG : \
|
||
|
((sizeof(size_t) == sizeof(unsigned PY_LONG_LONG)) ? T_ULONGLONG : -1)))
|
||
|
#endif
|
||
|
#endif
|
||
|
|
||
|
static INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject*);
|
||
|
static INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t);
|
||
|
static INLINE size_t __Pyx_PyInt_AsSize_t(PyObject*);
|
||
|
|
||
|
#define __pyx_PyFloat_AsDouble(x) (PyFloat_CheckExact(x) ? PyFloat_AS_DOUBLE(x) : PyFloat_AsDouble(x))
|
||
|
|
||
|
|
||
|
#ifdef __GNUC__
|
||
|
/* Test for GCC > 2.95 */
|
||
|
#if __GNUC__ > 2 || (__GNUC__ == 2 && (__GNUC_MINOR__ > 95))
|
||
|
#define likely(x) __builtin_expect(!!(x), 1)
|
||
|
#define unlikely(x) __builtin_expect(!!(x), 0)
|
||
|
#else /* __GNUC__ > 2 ... */
|
||
|
#define likely(x) (x)
|
||
|
#define unlikely(x) (x)
|
||
|
#endif /* __GNUC__ > 2 ... */
|
||
|
#else /* __GNUC__ */
|
||
|
#define likely(x) (x)
|
||
|
#define unlikely(x) (x)
|
||
|
#endif /* __GNUC__ */
|
||
|
|
||
|
static PyObject *__pyx_m;
|
||
|
static PyObject *__pyx_b;
|
||
|
static PyObject *__pyx_empty_tuple;
|
||
|
static PyObject *__pyx_empty_bytes;
|
||
|
static int __pyx_lineno;
|
||
|
static int __pyx_clineno = 0;
|
||
|
static const char * __pyx_cfilenm= __FILE__;
|
||
|
static const char *__pyx_filename;
|
||
|
static const char **__pyx_f;
|
||
|
|
||
|
|
||
|
/* Type declarations */
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pxd":33
|
||
|
* # Safe to call more than once.
|
||
|
* cpdef object register_thread()
|
||
|
* cpdef object unregister_thread(HDF5ErrorHandler handler=*) # <<<<<<<<<<<<<<
|
||
|
*
|
||
|
* cdef extern from "hdf5.h":
|
||
|
*/
|
||
|
|
||
|
struct __pyx_opt_args_4h5py_3h5e_unregister_thread {
|
||
|
int __pyx_n;
|
||
|
struct __pyx_obj_4h5py_3h5e_HDF5ErrorHandler *handler;
|
||
|
};
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pxd":249
|
||
|
* herr_t H5Ewalk(H5E_direction_t direction, H5E_walk_t func, void* client_data)
|
||
|
*
|
||
|
* ctypedef struct err_cookie: # <<<<<<<<<<<<<<
|
||
|
* H5E_auto_t func
|
||
|
* void* data
|
||
|
*/
|
||
|
|
||
|
typedef struct {
|
||
|
H5E_auto_t func;
|
||
|
void *data;
|
||
|
} __pyx_t_4h5py_3h5e_err_cookie;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5.pxd":15
|
||
|
* include "defs.pxd"
|
||
|
*
|
||
|
* cdef class H5PYConfig: # <<<<<<<<<<<<<<
|
||
|
*
|
||
|
* cdef object _r_name
|
||
|
*/
|
||
|
|
||
|
struct __pyx_obj_4h5py_2h5_H5PYConfig {
|
||
|
PyObject_HEAD
|
||
|
PyObject *_r_name;
|
||
|
PyObject *_i_name;
|
||
|
PyObject *_f_name;
|
||
|
PyObject *_t_name;
|
||
|
PyObject *API_16;
|
||
|
PyObject *API_18;
|
||
|
PyObject *DEBUG;
|
||
|
PyObject *THREADS;
|
||
|
};
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5.pxd":35
|
||
|
* cdef object _hash
|
||
|
*
|
||
|
* cdef class SmartStruct: # <<<<<<<<<<<<<<
|
||
|
* cdef object __weakref__
|
||
|
* cdef object _title
|
||
|
*/
|
||
|
|
||
|
struct __pyx_obj_4h5py_2h5_SmartStruct {
|
||
|
PyObject_HEAD
|
||
|
PyObject *__weakref__;
|
||
|
PyObject *_title;
|
||
|
};
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":254
|
||
|
* # === Error stack inspection ==================================================
|
||
|
*
|
||
|
* cdef class ErrorStackElement(SmartStruct): # <<<<<<<<<<<<<<
|
||
|
*
|
||
|
* """
|
||
|
*/
|
||
|
|
||
|
struct __pyx_obj_4h5py_3h5e_ErrorStackElement {
|
||
|
struct __pyx_obj_4h5py_2h5_SmartStruct __pyx_base;
|
||
|
H5E_error_t e;
|
||
|
};
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5.pxd":28
|
||
|
* cpdef H5PYConfig get_config()
|
||
|
*
|
||
|
* cdef class ObjectID: # <<<<<<<<<<<<<<
|
||
|
*
|
||
|
* cdef object __weakref__
|
||
|
*/
|
||
|
|
||
|
struct __pyx_obj_4h5py_2h5_ObjectID {
|
||
|
PyObject_HEAD
|
||
|
PyObject *__weakref__;
|
||
|
hid_t id;
|
||
|
int _locked;
|
||
|
PyObject *_hash;
|
||
|
};
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pxd":20
|
||
|
* include "defs.pxd"
|
||
|
*
|
||
|
* cdef class HDF5ErrorHandler: # <<<<<<<<<<<<<<
|
||
|
*
|
||
|
* """
|
||
|
*/
|
||
|
|
||
|
struct __pyx_obj_4h5py_3h5e_HDF5ErrorHandler {
|
||
|
PyObject_HEAD
|
||
|
void *__pyx_auto;
|
||
|
void *data;
|
||
|
};
|
||
|
|
||
|
#ifndef CYTHON_REFNANNY
|
||
|
#define CYTHON_REFNANNY 0
|
||
|
#endif
|
||
|
|
||
|
#if CYTHON_REFNANNY
|
||
|
typedef struct {
|
||
|
void (*INCREF)(void*, PyObject*, int);
|
||
|
void (*DECREF)(void*, PyObject*, int);
|
||
|
void (*GOTREF)(void*, PyObject*, int);
|
||
|
void (*GIVEREF)(void*, PyObject*, int);
|
||
|
void* (*SetupContext)(const char*, int, const char*);
|
||
|
void (*FinishContext)(void**);
|
||
|
} __Pyx_RefNannyAPIStruct;
|
||
|
static __Pyx_RefNannyAPIStruct *__Pyx_RefNanny = NULL;
|
||
|
static __Pyx_RefNannyAPIStruct * __Pyx_RefNannyImportAPI(const char *modname) {
|
||
|
PyObject *m = NULL, *p = NULL;
|
||
|
void *r = NULL;
|
||
|
m = PyImport_ImportModule((char *)modname);
|
||
|
if (!m) goto end;
|
||
|
p = PyObject_GetAttrString(m, (char *)"RefNannyAPI");
|
||
|
if (!p) goto end;
|
||
|
r = PyLong_AsVoidPtr(p);
|
||
|
end:
|
||
|
Py_XDECREF(p);
|
||
|
Py_XDECREF(m);
|
||
|
return (__Pyx_RefNannyAPIStruct *)r;
|
||
|
}
|
||
|
#define __Pyx_RefNannySetupContext(name) void *__pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__)
|
||
|
#define __Pyx_RefNannyFinishContext() __Pyx_RefNanny->FinishContext(&__pyx_refnanny)
|
||
|
#define __Pyx_INCREF(r) __Pyx_RefNanny->INCREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
|
||
|
#define __Pyx_DECREF(r) __Pyx_RefNanny->DECREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
|
||
|
#define __Pyx_GOTREF(r) __Pyx_RefNanny->GOTREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
|
||
|
#define __Pyx_GIVEREF(r) __Pyx_RefNanny->GIVEREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
|
||
|
#define __Pyx_XDECREF(r) do { if((r) != NULL) {__Pyx_DECREF(r);} } while(0)
|
||
|
#else
|
||
|
#define __Pyx_RefNannySetupContext(name)
|
||
|
#define __Pyx_RefNannyFinishContext()
|
||
|
#define __Pyx_INCREF(r) Py_INCREF(r)
|
||
|
#define __Pyx_DECREF(r) Py_DECREF(r)
|
||
|
#define __Pyx_GOTREF(r)
|
||
|
#define __Pyx_GIVEREF(r)
|
||
|
#define __Pyx_XDECREF(r) Py_XDECREF(r)
|
||
|
#endif /* CYTHON_REFNANNY */
|
||
|
#define __Pyx_XGIVEREF(r) do { if((r) != NULL) {__Pyx_GIVEREF(r);} } while(0)
|
||
|
#define __Pyx_XGOTREF(r) do { if((r) != NULL) {__Pyx_GOTREF(r);} } while(0)
|
||
|
|
||
|
static void __Pyx_RaiseDoubleKeywordsError(
|
||
|
const char* func_name, PyObject* kw_name); /*proto*/
|
||
|
|
||
|
static void __Pyx_RaiseArgtupleInvalid(const char* func_name, int exact,
|
||
|
Py_ssize_t num_min, Py_ssize_t num_max, Py_ssize_t num_found); /*proto*/
|
||
|
|
||
|
static int __Pyx_ParseOptionalKeywords(PyObject *kwds, PyObject **argnames[], PyObject *kwds2, PyObject *values[], Py_ssize_t num_pos_args, const char* function_name); /*proto*/
|
||
|
|
||
|
|
||
|
static INLINE PyObject *__Pyx_GetItemInt_Generic(PyObject *o, PyObject* j) {
|
||
|
PyObject *r;
|
||
|
if (!j) return NULL;
|
||
|
r = PyObject_GetItem(o, j);
|
||
|
Py_DECREF(j);
|
||
|
return r;
|
||
|
}
|
||
|
|
||
|
|
||
|
#define __Pyx_GetItemInt_List(o, i, size, to_py_func) ((size <= sizeof(Py_ssize_t)) ? \
|
||
|
__Pyx_GetItemInt_List_Fast(o, i, size <= sizeof(long)) : \
|
||
|
__Pyx_GetItemInt_Generic(o, to_py_func(i)))
|
||
|
|
||
|
static INLINE PyObject *__Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_t i, int fits_long) {
|
||
|
if (likely(o != Py_None)) {
|
||
|
if (likely((0 <= i) & (i < PyList_GET_SIZE(o)))) {
|
||
|
PyObject *r = PyList_GET_ITEM(o, i);
|
||
|
Py_INCREF(r);
|
||
|
return r;
|
||
|
}
|
||
|
else if ((-PyList_GET_SIZE(o) <= i) & (i < 0)) {
|
||
|
PyObject *r = PyList_GET_ITEM(o, PyList_GET_SIZE(o) + i);
|
||
|
Py_INCREF(r);
|
||
|
return r;
|
||
|
}
|
||
|
}
|
||
|
return __Pyx_GetItemInt_Generic(o, fits_long ? PyInt_FromLong(i) : PyLong_FromLongLong(i));
|
||
|
}
|
||
|
|
||
|
#define __Pyx_GetItemInt_Tuple(o, i, size, to_py_func) ((size <= sizeof(Py_ssize_t)) ? \
|
||
|
__Pyx_GetItemInt_Tuple_Fast(o, i, size <= sizeof(long)) : \
|
||
|
__Pyx_GetItemInt_Generic(o, to_py_func(i)))
|
||
|
|
||
|
static INLINE PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize_t i, int fits_long) {
|
||
|
if (likely(o != Py_None)) {
|
||
|
if (likely((0 <= i) & (i < PyTuple_GET_SIZE(o)))) {
|
||
|
PyObject *r = PyTuple_GET_ITEM(o, i);
|
||
|
Py_INCREF(r);
|
||
|
return r;
|
||
|
}
|
||
|
else if ((-PyTuple_GET_SIZE(o) <= i) & (i < 0)) {
|
||
|
PyObject *r = PyTuple_GET_ITEM(o, PyTuple_GET_SIZE(o) + i);
|
||
|
Py_INCREF(r);
|
||
|
return r;
|
||
|
}
|
||
|
}
|
||
|
return __Pyx_GetItemInt_Generic(o, fits_long ? PyInt_FromLong(i) : PyLong_FromLongLong(i));
|
||
|
}
|
||
|
|
||
|
|
||
|
#define __Pyx_GetItemInt(o, i, size, to_py_func) ((size <= sizeof(Py_ssize_t)) ? \
|
||
|
__Pyx_GetItemInt_Fast(o, i, size <= sizeof(long)) : \
|
||
|
__Pyx_GetItemInt_Generic(o, to_py_func(i)))
|
||
|
|
||
|
static INLINE PyObject *__Pyx_GetItemInt_Fast(PyObject *o, Py_ssize_t i, int fits_long) {
|
||
|
PyObject *r;
|
||
|
if (PyList_CheckExact(o) && ((0 <= i) & (i < PyList_GET_SIZE(o)))) {
|
||
|
r = PyList_GET_ITEM(o, i);
|
||
|
Py_INCREF(r);
|
||
|
}
|
||
|
else if (PyTuple_CheckExact(o) && ((0 <= i) & (i < PyTuple_GET_SIZE(o)))) {
|
||
|
r = PyTuple_GET_ITEM(o, i);
|
||
|
Py_INCREF(r);
|
||
|
}
|
||
|
else if (Py_TYPE(o)->tp_as_sequence && Py_TYPE(o)->tp_as_sequence->sq_item && (likely(i >= 0))) {
|
||
|
r = PySequence_GetItem(o, i);
|
||
|
}
|
||
|
else {
|
||
|
r = __Pyx_GetItemInt_Generic(o, fits_long ? PyInt_FromLong(i) : PyLong_FromLongLong(i));
|
||
|
}
|
||
|
return r;
|
||
|
}
|
||
|
|
||
|
static INLINE void __Pyx_RaiseNeedMoreValuesError(Py_ssize_t index);
|
||
|
|
||
|
static INLINE void __Pyx_RaiseTooManyValuesError(void);
|
||
|
|
||
|
static PyObject *__Pyx_UnpackItem(PyObject *, Py_ssize_t index); /*proto*/
|
||
|
static int __Pyx_EndUnpack(PyObject *); /*proto*/
|
||
|
|
||
|
static INLINE PyObject* __Pyx_PyObject_Append(PyObject* L, PyObject* x) {
|
||
|
if (likely(PyList_CheckExact(L))) {
|
||
|
if (PyList_Append(L, x) < 0) return NULL;
|
||
|
Py_INCREF(Py_None);
|
||
|
return Py_None; /* this is just to have an accurate signature */
|
||
|
}
|
||
|
else {
|
||
|
PyObject *r, *m;
|
||
|
m = __Pyx_GetAttrString(L, "append");
|
||
|
if (!m) return NULL;
|
||
|
r = PyObject_CallFunctionObjArgs(m, x, NULL);
|
||
|
Py_DECREF(m);
|
||
|
return r;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
static INLINE int __Pyx_CheckKeywordStrings(PyObject *kwdict,
|
||
|
const char* function_name, int kw_allowed); /*proto*/
|
||
|
|
||
|
static int __Pyx_ArgTypeTest(PyObject *obj, PyTypeObject *type, int none_allowed,
|
||
|
const char *name, int exact); /*proto*/
|
||
|
|
||
|
static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list); /*proto*/
|
||
|
|
||
|
static PyObject *__Pyx_GetName(PyObject *dict, PyObject *name); /*proto*/
|
||
|
|
||
|
static PyObject *__Pyx_CreateClass(PyObject *bases, PyObject *dict, PyObject *name, const char *modname); /*proto*/
|
||
|
|
||
|
static INLINE void __Pyx_ErrRestore(PyObject *type, PyObject *value, PyObject *tb); /*proto*/
|
||
|
static INLINE void __Pyx_ErrFetch(PyObject **type, PyObject **value, PyObject **tb); /*proto*/
|
||
|
|
||
|
static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb); /*proto*/
|
||
|
|
||
|
static INLINE unsigned char __Pyx_PyInt_AsUnsignedChar(PyObject *);
|
||
|
|
||
|
static INLINE unsigned short __Pyx_PyInt_AsUnsignedShort(PyObject *);
|
||
|
|
||
|
static INLINE unsigned int __Pyx_PyInt_AsUnsignedInt(PyObject *);
|
||
|
|
||
|
static INLINE char __Pyx_PyInt_AsChar(PyObject *);
|
||
|
|
||
|
static INLINE short __Pyx_PyInt_AsShort(PyObject *);
|
||
|
|
||
|
static INLINE int __Pyx_PyInt_AsInt(PyObject *);
|
||
|
|
||
|
static INLINE signed char __Pyx_PyInt_AsSignedChar(PyObject *);
|
||
|
|
||
|
static INLINE signed short __Pyx_PyInt_AsSignedShort(PyObject *);
|
||
|
|
||
|
static INLINE signed int __Pyx_PyInt_AsSignedInt(PyObject *);
|
||
|
|
||
|
static INLINE unsigned long __Pyx_PyInt_AsUnsignedLong(PyObject *);
|
||
|
|
||
|
static INLINE unsigned PY_LONG_LONG __Pyx_PyInt_AsUnsignedLongLong(PyObject *);
|
||
|
|
||
|
static INLINE long __Pyx_PyInt_AsLong(PyObject *);
|
||
|
|
||
|
static INLINE PY_LONG_LONG __Pyx_PyInt_AsLongLong(PyObject *);
|
||
|
|
||
|
static INLINE signed long __Pyx_PyInt_AsSignedLong(PyObject *);
|
||
|
|
||
|
static INLINE signed PY_LONG_LONG __Pyx_PyInt_AsSignedLongLong(PyObject *);
|
||
|
|
||
|
static void __Pyx_WriteUnraisable(const char *name); /*proto*/
|
||
|
|
||
|
#ifndef __PYX_FORCE_INIT_THREADS
|
||
|
#if PY_VERSION_HEX < 0x02040200
|
||
|
#define __PYX_FORCE_INIT_THREADS 1
|
||
|
#else
|
||
|
#define __PYX_FORCE_INIT_THREADS 0
|
||
|
#endif
|
||
|
#endif
|
||
|
|
||
|
static int __Pyx_ExportFunction(const char *name, void (*f)(void), const char *sig); /*proto*/
|
||
|
|
||
|
static PyTypeObject *__Pyx_ImportType(const char *module_name, const char *class_name, long size); /*proto*/
|
||
|
|
||
|
static PyObject *__Pyx_ImportModule(const char *name); /*proto*/
|
||
|
|
||
|
static int __Pyx_ImportFunction(PyObject *module, const char *funcname, void (**f)(void), const char *sig); /*proto*/
|
||
|
|
||
|
static void __Pyx_AddTraceback(const char *funcname); /*proto*/
|
||
|
|
||
|
static int __Pyx_InitStrings(__Pyx_StringTabEntry *t); /*proto*/
|
||
|
/* Module declarations from python_ref */
|
||
|
|
||
|
/* Module declarations from python_exc */
|
||
|
|
||
|
/* Module declarations from h5py.h5 */
|
||
|
|
||
|
static PyTypeObject *__pyx_ptype_4h5py_2h5_H5PYConfig = 0;
|
||
|
static PyTypeObject *__pyx_ptype_4h5py_2h5_ObjectID = 0;
|
||
|
static PyTypeObject *__pyx_ptype_4h5py_2h5_SmartStruct = 0;
|
||
|
static struct __pyx_obj_4h5py_2h5_H5PYConfig *(*__pyx_f_4h5py_2h5_get_config)(int __pyx_skip_dispatch); /*proto*/
|
||
|
static int (*__pyx_f_4h5py_2h5_init_hdf5)(void); /*proto*/
|
||
|
/* Module declarations from h5py.h5e */
|
||
|
|
||
|
static PyTypeObject *__pyx_ptype_4h5py_3h5e_HDF5ErrorHandler = 0;
|
||
|
static PyTypeObject *__pyx_ptype_4h5py_3h5e_ErrorStackElement = 0;
|
||
|
static PyObject *__pyx_v_4h5py_3h5e__major_table = 0;
|
||
|
static PyObject *__pyx_v_4h5py_3h5e__minor_table = 0;
|
||
|
static PyObject *__pyx_v_4h5py_3h5e__exact_table = 0;
|
||
|
static PyObject *__pyx_f_4h5py_3h5e_register_thread(int __pyx_skip_dispatch); /*proto*/
|
||
|
static PyObject *__pyx_f_4h5py_3h5e_unregister_thread(int __pyx_skip_dispatch, struct __pyx_opt_args_4h5py_3h5e_unregister_thread *__pyx_optional_args); /*proto*/
|
||
|
static __pyx_t_4h5py_3h5e_err_cookie __pyx_f_4h5py_3h5e_disable_errors(void); /*proto*/
|
||
|
static void __pyx_f_4h5py_3h5e_enable_errors(__pyx_t_4h5py_3h5e_err_cookie); /*proto*/
|
||
|
static herr_t __pyx_f_4h5py_3h5e_walk_cb(int, H5E_error_t *, void *); /*proto*/
|
||
|
static herr_t __pyx_f_4h5py_3h5e_err_callback(void *); /*proto*/
|
||
|
#define __Pyx_MODULE_NAME "h5py.h5e"
|
||
|
int __pyx_module_is_main_h5py__h5e = 0;
|
||
|
|
||
|
/* Implementation of h5py.h5e */
|
||
|
static PyObject *__pyx_builtin_Exception;
|
||
|
static PyObject *__pyx_builtin_IOError;
|
||
|
static PyObject *__pyx_builtin_ValueError;
|
||
|
static PyObject *__pyx_builtin_NotImplementedError;
|
||
|
static PyObject *__pyx_builtin_KeyError;
|
||
|
static PyObject *__pyx_builtin_TypeError;
|
||
|
static PyObject *__pyx_builtin_enumerate;
|
||
|
static PyObject *__pyx_builtin_RuntimeError;
|
||
|
static char __pyx_k_1[] = "%s (%s: %s)";
|
||
|
static char __pyx_k_2[] = "\n";
|
||
|
static char __pyx_k_3[] = "No HDF5 error recorded";
|
||
|
static char __pyx_k_4[] = "HDF5 Error Stack:";
|
||
|
static char __pyx_k_5[] = "\n %d: \"%s\" at %s";
|
||
|
static char __pyx_k_6[] = "\n %s :: %s";
|
||
|
static char __pyx_k_7[] = "No HDF5 exception information found";
|
||
|
static char __pyx_k_8[] = "Failed to retrieve HDF5 error handler";
|
||
|
static char __pyx_k_9[] = "Failed to register HDF5 exception callback";
|
||
|
static char __pyx_k_10[] = "Failed to unregister HDF5 exception callback";
|
||
|
static char __pyx_k_11[] = "Cant' re-enable exception support";
|
||
|
static char __pyx_k_12[] = " Name of HDF5 C function in which error occurred ";
|
||
|
static char __pyx_k_13[] = " Brief description of the error ";
|
||
|
static char __pyx_k_14[] = " A 2-tuple of error codes (major, minor) ";
|
||
|
static char __pyx_k_15[] = " A 2-tuple of strings (major description, minor description) ";
|
||
|
static char __pyx_k_16[] = "\n Implements HDF5 error support and Python exception translation.\n";
|
||
|
static char __pyx_k_17[] = " Base class for internal HDF5 library exceptions.\n ";
|
||
|
static char __pyx_k_18[] = " H5E_ARGS ";
|
||
|
static char __pyx_k_19[] = " H5E_RESOURCE ";
|
||
|
static char __pyx_k_20[] = " H5E_INTERNAL ";
|
||
|
static char __pyx_k_21[] = " H5E_FILE ";
|
||
|
static char __pyx_k_22[] = " H5E_IO ";
|
||
|
static char __pyx_k_23[] = " H5E_FUNC ";
|
||
|
static char __pyx_k_24[] = " H5E_ATOM ";
|
||
|
static char __pyx_k_25[] = " H5E_CACHE ";
|
||
|
static char __pyx_k_26[] = " H5E_BTREE ";
|
||
|
static char __pyx_k_27[] = " H5E_SYM ";
|
||
|
static char __pyx_k_28[] = " H5E_HEAP ";
|
||
|
static char __pyx_k_29[] = " H5E_OHDR ";
|
||
|
static char __pyx_k_30[] = " H5E_DATATYPE ";
|
||
|
static char __pyx_k_31[] = " H5E_DATASPACE ";
|
||
|
static char __pyx_k_32[] = " H5E_DATASET ";
|
||
|
static char __pyx_k_33[] = " H5E_STORAGE ";
|
||
|
static char __pyx_k_34[] = " H5E_PLIST ";
|
||
|
static char __pyx_k_35[] = " H5E_ATTR ";
|
||
|
static char __pyx_k_36[] = " H5E_PLINE ";
|
||
|
static char __pyx_k_37[] = " H5E_EFL ";
|
||
|
static char __pyx_k_38[] = " H5E_REFERENCE ";
|
||
|
static char __pyx_k_39[] = " H5E_VFL ";
|
||
|
static char __pyx_k_40[] = " H5E_TST ";
|
||
|
static char __pyx_k_41[] = " H5E_RS ";
|
||
|
static char __pyx_k_42[] = " H5E_ERROR ";
|
||
|
static char __pyx_k_43[] = " H5E_SLIST ";
|
||
|
static char __pyx_k_44[] = "\n Represents the HDF5 error stack\n ";
|
||
|
static char __pyx_k__e[] = "e";
|
||
|
static char __pyx_k__get[] = "get";
|
||
|
static char __pyx_k__auto[] = "auto";
|
||
|
static char __pyx_k__code[] = "code";
|
||
|
static char __pyx_k__data[] = "data";
|
||
|
static char __pyx_k__desc[] = "desc";
|
||
|
static char __pyx_k__func[] = "func";
|
||
|
static char __pyx_k__self[] = "self";
|
||
|
static char __pyx_k___stub[] = "_stub";
|
||
|
static char __pyx_k__H5Error[] = "H5Error";
|
||
|
static char __pyx_k__IOError[] = "IOError";
|
||
|
static char __pyx_k__RSError[] = "RSError";
|
||
|
static char __pyx_k____str__[] = "__str__";
|
||
|
static char __pyx_k__handler[] = "handler";
|
||
|
static char __pyx_k__maj_num[] = "maj_num";
|
||
|
static char __pyx_k__min_num[] = "min_num";
|
||
|
static char __pyx_k__KeyError[] = "KeyError";
|
||
|
static char __pyx_k__RefError[] = "RefError";
|
||
|
static char __pyx_k__TSTError[] = "TSTError";
|
||
|
static char __pyx_k____init__[] = "__init__";
|
||
|
static char __pyx_k____main__[] = "__main__";
|
||
|
static char __pyx_k___verbose[] = "_verbose";
|
||
|
static char __pyx_k__ArgsError[] = "ArgsError";
|
||
|
static char __pyx_k__AtomError[] = "AtomError";
|
||
|
static char __pyx_k__AttrError[] = "AttrError";
|
||
|
static char __pyx_k__Exception[] = "Exception";
|
||
|
static char __pyx_k__FileError[] = "FileError";
|
||
|
static char __pyx_k__FuncError[] = "FuncError";
|
||
|
static char __pyx_k__HeapError[] = "HeapError";
|
||
|
static char __pyx_k__TypeError[] = "TypeError";
|
||
|
static char __pyx_k__code_desc[] = "code_desc";
|
||
|
static char __pyx_k__enumerate[] = "enumerate";
|
||
|
static char __pyx_k__func_name[] = "func_name";
|
||
|
static char __pyx_k__BtreeError[] = "BtreeError";
|
||
|
static char __pyx_k__CacheError[] = "CacheError";
|
||
|
static char __pyx_k__ErrorError[] = "ErrorError";
|
||
|
static char __pyx_k__ErrorStack[] = "ErrorStack";
|
||
|
static char __pyx_k__ValueError[] = "ValueError";
|
||
|
static char __pyx_k__capitalize[] = "capitalize";
|
||
|
static char __pyx_k__FilterError[] = "FilterError";
|
||
|
static char __pyx_k__SymbolError[] = "SymbolError";
|
||
|
static char __pyx_k__get_exc_msg[] = "get_exc_msg";
|
||
|
static char __pyx_k__DatasetError[] = "DatasetError";
|
||
|
static char __pyx_k__RuntimeError[] = "RuntimeError";
|
||
|
static char __pyx_k__StorageError[] = "StorageError";
|
||
|
static char __pyx_k__DatatypeError[] = "DatatypeError";
|
||
|
static char __pyx_k__FileListError[] = "FileListError";
|
||
|
static char __pyx_k__InternalError[] = "InternalError";
|
||
|
static char __pyx_k__PropertyError[] = "PropertyError";
|
||
|
static char __pyx_k__ResourceError[] = "ResourceError";
|
||
|
static char __pyx_k__SkipListError[] = "SkipListError";
|
||
|
static char __pyx_k__DataspaceError[] = "DataspaceError";
|
||
|
static char __pyx_k__generate_class[] = "generate_class";
|
||
|
static char __pyx_k__LowLevelIOError[] = "LowLevelIOError";
|
||
|
static char __pyx_k__NullErrorHandler[] = "NullErrorHandler";
|
||
|
static char __pyx_k__VirtualFileError[] = "VirtualFileError";
|
||
|
static char __pyx_k__ObjectHeaderError[] = "ObjectHeaderError";
|
||
|
static char __pyx_k__NotImplementedError[] = "NotImplementedError";
|
||
|
static PyObject *__pyx_kp_s_1;
|
||
|
static PyObject *__pyx_kp_s_10;
|
||
|
static PyObject *__pyx_kp_s_11;
|
||
|
static PyObject *__pyx_kp_s_17;
|
||
|
static PyObject *__pyx_kp_s_18;
|
||
|
static PyObject *__pyx_kp_s_19;
|
||
|
static PyObject *__pyx_kp_s_2;
|
||
|
static PyObject *__pyx_kp_s_20;
|
||
|
static PyObject *__pyx_kp_s_21;
|
||
|
static PyObject *__pyx_kp_s_22;
|
||
|
static PyObject *__pyx_kp_s_23;
|
||
|
static PyObject *__pyx_kp_s_24;
|
||
|
static PyObject *__pyx_kp_s_25;
|
||
|
static PyObject *__pyx_kp_s_26;
|
||
|
static PyObject *__pyx_kp_s_27;
|
||
|
static PyObject *__pyx_kp_s_28;
|
||
|
static PyObject *__pyx_kp_s_29;
|
||
|
static PyObject *__pyx_kp_s_3;
|
||
|
static PyObject *__pyx_kp_s_30;
|
||
|
static PyObject *__pyx_kp_s_31;
|
||
|
static PyObject *__pyx_kp_s_32;
|
||
|
static PyObject *__pyx_kp_s_33;
|
||
|
static PyObject *__pyx_kp_s_34;
|
||
|
static PyObject *__pyx_kp_s_35;
|
||
|
static PyObject *__pyx_kp_s_36;
|
||
|
static PyObject *__pyx_kp_s_37;
|
||
|
static PyObject *__pyx_kp_s_38;
|
||
|
static PyObject *__pyx_kp_s_39;
|
||
|
static PyObject *__pyx_kp_s_4;
|
||
|
static PyObject *__pyx_kp_s_40;
|
||
|
static PyObject *__pyx_kp_s_41;
|
||
|
static PyObject *__pyx_kp_s_42;
|
||
|
static PyObject *__pyx_kp_s_43;
|
||
|
static PyObject *__pyx_kp_s_44;
|
||
|
static PyObject *__pyx_kp_s_5;
|
||
|
static PyObject *__pyx_kp_s_6;
|
||
|
static PyObject *__pyx_kp_s_7;
|
||
|
static PyObject *__pyx_kp_s_8;
|
||
|
static PyObject *__pyx_kp_s_9;
|
||
|
static PyObject *__pyx_n_s__ArgsError;
|
||
|
static PyObject *__pyx_n_s__AtomError;
|
||
|
static PyObject *__pyx_n_s__AttrError;
|
||
|
static PyObject *__pyx_n_s__BtreeError;
|
||
|
static PyObject *__pyx_n_s__CacheError;
|
||
|
static PyObject *__pyx_n_s__DatasetError;
|
||
|
static PyObject *__pyx_n_s__DataspaceError;
|
||
|
static PyObject *__pyx_n_s__DatatypeError;
|
||
|
static PyObject *__pyx_n_s__ErrorError;
|
||
|
static PyObject *__pyx_n_s__ErrorStack;
|
||
|
static PyObject *__pyx_n_s__Exception;
|
||
|
static PyObject *__pyx_n_s__FileError;
|
||
|
static PyObject *__pyx_n_s__FileListError;
|
||
|
static PyObject *__pyx_n_s__FilterError;
|
||
|
static PyObject *__pyx_n_s__FuncError;
|
||
|
static PyObject *__pyx_n_s__H5Error;
|
||
|
static PyObject *__pyx_n_s__HeapError;
|
||
|
static PyObject *__pyx_n_s__IOError;
|
||
|
static PyObject *__pyx_n_s__InternalError;
|
||
|
static PyObject *__pyx_n_s__KeyError;
|
||
|
static PyObject *__pyx_n_s__LowLevelIOError;
|
||
|
static PyObject *__pyx_n_s__NotImplementedError;
|
||
|
static PyObject *__pyx_n_s__NullErrorHandler;
|
||
|
static PyObject *__pyx_n_s__ObjectHeaderError;
|
||
|
static PyObject *__pyx_n_s__PropertyError;
|
||
|
static PyObject *__pyx_n_s__RSError;
|
||
|
static PyObject *__pyx_n_s__RefError;
|
||
|
static PyObject *__pyx_n_s__ResourceError;
|
||
|
static PyObject *__pyx_n_s__RuntimeError;
|
||
|
static PyObject *__pyx_n_s__SkipListError;
|
||
|
static PyObject *__pyx_n_s__StorageError;
|
||
|
static PyObject *__pyx_n_s__SymbolError;
|
||
|
static PyObject *__pyx_n_s__TSTError;
|
||
|
static PyObject *__pyx_n_s__TypeError;
|
||
|
static PyObject *__pyx_n_s__ValueError;
|
||
|
static PyObject *__pyx_n_s__VirtualFileError;
|
||
|
static PyObject *__pyx_n_s____init__;
|
||
|
static PyObject *__pyx_n_s____main__;
|
||
|
static PyObject *__pyx_n_s____str__;
|
||
|
static PyObject *__pyx_n_s___stub;
|
||
|
static PyObject *__pyx_n_s___verbose;
|
||
|
static PyObject *__pyx_n_s__auto;
|
||
|
static PyObject *__pyx_n_s__capitalize;
|
||
|
static PyObject *__pyx_n_s__code;
|
||
|
static PyObject *__pyx_n_s__code_desc;
|
||
|
static PyObject *__pyx_n_s__data;
|
||
|
static PyObject *__pyx_n_s__desc;
|
||
|
static PyObject *__pyx_n_s__e;
|
||
|
static PyObject *__pyx_n_s__enumerate;
|
||
|
static PyObject *__pyx_n_s__func;
|
||
|
static PyObject *__pyx_n_s__func_name;
|
||
|
static PyObject *__pyx_n_s__generate_class;
|
||
|
static PyObject *__pyx_n_s__get;
|
||
|
static PyObject *__pyx_n_s__get_exc_msg;
|
||
|
static PyObject *__pyx_n_s__handler;
|
||
|
static PyObject *__pyx_n_s__maj_num;
|
||
|
static PyObject *__pyx_n_s__min_num;
|
||
|
static PyObject *__pyx_n_s__self;
|
||
|
static PyObject *__pyx_int_0;
|
||
|
static PyObject *__pyx_int_1;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":264
|
||
|
* property func_name:
|
||
|
* """ Name of HDF5 C function in which error occurred """
|
||
|
* def __get__(self): # <<<<<<<<<<<<<<
|
||
|
* return self.e.func_name
|
||
|
* property desc:
|
||
|
*/
|
||
|
|
||
|
static PyObject *__pyx_pf_4h5py_3h5e_17ErrorStackElement_9func_name___get__(PyObject *__pyx_v_self); /*proto*/
|
||
|
static PyObject *__pyx_pf_4h5py_3h5e_17ErrorStackElement_9func_name___get__(PyObject *__pyx_v_self) {
|
||
|
PyObject *__pyx_r = NULL;
|
||
|
PyObject *__pyx_t_1 = NULL;
|
||
|
__Pyx_RefNannySetupContext("__get__");
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":265
|
||
|
* """ Name of HDF5 C function in which error occurred """
|
||
|
* def __get__(self):
|
||
|
* return self.e.func_name # <<<<<<<<<<<<<<
|
||
|
* property desc:
|
||
|
* """ Brief description of the error """
|
||
|
*/
|
||
|
__Pyx_XDECREF(__pyx_r);
|
||
|
__pyx_t_1 = __Pyx_PyBytes_FromString(((struct __pyx_obj_4h5py_3h5e_ErrorStackElement *)__pyx_v_self)->e.func_name); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 265; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_1);
|
||
|
__pyx_r = __pyx_t_1;
|
||
|
__pyx_t_1 = 0;
|
||
|
goto __pyx_L0;
|
||
|
|
||
|
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
|
||
|
goto __pyx_L0;
|
||
|
__pyx_L1_error:;
|
||
|
__Pyx_XDECREF(__pyx_t_1);
|
||
|
__Pyx_AddTraceback("h5py.h5e.ErrorStackElement.func_name.__get__");
|
||
|
__pyx_r = NULL;
|
||
|
__pyx_L0:;
|
||
|
__Pyx_XGIVEREF(__pyx_r);
|
||
|
__Pyx_RefNannyFinishContext();
|
||
|
return __pyx_r;
|
||
|
}
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":268
|
||
|
* property desc:
|
||
|
* """ Brief description of the error """
|
||
|
* def __get__(self): # <<<<<<<<<<<<<<
|
||
|
* s = self.e.desc
|
||
|
* return s.capitalize()
|
||
|
*/
|
||
|
|
||
|
static PyObject *__pyx_pf_4h5py_3h5e_17ErrorStackElement_4desc___get__(PyObject *__pyx_v_self); /*proto*/
|
||
|
static PyObject *__pyx_pf_4h5py_3h5e_17ErrorStackElement_4desc___get__(PyObject *__pyx_v_self) {
|
||
|
PyObject *__pyx_v_s;
|
||
|
PyObject *__pyx_r = NULL;
|
||
|
PyObject *__pyx_t_1 = NULL;
|
||
|
PyObject *__pyx_t_2 = NULL;
|
||
|
__Pyx_RefNannySetupContext("__get__");
|
||
|
__pyx_v_s = Py_None; __Pyx_INCREF(Py_None);
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":269
|
||
|
* """ Brief description of the error """
|
||
|
* def __get__(self):
|
||
|
* s = self.e.desc # <<<<<<<<<<<<<<
|
||
|
* return s.capitalize()
|
||
|
* property code:
|
||
|
*/
|
||
|
__pyx_t_1 = __Pyx_PyBytes_FromString(((struct __pyx_obj_4h5py_3h5e_ErrorStackElement *)__pyx_v_self)->e.desc); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 269; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_1);
|
||
|
__Pyx_DECREF(__pyx_v_s);
|
||
|
__pyx_v_s = __pyx_t_1;
|
||
|
__pyx_t_1 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":270
|
||
|
* def __get__(self):
|
||
|
* s = self.e.desc
|
||
|
* return s.capitalize() # <<<<<<<<<<<<<<
|
||
|
* property code:
|
||
|
* """ A 2-tuple of error codes (major, minor) """
|
||
|
*/
|
||
|
__Pyx_XDECREF(__pyx_r);
|
||
|
__pyx_t_1 = PyObject_GetAttr(__pyx_v_s, __pyx_n_s__capitalize); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 270; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_1);
|
||
|
__pyx_t_2 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 270; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_2);
|
||
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
||
|
__pyx_r = __pyx_t_2;
|
||
|
__pyx_t_2 = 0;
|
||
|
goto __pyx_L0;
|
||
|
|
||
|
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
|
||
|
goto __pyx_L0;
|
||
|
__pyx_L1_error:;
|
||
|
__Pyx_XDECREF(__pyx_t_1);
|
||
|
__Pyx_XDECREF(__pyx_t_2);
|
||
|
__Pyx_AddTraceback("h5py.h5e.ErrorStackElement.desc.__get__");
|
||
|
__pyx_r = NULL;
|
||
|
__pyx_L0:;
|
||
|
__Pyx_DECREF(__pyx_v_s);
|
||
|
__Pyx_XGIVEREF(__pyx_r);
|
||
|
__Pyx_RefNannyFinishContext();
|
||
|
return __pyx_r;
|
||
|
}
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":273
|
||
|
* property code:
|
||
|
* """ A 2-tuple of error codes (major, minor) """
|
||
|
* def __get__(self): # <<<<<<<<<<<<<<
|
||
|
* return (<int>self.e.maj_num, <int>self.e.min_num)
|
||
|
* property code_desc:
|
||
|
*/
|
||
|
|
||
|
static PyObject *__pyx_pf_4h5py_3h5e_17ErrorStackElement_4code___get__(PyObject *__pyx_v_self); /*proto*/
|
||
|
static PyObject *__pyx_pf_4h5py_3h5e_17ErrorStackElement_4code___get__(PyObject *__pyx_v_self) {
|
||
|
PyObject *__pyx_r = NULL;
|
||
|
PyObject *__pyx_t_1 = NULL;
|
||
|
PyObject *__pyx_t_2 = NULL;
|
||
|
PyObject *__pyx_t_3 = NULL;
|
||
|
__Pyx_RefNannySetupContext("__get__");
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":274
|
||
|
* """ A 2-tuple of error codes (major, minor) """
|
||
|
* def __get__(self):
|
||
|
* return (<int>self.e.maj_num, <int>self.e.min_num) # <<<<<<<<<<<<<<
|
||
|
* property code_desc:
|
||
|
* """ A 2-tuple of strings (major description, minor description) """
|
||
|
*/
|
||
|
__Pyx_XDECREF(__pyx_r);
|
||
|
__pyx_t_1 = PyInt_FromLong(((int)((struct __pyx_obj_4h5py_3h5e_ErrorStackElement *)__pyx_v_self)->e.maj_num)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 274; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_1);
|
||
|
__pyx_t_2 = PyInt_FromLong(((int)((struct __pyx_obj_4h5py_3h5e_ErrorStackElement *)__pyx_v_self)->e.min_num)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 274; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_2);
|
||
|
__pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 274; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_3);
|
||
|
PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
|
||
|
__Pyx_GIVEREF(__pyx_t_1);
|
||
|
PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
|
||
|
__Pyx_GIVEREF(__pyx_t_2);
|
||
|
__pyx_t_1 = 0;
|
||
|
__pyx_t_2 = 0;
|
||
|
__pyx_r = __pyx_t_3;
|
||
|
__pyx_t_3 = 0;
|
||
|
goto __pyx_L0;
|
||
|
|
||
|
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
|
||
|
goto __pyx_L0;
|
||
|
__pyx_L1_error:;
|
||
|
__Pyx_XDECREF(__pyx_t_1);
|
||
|
__Pyx_XDECREF(__pyx_t_2);
|
||
|
__Pyx_XDECREF(__pyx_t_3);
|
||
|
__Pyx_AddTraceback("h5py.h5e.ErrorStackElement.code.__get__");
|
||
|
__pyx_r = NULL;
|
||
|
__pyx_L0:;
|
||
|
__Pyx_XGIVEREF(__pyx_r);
|
||
|
__Pyx_RefNannyFinishContext();
|
||
|
return __pyx_r;
|
||
|
}
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":277
|
||
|
* property code_desc:
|
||
|
* """ A 2-tuple of strings (major description, minor description) """
|
||
|
* def __get__(self): # <<<<<<<<<<<<<<
|
||
|
* return H5Eget_major(self.e.maj_num), H5Eget_minor(self.e.min_num)
|
||
|
*
|
||
|
*/
|
||
|
|
||
|
static PyObject *__pyx_pf_4h5py_3h5e_17ErrorStackElement_9code_desc___get__(PyObject *__pyx_v_self); /*proto*/
|
||
|
static PyObject *__pyx_pf_4h5py_3h5e_17ErrorStackElement_9code_desc___get__(PyObject *__pyx_v_self) {
|
||
|
PyObject *__pyx_r = NULL;
|
||
|
PyObject *__pyx_t_1 = NULL;
|
||
|
PyObject *__pyx_t_2 = NULL;
|
||
|
PyObject *__pyx_t_3 = NULL;
|
||
|
__Pyx_RefNannySetupContext("__get__");
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":278
|
||
|
* """ A 2-tuple of strings (major description, minor description) """
|
||
|
* def __get__(self):
|
||
|
* return H5Eget_major(self.e.maj_num), H5Eget_minor(self.e.min_num) # <<<<<<<<<<<<<<
|
||
|
*
|
||
|
* def get_major(int code):
|
||
|
*/
|
||
|
__Pyx_XDECREF(__pyx_r);
|
||
|
__pyx_t_1 = __Pyx_PyBytes_FromString(H5Eget_major(((struct __pyx_obj_4h5py_3h5e_ErrorStackElement *)__pyx_v_self)->e.maj_num)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 278; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_1);
|
||
|
__pyx_t_2 = __Pyx_PyBytes_FromString(H5Eget_minor(((struct __pyx_obj_4h5py_3h5e_ErrorStackElement *)__pyx_v_self)->e.min_num)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 278; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_2);
|
||
|
__pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 278; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_3);
|
||
|
PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
|
||
|
__Pyx_GIVEREF(__pyx_t_1);
|
||
|
PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
|
||
|
__Pyx_GIVEREF(__pyx_t_2);
|
||
|
__pyx_t_1 = 0;
|
||
|
__pyx_t_2 = 0;
|
||
|
__pyx_r = __pyx_t_3;
|
||
|
__pyx_t_3 = 0;
|
||
|
goto __pyx_L0;
|
||
|
|
||
|
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
|
||
|
goto __pyx_L0;
|
||
|
__pyx_L1_error:;
|
||
|
__Pyx_XDECREF(__pyx_t_1);
|
||
|
__Pyx_XDECREF(__pyx_t_2);
|
||
|
__Pyx_XDECREF(__pyx_t_3);
|
||
|
__Pyx_AddTraceback("h5py.h5e.ErrorStackElement.code_desc.__get__");
|
||
|
__pyx_r = NULL;
|
||
|
__pyx_L0:;
|
||
|
__Pyx_XGIVEREF(__pyx_r);
|
||
|
__Pyx_RefNannyFinishContext();
|
||
|
return __pyx_r;
|
||
|
}
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":280
|
||
|
* return H5Eget_major(self.e.maj_num), H5Eget_minor(self.e.min_num)
|
||
|
*
|
||
|
* def get_major(int code): # <<<<<<<<<<<<<<
|
||
|
* """ Get description for a major error code """
|
||
|
* return H5Eget_major(<H5E_major_t>code)
|
||
|
*/
|
||
|
|
||
|
static PyObject *__pyx_pf_4h5py_3h5e_get_major(PyObject *__pyx_self, PyObject *__pyx_arg_code); /*proto*/
|
||
|
static char __pyx_doc_4h5py_3h5e_get_major[] = " Get description for a major error code ";
|
||
|
static PyObject *__pyx_pf_4h5py_3h5e_get_major(PyObject *__pyx_self, PyObject *__pyx_arg_code) {
|
||
|
int __pyx_v_code;
|
||
|
PyObject *__pyx_r = NULL;
|
||
|
PyObject *__pyx_t_1 = NULL;
|
||
|
__Pyx_RefNannySetupContext("get_major");
|
||
|
__pyx_self = __pyx_self;
|
||
|
assert(__pyx_arg_code); {
|
||
|
__pyx_v_code = __Pyx_PyInt_AsInt(__pyx_arg_code); if (unlikely((__pyx_v_code == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 280; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
|
||
|
}
|
||
|
goto __pyx_L4_argument_unpacking_done;
|
||
|
__pyx_L3_error:;
|
||
|
__Pyx_AddTraceback("h5py.h5e.get_major");
|
||
|
return NULL;
|
||
|
__pyx_L4_argument_unpacking_done:;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":282
|
||
|
* def get_major(int code):
|
||
|
* """ Get description for a major error code """
|
||
|
* return H5Eget_major(<H5E_major_t>code) # <<<<<<<<<<<<<<
|
||
|
*
|
||
|
* def get_minor(int code):
|
||
|
*/
|
||
|
__Pyx_XDECREF(__pyx_r);
|
||
|
__pyx_t_1 = __Pyx_PyBytes_FromString(H5Eget_major(((H5E_major_t)__pyx_v_code))); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 282; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_1);
|
||
|
__pyx_r = __pyx_t_1;
|
||
|
__pyx_t_1 = 0;
|
||
|
goto __pyx_L0;
|
||
|
|
||
|
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
|
||
|
goto __pyx_L0;
|
||
|
__pyx_L1_error:;
|
||
|
__Pyx_XDECREF(__pyx_t_1);
|
||
|
__Pyx_AddTraceback("h5py.h5e.get_major");
|
||
|
__pyx_r = NULL;
|
||
|
__pyx_L0:;
|
||
|
__Pyx_XGIVEREF(__pyx_r);
|
||
|
__Pyx_RefNannyFinishContext();
|
||
|
return __pyx_r;
|
||
|
}
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":284
|
||
|
* return H5Eget_major(<H5E_major_t>code)
|
||
|
*
|
||
|
* def get_minor(int code): # <<<<<<<<<<<<<<
|
||
|
* """ Get description for a minor error code """
|
||
|
* return H5Eget_minor(<H5E_minor_t>code)
|
||
|
*/
|
||
|
|
||
|
static PyObject *__pyx_pf_4h5py_3h5e_get_minor(PyObject *__pyx_self, PyObject *__pyx_arg_code); /*proto*/
|
||
|
static char __pyx_doc_4h5py_3h5e_get_minor[] = " Get description for a minor error code ";
|
||
|
static PyObject *__pyx_pf_4h5py_3h5e_get_minor(PyObject *__pyx_self, PyObject *__pyx_arg_code) {
|
||
|
int __pyx_v_code;
|
||
|
PyObject *__pyx_r = NULL;
|
||
|
PyObject *__pyx_t_1 = NULL;
|
||
|
__Pyx_RefNannySetupContext("get_minor");
|
||
|
__pyx_self = __pyx_self;
|
||
|
assert(__pyx_arg_code); {
|
||
|
__pyx_v_code = __Pyx_PyInt_AsInt(__pyx_arg_code); if (unlikely((__pyx_v_code == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 284; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
|
||
|
}
|
||
|
goto __pyx_L4_argument_unpacking_done;
|
||
|
__pyx_L3_error:;
|
||
|
__Pyx_AddTraceback("h5py.h5e.get_minor");
|
||
|
return NULL;
|
||
|
__pyx_L4_argument_unpacking_done:;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":286
|
||
|
* def get_minor(int code):
|
||
|
* """ Get description for a minor error code """
|
||
|
* return H5Eget_minor(<H5E_minor_t>code) # <<<<<<<<<<<<<<
|
||
|
*
|
||
|
* _verbose = False
|
||
|
*/
|
||
|
__Pyx_XDECREF(__pyx_r);
|
||
|
__pyx_t_1 = __Pyx_PyBytes_FromString(H5Eget_minor(((H5E_minor_t)__pyx_v_code))); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 286; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_1);
|
||
|
__pyx_r = __pyx_t_1;
|
||
|
__pyx_t_1 = 0;
|
||
|
goto __pyx_L0;
|
||
|
|
||
|
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
|
||
|
goto __pyx_L0;
|
||
|
__pyx_L1_error:;
|
||
|
__Pyx_XDECREF(__pyx_t_1);
|
||
|
__Pyx_AddTraceback("h5py.h5e.get_minor");
|
||
|
__pyx_r = NULL;
|
||
|
__pyx_L0:;
|
||
|
__Pyx_XGIVEREF(__pyx_r);
|
||
|
__Pyx_RefNannyFinishContext();
|
||
|
return __pyx_r;
|
||
|
}
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":289
|
||
|
*
|
||
|
* _verbose = False
|
||
|
* def verbose(bint v): # <<<<<<<<<<<<<<
|
||
|
* """ (BOOL verbose)
|
||
|
*
|
||
|
*/
|
||
|
|
||
|
static PyObject *__pyx_pf_4h5py_3h5e_verbose(PyObject *__pyx_self, PyObject *__pyx_arg_v); /*proto*/
|
||
|
static char __pyx_doc_4h5py_3h5e_verbose[] = " (BOOL verbose)\n\n If FALSE (default), exception messages are a single line. If TRUE,\n an HDF5 stack trace is attached.\n ";
|
||
|
static PyObject *__pyx_pf_4h5py_3h5e_verbose(PyObject *__pyx_self, PyObject *__pyx_arg_v) {
|
||
|
int __pyx_v_v;
|
||
|
PyObject *__pyx_r = NULL;
|
||
|
PyObject *__pyx_t_1 = NULL;
|
||
|
PyObject *__pyx_t_2 = NULL;
|
||
|
__Pyx_RefNannySetupContext("verbose");
|
||
|
__pyx_self = __pyx_self;
|
||
|
assert(__pyx_arg_v); {
|
||
|
__pyx_v_v = __Pyx_PyObject_IsTrue(__pyx_arg_v); if (unlikely((__pyx_v_v == (int)-1))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 289; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
|
||
|
}
|
||
|
goto __pyx_L4_argument_unpacking_done;
|
||
|
__pyx_L3_error:;
|
||
|
__Pyx_AddTraceback("h5py.h5e.verbose");
|
||
|
return NULL;
|
||
|
__pyx_L4_argument_unpacking_done:;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":297
|
||
|
*
|
||
|
* global _verbose
|
||
|
* _verbose = bool(v) # <<<<<<<<<<<<<<
|
||
|
*
|
||
|
* class ErrorStack(list):
|
||
|
*/
|
||
|
__pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_v); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 297; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_1);
|
||
|
__pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 297; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_2);
|
||
|
PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1);
|
||
|
__Pyx_GIVEREF(__pyx_t_1);
|
||
|
__pyx_t_1 = 0;
|
||
|
__pyx_t_1 = PyObject_Call(((PyObject *)((PyObject*)&PyBool_Type)), __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 297; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_1);
|
||
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
||
|
if (PyObject_SetAttr(__pyx_m, __pyx_n_s___verbose, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 297; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
||
|
|
||
|
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
|
||
|
goto __pyx_L0;
|
||
|
__pyx_L1_error:;
|
||
|
__Pyx_XDECREF(__pyx_t_1);
|
||
|
__Pyx_XDECREF(__pyx_t_2);
|
||
|
__Pyx_AddTraceback("h5py.h5e.verbose");
|
||
|
__pyx_r = NULL;
|
||
|
__pyx_L0:;
|
||
|
__Pyx_XGIVEREF(__pyx_r);
|
||
|
__Pyx_RefNannyFinishContext();
|
||
|
return __pyx_r;
|
||
|
}
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":305
|
||
|
* """
|
||
|
*
|
||
|
* def __init__(self, *args, **kwds): # <<<<<<<<<<<<<<
|
||
|
* list.__init__(self, *args, **kwds)
|
||
|
* H5Ewalk(H5E_WALK_UPWARD, walk_cb, <void*>self)
|
||
|
*/
|
||
|
|
||
|
static PyObject *__pyx_pf_4h5py_3h5e_10ErrorStack___init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
|
||
|
static PyMethodDef __pyx_mdef_4h5py_3h5e_10ErrorStack___init__ = {__Pyx_NAMESTR("__init__"), (PyCFunction)__pyx_pf_4h5py_3h5e_10ErrorStack___init__, METH_VARARGS|METH_KEYWORDS, __Pyx_DOCSTR(0)};
|
||
|
static PyObject *__pyx_pf_4h5py_3h5e_10ErrorStack___init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
|
||
|
PyObject *__pyx_v_self = 0;
|
||
|
PyObject *__pyx_v_args = 0;
|
||
|
PyObject *__pyx_v_kwds = 0;
|
||
|
PyObject *__pyx_r = NULL;
|
||
|
PyObject *__pyx_t_1 = NULL;
|
||
|
PyObject *__pyx_t_2 = NULL;
|
||
|
PyObject *__pyx_t_3 = NULL;
|
||
|
PyObject *__pyx_t_4 = NULL;
|
||
|
static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__self,0};
|
||
|
__Pyx_RefNannySetupContext("__init__");
|
||
|
__pyx_self = __pyx_self;
|
||
|
__pyx_v_kwds = PyDict_New(); if (unlikely(!__pyx_v_kwds)) return NULL;
|
||
|
__Pyx_GOTREF(__pyx_v_kwds);
|
||
|
if (PyTuple_GET_SIZE(__pyx_args) > 1) {
|
||
|
__pyx_v_args = PyTuple_GetSlice(__pyx_args, 1, PyTuple_GET_SIZE(__pyx_args)); __Pyx_GOTREF(__pyx_v_args);
|
||
|
|
||
|
if (unlikely(!__pyx_v_args)) {
|
||
|
__Pyx_DECREF(__pyx_v_kwds);
|
||
|
return NULL;
|
||
|
}
|
||
|
} else {
|
||
|
__pyx_v_args = __pyx_empty_tuple; __Pyx_INCREF(__pyx_empty_tuple);
|
||
|
}
|
||
|
if (unlikely(__pyx_kwds)) {
|
||
|
Py_ssize_t kw_args = PyDict_Size(__pyx_kwds);
|
||
|
PyObject* values[1] = {0};
|
||
|
switch (PyTuple_GET_SIZE(__pyx_args)) {
|
||
|
default:
|
||
|
case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
|
||
|
case 0: break;
|
||
|
}
|
||
|
switch (PyTuple_GET_SIZE(__pyx_args)) {
|
||
|
case 0:
|
||
|
values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__self);
|
||
|
if (likely(values[0])) kw_args--;
|
||
|
else goto __pyx_L5_argtuple_error;
|
||
|
}
|
||
|
if (unlikely(kw_args > 0)) {
|
||
|
const Py_ssize_t used_pos_args = (PyTuple_GET_SIZE(__pyx_args) < 1) ? PyTuple_GET_SIZE(__pyx_args) : 1;
|
||
|
if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, __pyx_v_kwds, values, used_pos_args, "__init__") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 305; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
|
||
|
}
|
||
|
__pyx_v_self = values[0];
|
||
|
} else if (PyTuple_GET_SIZE(__pyx_args) < 1) {
|
||
|
goto __pyx_L5_argtuple_error;
|
||
|
} else {
|
||
|
__pyx_v_self = PyTuple_GET_ITEM(__pyx_args, 0);
|
||
|
}
|
||
|
goto __pyx_L4_argument_unpacking_done;
|
||
|
__pyx_L5_argtuple_error:;
|
||
|
__Pyx_RaiseArgtupleInvalid("__init__", 0, 1, 1, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 305; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
|
||
|
__pyx_L3_error:;
|
||
|
__Pyx_DECREF(__pyx_v_args);
|
||
|
__Pyx_DECREF(__pyx_v_kwds);
|
||
|
__Pyx_AddTraceback("h5py.h5e.ErrorStack.__init__");
|
||
|
return NULL;
|
||
|
__pyx_L4_argument_unpacking_done:;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":306
|
||
|
*
|
||
|
* def __init__(self, *args, **kwds):
|
||
|
* list.__init__(self, *args, **kwds) # <<<<<<<<<<<<<<
|
||
|
* H5Ewalk(H5E_WALK_UPWARD, walk_cb, <void*>self)
|
||
|
*
|
||
|
*/
|
||
|
__pyx_t_1 = PyObject_GetAttr(((PyObject *)((PyObject*)&PyList_Type)), __pyx_n_s____init__); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 306; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_1);
|
||
|
__pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 306; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_2);
|
||
|
__Pyx_INCREF(__pyx_v_self);
|
||
|
PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_self);
|
||
|
__Pyx_GIVEREF(__pyx_v_self);
|
||
|
__pyx_t_3 = PySequence_Tuple(__pyx_v_args); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 306; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(((PyObject *)__pyx_t_3));
|
||
|
__pyx_t_4 = PyNumber_Add(__pyx_t_2, ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 306; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
||
|
__Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
|
||
|
__pyx_t_3 = PyEval_CallObjectWithKeywords(__pyx_t_1, __pyx_t_4, __pyx_v_kwds); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 306; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_3);
|
||
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":307
|
||
|
* def __init__(self, *args, **kwds):
|
||
|
* list.__init__(self, *args, **kwds)
|
||
|
* H5Ewalk(H5E_WALK_UPWARD, walk_cb, <void*>self) # <<<<<<<<<<<<<<
|
||
|
*
|
||
|
* def get_exc_msg(self):
|
||
|
*/
|
||
|
H5Ewalk(H5E_WALK_UPWARD, __pyx_f_4h5py_3h5e_walk_cb, ((void *)__pyx_v_self));
|
||
|
|
||
|
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
|
||
|
goto __pyx_L0;
|
||
|
__pyx_L1_error:;
|
||
|
__Pyx_XDECREF(__pyx_t_1);
|
||
|
__Pyx_XDECREF(__pyx_t_2);
|
||
|
__Pyx_XDECREF(__pyx_t_3);
|
||
|
__Pyx_XDECREF(__pyx_t_4);
|
||
|
__Pyx_AddTraceback("h5py.h5e.ErrorStack.__init__");
|
||
|
__pyx_r = NULL;
|
||
|
__pyx_L0:;
|
||
|
__Pyx_DECREF(__pyx_v_args);
|
||
|
__Pyx_DECREF(__pyx_v_kwds);
|
||
|
__Pyx_XGIVEREF(__pyx_r);
|
||
|
__Pyx_RefNannyFinishContext();
|
||
|
return __pyx_r;
|
||
|
}
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":309
|
||
|
* H5Ewalk(H5E_WALK_UPWARD, walk_cb, <void*>self)
|
||
|
*
|
||
|
* def get_exc_msg(self): # <<<<<<<<<<<<<<
|
||
|
* """ Returns a 2-tuple (exception class, string message) representing
|
||
|
* the current error condition, or None if no error exists.
|
||
|
*/
|
||
|
|
||
|
static PyObject *__pyx_pf_4h5py_3h5e_10ErrorStack_get_exc_msg(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/
|
||
|
static char __pyx_doc_4h5py_3h5e_10ErrorStack_get_exc_msg[] = " Returns a 2-tuple (exception class, string message) representing\n the current error condition, or None if no error exists.\n ";
|
||
|
static PyMethodDef __pyx_mdef_4h5py_3h5e_10ErrorStack_get_exc_msg = {__Pyx_NAMESTR("get_exc_msg"), (PyCFunction)__pyx_pf_4h5py_3h5e_10ErrorStack_get_exc_msg, METH_O, __Pyx_DOCSTR(__pyx_doc_4h5py_3h5e_10ErrorStack_get_exc_msg)};
|
||
|
static PyObject *__pyx_pf_4h5py_3h5e_10ErrorStack_get_exc_msg(PyObject *__pyx_self, PyObject *__pyx_v_self) {
|
||
|
PyObject *__pyx_v_major;
|
||
|
PyObject *__pyx_v_minor;
|
||
|
PyObject *__pyx_v_maj_class;
|
||
|
PyObject *__pyx_v_min_class;
|
||
|
PyObject *__pyx_v_exc;
|
||
|
PyObject *__pyx_v_msg;
|
||
|
PyObject *__pyx_r = NULL;
|
||
|
Py_ssize_t __pyx_t_1;
|
||
|
int __pyx_t_2;
|
||
|
PyObject *__pyx_t_3 = NULL;
|
||
|
PyObject *__pyx_t_4 = NULL;
|
||
|
PyObject *__pyx_t_5 = NULL;
|
||
|
PyObject *__pyx_t_6 = NULL;
|
||
|
__Pyx_RefNannySetupContext("get_exc_msg");
|
||
|
__pyx_self = __pyx_self;
|
||
|
__Pyx_INCREF(__pyx_v_self);
|
||
|
__pyx_v_major = Py_None; __Pyx_INCREF(Py_None);
|
||
|
__pyx_v_minor = Py_None; __Pyx_INCREF(Py_None);
|
||
|
__pyx_v_maj_class = Py_None; __Pyx_INCREF(Py_None);
|
||
|
__pyx_v_min_class = Py_None; __Pyx_INCREF(Py_None);
|
||
|
__pyx_v_exc = Py_None; __Pyx_INCREF(Py_None);
|
||
|
__pyx_v_msg = Py_None; __Pyx_INCREF(Py_None);
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":315
|
||
|
* global _verbose
|
||
|
*
|
||
|
* if len(self) == 0: # <<<<<<<<<<<<<<
|
||
|
* return None
|
||
|
*
|
||
|
*/
|
||
|
__pyx_t_1 = PyObject_Length(__pyx_v_self); if (unlikely(__pyx_t_1 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 315; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__pyx_t_2 = (__pyx_t_1 == 0);
|
||
|
if (__pyx_t_2) {
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":316
|
||
|
*
|
||
|
* if len(self) == 0:
|
||
|
* return None # <<<<<<<<<<<<<<
|
||
|
*
|
||
|
* major, minor = self[0].code
|
||
|
*/
|
||
|
__Pyx_XDECREF(__pyx_r);
|
||
|
__Pyx_INCREF(Py_None);
|
||
|
__pyx_r = Py_None;
|
||
|
goto __pyx_L0;
|
||
|
goto __pyx_L5;
|
||
|
}
|
||
|
__pyx_L5:;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":318
|
||
|
* return None
|
||
|
*
|
||
|
* major, minor = self[0].code # <<<<<<<<<<<<<<
|
||
|
*
|
||
|
* maj_class = _major_table.get(major, H5Error)
|
||
|
*/
|
||
|
__pyx_t_3 = __Pyx_GetItemInt(__pyx_v_self, 0, sizeof(long), PyInt_FromLong); if (!__pyx_t_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 318; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_3);
|
||
|
__pyx_t_4 = PyObject_GetAttr(__pyx_t_3, __pyx_n_s__code); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 318; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
||
|
if (PyTuple_CheckExact(__pyx_t_4) && likely(PyTuple_GET_SIZE(__pyx_t_4) == 2)) {
|
||
|
PyObject* tuple = __pyx_t_4;
|
||
|
__pyx_t_3 = PyTuple_GET_ITEM(tuple, 0); __Pyx_INCREF(__pyx_t_3);
|
||
|
__pyx_t_5 = PyTuple_GET_ITEM(tuple, 1); __Pyx_INCREF(__pyx_t_5);
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
__Pyx_DECREF(__pyx_v_major);
|
||
|
__pyx_v_major = __pyx_t_3;
|
||
|
__pyx_t_3 = 0;
|
||
|
__Pyx_DECREF(__pyx_v_minor);
|
||
|
__pyx_v_minor = __pyx_t_5;
|
||
|
__pyx_t_5 = 0;
|
||
|
} else {
|
||
|
__pyx_t_6 = PyObject_GetIter(__pyx_t_4); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 318; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_6);
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
__pyx_t_3 = __Pyx_UnpackItem(__pyx_t_6, 0); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 318; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_3);
|
||
|
__pyx_t_5 = __Pyx_UnpackItem(__pyx_t_6, 1); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 318; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_5);
|
||
|
if (__Pyx_EndUnpack(__pyx_t_6) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 318; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
||
|
__Pyx_DECREF(__pyx_v_major);
|
||
|
__pyx_v_major = __pyx_t_3;
|
||
|
__pyx_t_3 = 0;
|
||
|
__Pyx_DECREF(__pyx_v_minor);
|
||
|
__pyx_v_minor = __pyx_t_5;
|
||
|
__pyx_t_5 = 0;
|
||
|
}
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":320
|
||
|
* major, minor = self[0].code
|
||
|
*
|
||
|
* maj_class = _major_table.get(major, H5Error) # <<<<<<<<<<<<<<
|
||
|
* min_class = _exact_table.get((major, minor), None)
|
||
|
* if min_class is None:
|
||
|
*/
|
||
|
__pyx_t_4 = PyObject_GetAttr(((PyObject *)__pyx_v_4h5py_3h5e__major_table), __pyx_n_s__get); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 320; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
__pyx_t_5 = __Pyx_GetName(__pyx_m, __pyx_n_s__H5Error); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 320; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_5);
|
||
|
__pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 320; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_3);
|
||
|
__Pyx_INCREF(__pyx_v_major);
|
||
|
PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_major);
|
||
|
__Pyx_GIVEREF(__pyx_v_major);
|
||
|
PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_5);
|
||
|
__Pyx_GIVEREF(__pyx_t_5);
|
||
|
__pyx_t_5 = 0;
|
||
|
__pyx_t_5 = PyObject_Call(__pyx_t_4, __pyx_t_3, NULL); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 320; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_5);
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
||
|
__Pyx_DECREF(__pyx_v_maj_class);
|
||
|
__pyx_v_maj_class = __pyx_t_5;
|
||
|
__pyx_t_5 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":321
|
||
|
*
|
||
|
* maj_class = _major_table.get(major, H5Error)
|
||
|
* min_class = _exact_table.get((major, minor), None) # <<<<<<<<<<<<<<
|
||
|
* if min_class is None:
|
||
|
* min_class = _minor_table.get(minor, None)
|
||
|
*/
|
||
|
__pyx_t_5 = PyObject_GetAttr(((PyObject *)__pyx_v_4h5py_3h5e__exact_table), __pyx_n_s__get); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 321; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_5);
|
||
|
__pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 321; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_3);
|
||
|
__Pyx_INCREF(__pyx_v_major);
|
||
|
PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_major);
|
||
|
__Pyx_GIVEREF(__pyx_v_major);
|
||
|
__Pyx_INCREF(__pyx_v_minor);
|
||
|
PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_v_minor);
|
||
|
__Pyx_GIVEREF(__pyx_v_minor);
|
||
|
__pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 321; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3);
|
||
|
__Pyx_GIVEREF(__pyx_t_3);
|
||
|
__Pyx_INCREF(Py_None);
|
||
|
PyTuple_SET_ITEM(__pyx_t_4, 1, Py_None);
|
||
|
__Pyx_GIVEREF(Py_None);
|
||
|
__pyx_t_3 = 0;
|
||
|
__pyx_t_3 = PyObject_Call(__pyx_t_5, __pyx_t_4, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 321; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_3);
|
||
|
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
__Pyx_DECREF(__pyx_v_min_class);
|
||
|
__pyx_v_min_class = __pyx_t_3;
|
||
|
__pyx_t_3 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":322
|
||
|
* maj_class = _major_table.get(major, H5Error)
|
||
|
* min_class = _exact_table.get((major, minor), None)
|
||
|
* if min_class is None: # <<<<<<<<<<<<<<
|
||
|
* min_class = _minor_table.get(minor, None)
|
||
|
*
|
||
|
*/
|
||
|
__pyx_t_2 = (__pyx_v_min_class == Py_None);
|
||
|
if (__pyx_t_2) {
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":323
|
||
|
* min_class = _exact_table.get((major, minor), None)
|
||
|
* if min_class is None:
|
||
|
* min_class = _minor_table.get(minor, None) # <<<<<<<<<<<<<<
|
||
|
*
|
||
|
* if min_class is None:
|
||
|
*/
|
||
|
__pyx_t_3 = PyObject_GetAttr(((PyObject *)__pyx_v_4h5py_3h5e__minor_table), __pyx_n_s__get); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 323; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_3);
|
||
|
__pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 323; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
__Pyx_INCREF(__pyx_v_minor);
|
||
|
PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_minor);
|
||
|
__Pyx_GIVEREF(__pyx_v_minor);
|
||
|
__Pyx_INCREF(Py_None);
|
||
|
PyTuple_SET_ITEM(__pyx_t_4, 1, Py_None);
|
||
|
__Pyx_GIVEREF(Py_None);
|
||
|
__pyx_t_5 = PyObject_Call(__pyx_t_3, __pyx_t_4, NULL); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 323; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_5);
|
||
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
__Pyx_DECREF(__pyx_v_min_class);
|
||
|
__pyx_v_min_class = __pyx_t_5;
|
||
|
__pyx_t_5 = 0;
|
||
|
goto __pyx_L6;
|
||
|
}
|
||
|
__pyx_L6:;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":325
|
||
|
* min_class = _minor_table.get(minor, None)
|
||
|
*
|
||
|
* if min_class is None: # <<<<<<<<<<<<<<
|
||
|
* exc = maj_class
|
||
|
* else:
|
||
|
*/
|
||
|
__pyx_t_2 = (__pyx_v_min_class == Py_None);
|
||
|
if (__pyx_t_2) {
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":326
|
||
|
*
|
||
|
* if min_class is None:
|
||
|
* exc = maj_class # <<<<<<<<<<<<<<
|
||
|
* else:
|
||
|
* exc = _stub.generate_class(maj_class, min_class)
|
||
|
*/
|
||
|
__Pyx_INCREF(__pyx_v_maj_class);
|
||
|
__Pyx_DECREF(__pyx_v_exc);
|
||
|
__pyx_v_exc = __pyx_v_maj_class;
|
||
|
goto __pyx_L7;
|
||
|
}
|
||
|
/*else*/ {
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":328
|
||
|
* exc = maj_class
|
||
|
* else:
|
||
|
* exc = _stub.generate_class(maj_class, min_class) # <<<<<<<<<<<<<<
|
||
|
*
|
||
|
* msg = "%s (%s: %s)" % (self[0].desc, self[0].code_desc[0],
|
||
|
*/
|
||
|
__pyx_t_5 = __Pyx_GetName(__pyx_m, __pyx_n_s___stub); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 328; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_5);
|
||
|
__pyx_t_4 = PyObject_GetAttr(__pyx_t_5, __pyx_n_s__generate_class); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 328; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
|
||
|
__pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 328; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_5);
|
||
|
__Pyx_INCREF(__pyx_v_maj_class);
|
||
|
PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v_maj_class);
|
||
|
__Pyx_GIVEREF(__pyx_v_maj_class);
|
||
|
__Pyx_INCREF(__pyx_v_min_class);
|
||
|
PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_v_min_class);
|
||
|
__Pyx_GIVEREF(__pyx_v_min_class);
|
||
|
__pyx_t_3 = PyObject_Call(__pyx_t_4, __pyx_t_5, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 328; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_3);
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
|
||
|
__Pyx_DECREF(__pyx_v_exc);
|
||
|
__pyx_v_exc = __pyx_t_3;
|
||
|
__pyx_t_3 = 0;
|
||
|
}
|
||
|
__pyx_L7:;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":330
|
||
|
* exc = _stub.generate_class(maj_class, min_class)
|
||
|
*
|
||
|
* msg = "%s (%s: %s)" % (self[0].desc, self[0].code_desc[0], # <<<<<<<<<<<<<<
|
||
|
* self[0].code_desc[1])
|
||
|
* if _verbose:
|
||
|
*/
|
||
|
__pyx_t_3 = __Pyx_GetItemInt(__pyx_v_self, 0, sizeof(long), PyInt_FromLong); if (!__pyx_t_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 330; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_3);
|
||
|
__pyx_t_5 = PyObject_GetAttr(__pyx_t_3, __pyx_n_s__desc); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 330; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_5);
|
||
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
||
|
__pyx_t_3 = __Pyx_GetItemInt(__pyx_v_self, 0, sizeof(long), PyInt_FromLong); if (!__pyx_t_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 330; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_3);
|
||
|
__pyx_t_4 = PyObject_GetAttr(__pyx_t_3, __pyx_n_s__code_desc); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 330; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
||
|
__pyx_t_3 = __Pyx_GetItemInt(__pyx_t_4, 0, sizeof(long), PyInt_FromLong); if (!__pyx_t_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 330; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_3);
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":331
|
||
|
*
|
||
|
* msg = "%s (%s: %s)" % (self[0].desc, self[0].code_desc[0],
|
||
|
* self[0].code_desc[1]) # <<<<<<<<<<<<<<
|
||
|
* if _verbose:
|
||
|
* msg += '\n'+str(self)
|
||
|
*/
|
||
|
__pyx_t_4 = __Pyx_GetItemInt(__pyx_v_self, 0, sizeof(long), PyInt_FromLong); if (!__pyx_t_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 331; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
__pyx_t_6 = PyObject_GetAttr(__pyx_t_4, __pyx_n_s__code_desc); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 331; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_6);
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
__pyx_t_4 = __Pyx_GetItemInt(__pyx_t_6, 1, sizeof(long), PyInt_FromLong); if (!__pyx_t_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 331; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
||
|
__pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 330; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_6);
|
||
|
PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_5);
|
||
|
__Pyx_GIVEREF(__pyx_t_5);
|
||
|
PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_3);
|
||
|
__Pyx_GIVEREF(__pyx_t_3);
|
||
|
PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_t_4);
|
||
|
__Pyx_GIVEREF(__pyx_t_4);
|
||
|
__pyx_t_5 = 0;
|
||
|
__pyx_t_3 = 0;
|
||
|
__pyx_t_4 = 0;
|
||
|
__pyx_t_4 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_1), __pyx_t_6); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 330; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
||
|
__Pyx_DECREF(__pyx_v_msg);
|
||
|
__pyx_v_msg = __pyx_t_4;
|
||
|
__pyx_t_4 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":332
|
||
|
* msg = "%s (%s: %s)" % (self[0].desc, self[0].code_desc[0],
|
||
|
* self[0].code_desc[1])
|
||
|
* if _verbose: # <<<<<<<<<<<<<<
|
||
|
* msg += '\n'+str(self)
|
||
|
*
|
||
|
*/
|
||
|
__pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s___verbose); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 332; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
__pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 332; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
if (__pyx_t_2) {
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":333
|
||
|
* self[0].code_desc[1])
|
||
|
* if _verbose:
|
||
|
* msg += '\n'+str(self) # <<<<<<<<<<<<<<
|
||
|
*
|
||
|
* return exc, msg
|
||
|
*/
|
||
|
__pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 333; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
__Pyx_INCREF(__pyx_v_self);
|
||
|
PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_self);
|
||
|
__Pyx_GIVEREF(__pyx_v_self);
|
||
|
__pyx_t_6 = PyObject_Call(((PyObject *)((PyObject*)&PyString_Type)), __pyx_t_4, NULL); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 333; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_6);
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
__pyx_t_4 = PyNumber_Add(((PyObject *)__pyx_kp_s_2), __pyx_t_6); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 333; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
||
|
__pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_msg, __pyx_t_4); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 333; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_6);
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
__Pyx_DECREF(__pyx_v_msg);
|
||
|
__pyx_v_msg = __pyx_t_6;
|
||
|
__pyx_t_6 = 0;
|
||
|
goto __pyx_L8;
|
||
|
}
|
||
|
__pyx_L8:;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":335
|
||
|
* msg += '\n'+str(self)
|
||
|
*
|
||
|
* return exc, msg # <<<<<<<<<<<<<<
|
||
|
*
|
||
|
* def __str__(self):
|
||
|
*/
|
||
|
__Pyx_XDECREF(__pyx_r);
|
||
|
__pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 335; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_6);
|
||
|
__Pyx_INCREF(__pyx_v_exc);
|
||
|
PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_v_exc);
|
||
|
__Pyx_GIVEREF(__pyx_v_exc);
|
||
|
__Pyx_INCREF(__pyx_v_msg);
|
||
|
PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_v_msg);
|
||
|
__Pyx_GIVEREF(__pyx_v_msg);
|
||
|
__pyx_r = __pyx_t_6;
|
||
|
__pyx_t_6 = 0;
|
||
|
goto __pyx_L0;
|
||
|
|
||
|
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
|
||
|
goto __pyx_L0;
|
||
|
__pyx_L1_error:;
|
||
|
__Pyx_XDECREF(__pyx_t_3);
|
||
|
__Pyx_XDECREF(__pyx_t_4);
|
||
|
__Pyx_XDECREF(__pyx_t_5);
|
||
|
__Pyx_XDECREF(__pyx_t_6);
|
||
|
__Pyx_AddTraceback("h5py.h5e.ErrorStack.get_exc_msg");
|
||
|
__pyx_r = NULL;
|
||
|
__pyx_L0:;
|
||
|
__Pyx_DECREF(__pyx_v_major);
|
||
|
__Pyx_DECREF(__pyx_v_minor);
|
||
|
__Pyx_DECREF(__pyx_v_maj_class);
|
||
|
__Pyx_DECREF(__pyx_v_min_class);
|
||
|
__Pyx_DECREF(__pyx_v_exc);
|
||
|
__Pyx_DECREF(__pyx_v_msg);
|
||
|
__Pyx_DECREF(__pyx_v_self);
|
||
|
__Pyx_XGIVEREF(__pyx_r);
|
||
|
__Pyx_RefNannyFinishContext();
|
||
|
return __pyx_r;
|
||
|
}
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":337
|
||
|
* return exc, msg
|
||
|
*
|
||
|
* def __str__(self): # <<<<<<<<<<<<<<
|
||
|
* """ Return a string representation of the error stack """
|
||
|
* if len(self) == 0:
|
||
|
*/
|
||
|
|
||
|
static PyObject *__pyx_pf_4h5py_3h5e_10ErrorStack___str__(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/
|
||
|
static char __pyx_doc_4h5py_3h5e_10ErrorStack___str__[] = " Return a string representation of the error stack ";
|
||
|
static PyMethodDef __pyx_mdef_4h5py_3h5e_10ErrorStack___str__ = {__Pyx_NAMESTR("__str__"), (PyCFunction)__pyx_pf_4h5py_3h5e_10ErrorStack___str__, METH_O, __Pyx_DOCSTR(__pyx_doc_4h5py_3h5e_10ErrorStack___str__)};
|
||
|
static PyObject *__pyx_pf_4h5py_3h5e_10ErrorStack___str__(PyObject *__pyx_self, PyObject *__pyx_v_self) {
|
||
|
PyObject *__pyx_v_s;
|
||
|
PyObject *__pyx_v_idx;
|
||
|
PyObject *__pyx_v_el;
|
||
|
PyObject *__pyx_r = NULL;
|
||
|
Py_ssize_t __pyx_t_1;
|
||
|
int __pyx_t_2;
|
||
|
PyObject *__pyx_t_3 = NULL;
|
||
|
PyObject *__pyx_t_4 = NULL;
|
||
|
PyObject *__pyx_t_5 = NULL;
|
||
|
PyObject *__pyx_t_6 = NULL;
|
||
|
PyObject *__pyx_t_7 = NULL;
|
||
|
__Pyx_RefNannySetupContext("__str__");
|
||
|
__pyx_self = __pyx_self;
|
||
|
__Pyx_INCREF(__pyx_v_self);
|
||
|
__pyx_v_s = Py_None; __Pyx_INCREF(Py_None);
|
||
|
__pyx_v_idx = Py_None; __Pyx_INCREF(Py_None);
|
||
|
__pyx_v_el = Py_None; __Pyx_INCREF(Py_None);
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":339
|
||
|
* def __str__(self):
|
||
|
* """ Return a string representation of the error stack """
|
||
|
* if len(self) == 0: # <<<<<<<<<<<<<<
|
||
|
* return "No HDF5 error recorded"
|
||
|
* s = 'HDF5 Error Stack:'
|
||
|
*/
|
||
|
__pyx_t_1 = PyObject_Length(__pyx_v_self); if (unlikely(__pyx_t_1 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 339; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__pyx_t_2 = (__pyx_t_1 == 0);
|
||
|
if (__pyx_t_2) {
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":340
|
||
|
* """ Return a string representation of the error stack """
|
||
|
* if len(self) == 0:
|
||
|
* return "No HDF5 error recorded" # <<<<<<<<<<<<<<
|
||
|
* s = 'HDF5 Error Stack:'
|
||
|
* for idx, el in enumerate(self):
|
||
|
*/
|
||
|
__Pyx_XDECREF(__pyx_r);
|
||
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_3));
|
||
|
__pyx_r = ((PyObject *)__pyx_kp_s_3);
|
||
|
goto __pyx_L0;
|
||
|
goto __pyx_L5;
|
||
|
}
|
||
|
__pyx_L5:;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":341
|
||
|
* if len(self) == 0:
|
||
|
* return "No HDF5 error recorded"
|
||
|
* s = 'HDF5 Error Stack:' # <<<<<<<<<<<<<<
|
||
|
* for idx, el in enumerate(self):
|
||
|
* s += '\n %d: "%s" at %s' % (idx, el.desc, el.func_name)
|
||
|
*/
|
||
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_4));
|
||
|
__Pyx_DECREF(__pyx_v_s);
|
||
|
__pyx_v_s = ((PyObject *)__pyx_kp_s_4);
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":342
|
||
|
* return "No HDF5 error recorded"
|
||
|
* s = 'HDF5 Error Stack:'
|
||
|
* for idx, el in enumerate(self): # <<<<<<<<<<<<<<
|
||
|
* s += '\n %d: "%s" at %s' % (idx, el.desc, el.func_name)
|
||
|
* s += '\n %s :: %s' % el.code_desc
|
||
|
*/
|
||
|
__Pyx_INCREF(__pyx_int_0);
|
||
|
__pyx_t_3 = __pyx_int_0;
|
||
|
if (PyList_CheckExact(__pyx_v_self) || PyTuple_CheckExact(__pyx_v_self)) {
|
||
|
__pyx_t_1 = 0; __pyx_t_4 = __pyx_v_self; __Pyx_INCREF(__pyx_t_4);
|
||
|
} else {
|
||
|
__pyx_t_1 = -1; __pyx_t_4 = PyObject_GetIter(__pyx_v_self); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 342; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
}
|
||
|
for (;;) {
|
||
|
if (likely(PyList_CheckExact(__pyx_t_4))) {
|
||
|
if (__pyx_t_1 >= PyList_GET_SIZE(__pyx_t_4)) break;
|
||
|
__pyx_t_5 = PyList_GET_ITEM(__pyx_t_4, __pyx_t_1); __Pyx_INCREF(__pyx_t_5); __pyx_t_1++;
|
||
|
} else if (likely(PyTuple_CheckExact(__pyx_t_4))) {
|
||
|
if (__pyx_t_1 >= PyTuple_GET_SIZE(__pyx_t_4)) break;
|
||
|
__pyx_t_5 = PyTuple_GET_ITEM(__pyx_t_4, __pyx_t_1); __Pyx_INCREF(__pyx_t_5); __pyx_t_1++;
|
||
|
} else {
|
||
|
__pyx_t_5 = PyIter_Next(__pyx_t_4);
|
||
|
if (!__pyx_t_5) {
|
||
|
if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 342; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
break;
|
||
|
}
|
||
|
__Pyx_GOTREF(__pyx_t_5);
|
||
|
}
|
||
|
__Pyx_DECREF(__pyx_v_el);
|
||
|
__pyx_v_el = __pyx_t_5;
|
||
|
__pyx_t_5 = 0;
|
||
|
__Pyx_INCREF(__pyx_t_3);
|
||
|
__Pyx_DECREF(__pyx_v_idx);
|
||
|
__pyx_v_idx = __pyx_t_3;
|
||
|
__pyx_t_5 = PyNumber_Add(__pyx_t_3, __pyx_int_1); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 342; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_5);
|
||
|
__Pyx_DECREF(__pyx_t_3);
|
||
|
__pyx_t_3 = __pyx_t_5;
|
||
|
__pyx_t_5 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":343
|
||
|
* s = 'HDF5 Error Stack:'
|
||
|
* for idx, el in enumerate(self):
|
||
|
* s += '\n %d: "%s" at %s' % (idx, el.desc, el.func_name) # <<<<<<<<<<<<<<
|
||
|
* s += '\n %s :: %s' % el.code_desc
|
||
|
*
|
||
|
*/
|
||
|
__pyx_t_5 = PyObject_GetAttr(__pyx_v_el, __pyx_n_s__desc); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 343; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_5);
|
||
|
__pyx_t_6 = PyObject_GetAttr(__pyx_v_el, __pyx_n_s__func_name); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 343; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_6);
|
||
|
__pyx_t_7 = PyTuple_New(3); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 343; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_7);
|
||
|
__Pyx_INCREF(__pyx_v_idx);
|
||
|
PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_v_idx);
|
||
|
__Pyx_GIVEREF(__pyx_v_idx);
|
||
|
PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_t_5);
|
||
|
__Pyx_GIVEREF(__pyx_t_5);
|
||
|
PyTuple_SET_ITEM(__pyx_t_7, 2, __pyx_t_6);
|
||
|
__Pyx_GIVEREF(__pyx_t_6);
|
||
|
__pyx_t_5 = 0;
|
||
|
__pyx_t_6 = 0;
|
||
|
__pyx_t_6 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_5), __pyx_t_7); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 343; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_6);
|
||
|
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
|
||
|
__pyx_t_7 = PyNumber_InPlaceAdd(__pyx_v_s, __pyx_t_6); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 343; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_7);
|
||
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
||
|
__Pyx_DECREF(__pyx_v_s);
|
||
|
__pyx_v_s = __pyx_t_7;
|
||
|
__pyx_t_7 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":344
|
||
|
* for idx, el in enumerate(self):
|
||
|
* s += '\n %d: "%s" at %s' % (idx, el.desc, el.func_name)
|
||
|
* s += '\n %s :: %s' % el.code_desc # <<<<<<<<<<<<<<
|
||
|
*
|
||
|
* return s
|
||
|
*/
|
||
|
__pyx_t_7 = PyObject_GetAttr(__pyx_v_el, __pyx_n_s__code_desc); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 344; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_7);
|
||
|
__pyx_t_6 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_6), __pyx_t_7); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 344; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_6);
|
||
|
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
|
||
|
__pyx_t_7 = PyNumber_InPlaceAdd(__pyx_v_s, __pyx_t_6); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 344; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_7);
|
||
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
||
|
__Pyx_DECREF(__pyx_v_s);
|
||
|
__pyx_v_s = __pyx_t_7;
|
||
|
__pyx_t_7 = 0;
|
||
|
}
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":346
|
||
|
* s += '\n %s :: %s' % el.code_desc
|
||
|
*
|
||
|
* return s # <<<<<<<<<<<<<<
|
||
|
*
|
||
|
* cdef herr_t walk_cb(int n, H5E_error_t *err_desc, void* stack_in):
|
||
|
*/
|
||
|
__Pyx_XDECREF(__pyx_r);
|
||
|
__Pyx_INCREF(__pyx_v_s);
|
||
|
__pyx_r = __pyx_v_s;
|
||
|
goto __pyx_L0;
|
||
|
|
||
|
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
|
||
|
goto __pyx_L0;
|
||
|
__pyx_L1_error:;
|
||
|
__Pyx_XDECREF(__pyx_t_3);
|
||
|
__Pyx_XDECREF(__pyx_t_4);
|
||
|
__Pyx_XDECREF(__pyx_t_5);
|
||
|
__Pyx_XDECREF(__pyx_t_6);
|
||
|
__Pyx_XDECREF(__pyx_t_7);
|
||
|
__Pyx_AddTraceback("h5py.h5e.ErrorStack.__str__");
|
||
|
__pyx_r = NULL;
|
||
|
__pyx_L0:;
|
||
|
__Pyx_DECREF(__pyx_v_s);
|
||
|
__Pyx_DECREF(__pyx_v_idx);
|
||
|
__Pyx_DECREF(__pyx_v_el);
|
||
|
__Pyx_DECREF(__pyx_v_self);
|
||
|
__Pyx_XGIVEREF(__pyx_r);
|
||
|
__Pyx_RefNannyFinishContext();
|
||
|
return __pyx_r;
|
||
|
}
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":348
|
||
|
* return s
|
||
|
*
|
||
|
* cdef herr_t walk_cb(int n, H5E_error_t *err_desc, void* stack_in): # <<<<<<<<<<<<<<
|
||
|
* # Callback function to extract elements from the HDF5 error stack
|
||
|
*
|
||
|
*/
|
||
|
|
||
|
static herr_t __pyx_f_4h5py_3h5e_walk_cb(int __pyx_v_n, H5E_error_t *__pyx_v_err_desc, void *__pyx_v_stack_in) {
|
||
|
PyObject *__pyx_v_stack;
|
||
|
struct __pyx_obj_4h5py_3h5e_ErrorStackElement *__pyx_v_element;
|
||
|
herr_t __pyx_r;
|
||
|
PyObject *__pyx_t_1 = NULL;
|
||
|
__Pyx_RefNannySetupContext("walk_cb");
|
||
|
__pyx_v_stack = Py_None; __Pyx_INCREF(Py_None);
|
||
|
__pyx_v_element = ((struct __pyx_obj_4h5py_3h5e_ErrorStackElement *)Py_None); __Pyx_INCREF(Py_None);
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":351
|
||
|
* # Callback function to extract elements from the HDF5 error stack
|
||
|
*
|
||
|
* stack = <object>stack_in # <<<<<<<<<<<<<<
|
||
|
*
|
||
|
* cdef ErrorStackElement element
|
||
|
*/
|
||
|
__Pyx_INCREF(((PyObject *)__pyx_v_stack_in));
|
||
|
__Pyx_DECREF(__pyx_v_stack);
|
||
|
__pyx_v_stack = ((PyObject *)__pyx_v_stack_in);
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":354
|
||
|
*
|
||
|
* cdef ErrorStackElement element
|
||
|
* element = ErrorStackElement() # <<<<<<<<<<<<<<
|
||
|
*
|
||
|
* element.e = err_desc[0]
|
||
|
*/
|
||
|
__pyx_t_1 = PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_4h5py_3h5e_ErrorStackElement)), ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 354; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_1);
|
||
|
__Pyx_DECREF(((PyObject *)__pyx_v_element));
|
||
|
__pyx_v_element = ((struct __pyx_obj_4h5py_3h5e_ErrorStackElement *)__pyx_t_1);
|
||
|
__pyx_t_1 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":356
|
||
|
* element = ErrorStackElement()
|
||
|
*
|
||
|
* element.e = err_desc[0] # <<<<<<<<<<<<<<
|
||
|
* stack.append(element)
|
||
|
*
|
||
|
*/
|
||
|
__pyx_v_element->e = (__pyx_v_err_desc[0]);
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":357
|
||
|
*
|
||
|
* element.e = err_desc[0]
|
||
|
* stack.append(element) # <<<<<<<<<<<<<<
|
||
|
*
|
||
|
* return 0
|
||
|
*/
|
||
|
__pyx_t_1 = __Pyx_PyObject_Append(__pyx_v_stack, ((PyObject *)__pyx_v_element)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 357; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_1);
|
||
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":359
|
||
|
* stack.append(element)
|
||
|
*
|
||
|
* return 0 # <<<<<<<<<<<<<<
|
||
|
*
|
||
|
* cdef herr_t err_callback(void* client_data) with gil:
|
||
|
*/
|
||
|
__pyx_r = 0;
|
||
|
goto __pyx_L0;
|
||
|
|
||
|
__pyx_r = 0;
|
||
|
goto __pyx_L0;
|
||
|
__pyx_L1_error:;
|
||
|
__Pyx_XDECREF(__pyx_t_1);
|
||
|
__Pyx_WriteUnraisable("h5py.h5e.walk_cb");
|
||
|
__pyx_r = 0;
|
||
|
__pyx_L0:;
|
||
|
__Pyx_DECREF(__pyx_v_stack);
|
||
|
__Pyx_DECREF((PyObject *)__pyx_v_element);
|
||
|
__Pyx_RefNannyFinishContext();
|
||
|
return __pyx_r;
|
||
|
}
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":361
|
||
|
* return 0
|
||
|
*
|
||
|
* cdef herr_t err_callback(void* client_data) with gil: # <<<<<<<<<<<<<<
|
||
|
* # Callback which sets Python exception based on the current error stack.
|
||
|
* # MUST be "with gil" as it can be called by nogil HDF5 routines.
|
||
|
*/
|
||
|
|
||
|
static herr_t __pyx_f_4h5py_3h5e_err_callback(void *__pyx_v_client_data) {
|
||
|
PyObject *__pyx_v_stack;
|
||
|
PyObject *__pyx_v_a;
|
||
|
PyObject *__pyx_v_exc;
|
||
|
PyObject *__pyx_v_msg;
|
||
|
herr_t __pyx_r;
|
||
|
int __pyx_t_1;
|
||
|
PyObject *__pyx_t_2 = NULL;
|
||
|
PyObject *__pyx_t_3 = NULL;
|
||
|
PyObject *__pyx_t_4 = NULL;
|
||
|
char *__pyx_t_5;
|
||
|
PyGILState_STATE _save = PyGILState_Ensure();
|
||
|
__Pyx_RefNannySetupContext("err_callback");
|
||
|
__pyx_v_stack = Py_None; __Pyx_INCREF(Py_None);
|
||
|
__pyx_v_a = Py_None; __Pyx_INCREF(Py_None);
|
||
|
__pyx_v_exc = Py_None; __Pyx_INCREF(Py_None);
|
||
|
__pyx_v_msg = Py_None; __Pyx_INCREF(Py_None);
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":365
|
||
|
* # MUST be "with gil" as it can be called by nogil HDF5 routines.
|
||
|
*
|
||
|
* if PyErr_Occurred() != NULL: # <<<<<<<<<<<<<<
|
||
|
* # Native Python exceptions can occur inside HDF5 callbacks
|
||
|
* return 1
|
||
|
*/
|
||
|
__pyx_t_1 = (PyErr_Occurred() != NULL);
|
||
|
if (__pyx_t_1) {
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":367
|
||
|
* if PyErr_Occurred() != NULL:
|
||
|
* # Native Python exceptions can occur inside HDF5 callbacks
|
||
|
* return 1 # <<<<<<<<<<<<<<
|
||
|
*
|
||
|
* stack = ErrorStack()
|
||
|
*/
|
||
|
__pyx_r = 1;
|
||
|
goto __pyx_L0;
|
||
|
goto __pyx_L3;
|
||
|
}
|
||
|
__pyx_L3:;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":369
|
||
|
* return 1
|
||
|
*
|
||
|
* stack = ErrorStack() # <<<<<<<<<<<<<<
|
||
|
*
|
||
|
* a = stack.get_exc_msg()
|
||
|
*/
|
||
|
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__ErrorStack); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 369; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_2);
|
||
|
__pyx_t_3 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 369; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_3);
|
||
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
||
|
__Pyx_DECREF(__pyx_v_stack);
|
||
|
__pyx_v_stack = __pyx_t_3;
|
||
|
__pyx_t_3 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":371
|
||
|
* stack = ErrorStack()
|
||
|
*
|
||
|
* a = stack.get_exc_msg() # <<<<<<<<<<<<<<
|
||
|
* if a is None:
|
||
|
* exc, msg = RuntimeError, "No HDF5 exception information found"
|
||
|
*/
|
||
|
__pyx_t_3 = PyObject_GetAttr(__pyx_v_stack, __pyx_n_s__get_exc_msg); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 371; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_3);
|
||
|
__pyx_t_2 = PyObject_Call(__pyx_t_3, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 371; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_2);
|
||
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
||
|
__Pyx_DECREF(__pyx_v_a);
|
||
|
__pyx_v_a = __pyx_t_2;
|
||
|
__pyx_t_2 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":372
|
||
|
*
|
||
|
* a = stack.get_exc_msg()
|
||
|
* if a is None: # <<<<<<<<<<<<<<
|
||
|
* exc, msg = RuntimeError, "No HDF5 exception information found"
|
||
|
* else:
|
||
|
*/
|
||
|
__pyx_t_1 = (__pyx_v_a == Py_None);
|
||
|
if (__pyx_t_1) {
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":373
|
||
|
* a = stack.get_exc_msg()
|
||
|
* if a is None:
|
||
|
* exc, msg = RuntimeError, "No HDF5 exception information found" # <<<<<<<<<<<<<<
|
||
|
* else:
|
||
|
* exc, msg = a
|
||
|
*/
|
||
|
__pyx_t_2 = __pyx_builtin_RuntimeError;
|
||
|
__Pyx_INCREF(__pyx_t_2);
|
||
|
__pyx_t_3 = ((PyObject *)__pyx_kp_s_7);
|
||
|
__Pyx_INCREF(__pyx_t_3);
|
||
|
__Pyx_DECREF(__pyx_v_exc);
|
||
|
__pyx_v_exc = __pyx_t_2;
|
||
|
__pyx_t_2 = 0;
|
||
|
__Pyx_DECREF(__pyx_v_msg);
|
||
|
__pyx_v_msg = __pyx_t_3;
|
||
|
__pyx_t_3 = 0;
|
||
|
goto __pyx_L4;
|
||
|
}
|
||
|
/*else*/ {
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":375
|
||
|
* exc, msg = RuntimeError, "No HDF5 exception information found"
|
||
|
* else:
|
||
|
* exc, msg = a # <<<<<<<<<<<<<<
|
||
|
*
|
||
|
* PyErr_SetString(exc, msg) # Can't use "raise" or the traceback points here
|
||
|
*/
|
||
|
if (PyTuple_CheckExact(__pyx_v_a) && likely(PyTuple_GET_SIZE(__pyx_v_a) == 2)) {
|
||
|
PyObject* tuple = __pyx_v_a;
|
||
|
__pyx_t_3 = PyTuple_GET_ITEM(tuple, 0); __Pyx_INCREF(__pyx_t_3);
|
||
|
__pyx_t_2 = PyTuple_GET_ITEM(tuple, 1); __Pyx_INCREF(__pyx_t_2);
|
||
|
__Pyx_DECREF(__pyx_v_exc);
|
||
|
__pyx_v_exc = __pyx_t_3;
|
||
|
__pyx_t_3 = 0;
|
||
|
__Pyx_DECREF(__pyx_v_msg);
|
||
|
__pyx_v_msg = __pyx_t_2;
|
||
|
__pyx_t_2 = 0;
|
||
|
} else {
|
||
|
__pyx_t_4 = PyObject_GetIter(__pyx_v_a); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 375; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
__pyx_t_3 = __Pyx_UnpackItem(__pyx_t_4, 0); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 375; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_3);
|
||
|
__pyx_t_2 = __Pyx_UnpackItem(__pyx_t_4, 1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 375; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_2);
|
||
|
if (__Pyx_EndUnpack(__pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 375; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
__Pyx_DECREF(__pyx_v_exc);
|
||
|
__pyx_v_exc = __pyx_t_3;
|
||
|
__pyx_t_3 = 0;
|
||
|
__Pyx_DECREF(__pyx_v_msg);
|
||
|
__pyx_v_msg = __pyx_t_2;
|
||
|
__pyx_t_2 = 0;
|
||
|
}
|
||
|
}
|
||
|
__pyx_L4:;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":377
|
||
|
* exc, msg = a
|
||
|
*
|
||
|
* PyErr_SetString(exc, msg) # Can't use "raise" or the traceback points here # <<<<<<<<<<<<<<
|
||
|
*
|
||
|
* return 1
|
||
|
*/
|
||
|
__pyx_t_5 = __Pyx_PyBytes_AsString(__pyx_v_msg); if (unlikely((!__pyx_t_5) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 377; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
PyErr_SetString(__pyx_v_exc, __pyx_t_5);
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":379
|
||
|
* PyErr_SetString(exc, msg) # Can't use "raise" or the traceback points here
|
||
|
*
|
||
|
* return 1 # <<<<<<<<<<<<<<
|
||
|
*
|
||
|
* cdef class HDF5ErrorHandler:
|
||
|
*/
|
||
|
__pyx_r = 1;
|
||
|
goto __pyx_L0;
|
||
|
|
||
|
__pyx_r = 0;
|
||
|
goto __pyx_L0;
|
||
|
__pyx_L1_error:;
|
||
|
__Pyx_XDECREF(__pyx_t_2);
|
||
|
__Pyx_XDECREF(__pyx_t_3);
|
||
|
__Pyx_XDECREF(__pyx_t_4);
|
||
|
__Pyx_WriteUnraisable("h5py.h5e.err_callback");
|
||
|
__pyx_r = 0;
|
||
|
__pyx_L0:;
|
||
|
__Pyx_DECREF(__pyx_v_stack);
|
||
|
__Pyx_DECREF(__pyx_v_a);
|
||
|
__Pyx_DECREF(__pyx_v_exc);
|
||
|
__Pyx_DECREF(__pyx_v_msg);
|
||
|
__Pyx_RefNannyFinishContext();
|
||
|
PyGILState_Release(_save);
|
||
|
return __pyx_r;
|
||
|
}
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":383
|
||
|
* cdef class HDF5ErrorHandler:
|
||
|
*
|
||
|
* def __cinit__(self, *args, **kwds): # <<<<<<<<<<<<<<
|
||
|
* self.auto = NULL
|
||
|
* self.data = NULL
|
||
|
*/
|
||
|
|
||
|
static int __pyx_pf_4h5py_3h5e_16HDF5ErrorHandler___cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
|
||
|
static int __pyx_pf_4h5py_3h5e_16HDF5ErrorHandler___cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
|
||
|
PyObject *__pyx_v_args = 0;
|
||
|
PyObject *__pyx_v_kwds = 0;
|
||
|
int __pyx_r;
|
||
|
__Pyx_RefNannySetupContext("__cinit__");
|
||
|
if (unlikely(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__cinit__", 1))) return -1;
|
||
|
__pyx_v_kwds = (__pyx_kwds) ? PyDict_Copy(__pyx_kwds) : PyDict_New();
|
||
|
if (unlikely(!__pyx_v_kwds)) return -1;
|
||
|
__Pyx_GOTREF(__pyx_v_kwds);
|
||
|
__Pyx_INCREF(__pyx_args);
|
||
|
__pyx_v_args = __pyx_args;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":384
|
||
|
*
|
||
|
* def __cinit__(self, *args, **kwds):
|
||
|
* self.auto = NULL # <<<<<<<<<<<<<<
|
||
|
* self.data = NULL
|
||
|
*
|
||
|
*/
|
||
|
((struct __pyx_obj_4h5py_3h5e_HDF5ErrorHandler *)__pyx_v_self)->__pyx_auto = NULL;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":385
|
||
|
* def __cinit__(self, *args, **kwds):
|
||
|
* self.auto = NULL
|
||
|
* self.data = NULL # <<<<<<<<<<<<<<
|
||
|
*
|
||
|
* NullErrorHandler = HDF5ErrorHandler()
|
||
|
*/
|
||
|
((struct __pyx_obj_4h5py_3h5e_HDF5ErrorHandler *)__pyx_v_self)->data = NULL;
|
||
|
|
||
|
__pyx_r = 0;
|
||
|
__Pyx_DECREF(__pyx_v_args);
|
||
|
__Pyx_DECREF(__pyx_v_kwds);
|
||
|
__Pyx_RefNannyFinishContext();
|
||
|
return __pyx_r;
|
||
|
}
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":389
|
||
|
* NullErrorHandler = HDF5ErrorHandler()
|
||
|
*
|
||
|
* cpdef object register_thread(): # <<<<<<<<<<<<<<
|
||
|
* """ () => HDF5ErrorHandler
|
||
|
*
|
||
|
*/
|
||
|
|
||
|
static PyObject *__pyx_pf_4h5py_3h5e_register_thread(PyObject *__pyx_self, PyObject *unused); /*proto*/
|
||
|
static PyObject *__pyx_f_4h5py_3h5e_register_thread(int __pyx_skip_dispatch) {
|
||
|
struct __pyx_obj_4h5py_3h5e_HDF5ErrorHandler *__pyx_v_handler = 0;
|
||
|
H5E_auto_t __pyx_v_auto;
|
||
|
void *__pyx_v_data;
|
||
|
PyObject *__pyx_r = NULL;
|
||
|
PyObject *__pyx_t_1 = NULL;
|
||
|
int __pyx_t_2;
|
||
|
PyObject *__pyx_t_3 = NULL;
|
||
|
__Pyx_RefNannySetupContext("register_thread");
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":403
|
||
|
* previous behavior.
|
||
|
* """
|
||
|
* cdef HDF5ErrorHandler handler = HDF5ErrorHandler() # <<<<<<<<<<<<<<
|
||
|
* cdef H5E_auto_t auto
|
||
|
* cdef void* data
|
||
|
*/
|
||
|
__pyx_t_1 = PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_4h5py_3h5e_HDF5ErrorHandler)), ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 403; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_1);
|
||
|
__pyx_v_handler = ((struct __pyx_obj_4h5py_3h5e_HDF5ErrorHandler *)__pyx_t_1);
|
||
|
__pyx_t_1 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":406
|
||
|
* cdef H5E_auto_t auto
|
||
|
* cdef void* data
|
||
|
* if H5Eget_auto(&auto, &data) < 0: # <<<<<<<<<<<<<<
|
||
|
* raise RuntimeError("Failed to retrieve HDF5 error handler")
|
||
|
* handler.auto = auto
|
||
|
*/
|
||
|
__pyx_t_2 = (H5Eget_auto((&__pyx_v_auto), (&__pyx_v_data)) < 0);
|
||
|
if (__pyx_t_2) {
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":407
|
||
|
* cdef void* data
|
||
|
* if H5Eget_auto(&auto, &data) < 0:
|
||
|
* raise RuntimeError("Failed to retrieve HDF5 error handler") # <<<<<<<<<<<<<<
|
||
|
* handler.auto = auto
|
||
|
* handler.data = data
|
||
|
*/
|
||
|
__pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 407; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_1);
|
||
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_8));
|
||
|
PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_kp_s_8));
|
||
|
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_8));
|
||
|
__pyx_t_3 = PyObject_Call(__pyx_builtin_RuntimeError, __pyx_t_1, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 407; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_3);
|
||
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
||
|
__Pyx_Raise(__pyx_t_3, 0, 0);
|
||
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
||
|
{__pyx_filename = __pyx_f[0]; __pyx_lineno = 407; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
goto __pyx_L3;
|
||
|
}
|
||
|
__pyx_L3:;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":408
|
||
|
* if H5Eget_auto(&auto, &data) < 0:
|
||
|
* raise RuntimeError("Failed to retrieve HDF5 error handler")
|
||
|
* handler.auto = auto # <<<<<<<<<<<<<<
|
||
|
* handler.data = data
|
||
|
* if H5Eset_auto(err_callback, NULL) < 0:
|
||
|
*/
|
||
|
__pyx_v_handler->__pyx_auto = __pyx_v_auto;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":409
|
||
|
* raise RuntimeError("Failed to retrieve HDF5 error handler")
|
||
|
* handler.auto = auto
|
||
|
* handler.data = data # <<<<<<<<<<<<<<
|
||
|
* if H5Eset_auto(err_callback, NULL) < 0:
|
||
|
* raise RuntimeError("Failed to register HDF5 exception callback")
|
||
|
*/
|
||
|
__pyx_v_handler->data = __pyx_v_data;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":410
|
||
|
* handler.auto = auto
|
||
|
* handler.data = data
|
||
|
* if H5Eset_auto(err_callback, NULL) < 0: # <<<<<<<<<<<<<<
|
||
|
* raise RuntimeError("Failed to register HDF5 exception callback")
|
||
|
* return handler
|
||
|
*/
|
||
|
__pyx_t_2 = (H5Eset_auto(__pyx_f_4h5py_3h5e_err_callback, NULL) < 0);
|
||
|
if (__pyx_t_2) {
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":411
|
||
|
* handler.data = data
|
||
|
* if H5Eset_auto(err_callback, NULL) < 0:
|
||
|
* raise RuntimeError("Failed to register HDF5 exception callback") # <<<<<<<<<<<<<<
|
||
|
* return handler
|
||
|
*
|
||
|
*/
|
||
|
__pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 411; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_3);
|
||
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_9));
|
||
|
PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_kp_s_9));
|
||
|
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_9));
|
||
|
__pyx_t_1 = PyObject_Call(__pyx_builtin_RuntimeError, __pyx_t_3, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 411; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_1);
|
||
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
||
|
__Pyx_Raise(__pyx_t_1, 0, 0);
|
||
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
||
|
{__pyx_filename = __pyx_f[0]; __pyx_lineno = 411; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
goto __pyx_L4;
|
||
|
}
|
||
|
__pyx_L4:;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":412
|
||
|
* if H5Eset_auto(err_callback, NULL) < 0:
|
||
|
* raise RuntimeError("Failed to register HDF5 exception callback")
|
||
|
* return handler # <<<<<<<<<<<<<<
|
||
|
*
|
||
|
* cpdef object unregister_thread(HDF5ErrorHandler handler=None):
|
||
|
*/
|
||
|
__Pyx_XDECREF(__pyx_r);
|
||
|
__Pyx_INCREF(((PyObject *)__pyx_v_handler));
|
||
|
__pyx_r = ((PyObject *)__pyx_v_handler);
|
||
|
goto __pyx_L0;
|
||
|
|
||
|
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
|
||
|
goto __pyx_L0;
|
||
|
__pyx_L1_error:;
|
||
|
__Pyx_XDECREF(__pyx_t_1);
|
||
|
__Pyx_XDECREF(__pyx_t_3);
|
||
|
__Pyx_AddTraceback("h5py.h5e.register_thread");
|
||
|
__pyx_r = 0;
|
||
|
__pyx_L0:;
|
||
|
__Pyx_XDECREF((PyObject *)__pyx_v_handler);
|
||
|
__Pyx_XGIVEREF(__pyx_r);
|
||
|
__Pyx_RefNannyFinishContext();
|
||
|
return __pyx_r;
|
||
|
}
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":389
|
||
|
* NullErrorHandler = HDF5ErrorHandler()
|
||
|
*
|
||
|
* cpdef object register_thread(): # <<<<<<<<<<<<<<
|
||
|
* """ () => HDF5ErrorHandler
|
||
|
*
|
||
|
*/
|
||
|
|
||
|
static PyObject *__pyx_pf_4h5py_3h5e_register_thread(PyObject *__pyx_self, PyObject *unused); /*proto*/
|
||
|
static char __pyx_doc_4h5py_3h5e_register_thread[] = " () => HDF5ErrorHandler\n\n Register the current thread for native HDF5 exception support.\n\n Code which uses the low-level HDF5 API (h5py.h5*) is required to call\n this function before using HDF5. The main thread is automatically\n registered when h5py is imported. The high-level interface (h5py.*)\n is unaffected.\n\n Returns an opaque object which represents the previously-installed error\n handler. Passing this object to unregister_thread will restore the\n previous behavior.\n ";
|
||
|
static PyObject *__pyx_pf_4h5py_3h5e_register_thread(PyObject *__pyx_self, PyObject *unused) {
|
||
|
PyObject *__pyx_r = NULL;
|
||
|
PyObject *__pyx_t_1 = NULL;
|
||
|
__Pyx_RefNannySetupContext("register_thread");
|
||
|
__pyx_self = __pyx_self;
|
||
|
__Pyx_XDECREF(__pyx_r);
|
||
|
__pyx_t_1 = __pyx_f_4h5py_3h5e_register_thread(0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 389; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_1);
|
||
|
__pyx_r = __pyx_t_1;
|
||
|
__pyx_t_1 = 0;
|
||
|
goto __pyx_L0;
|
||
|
|
||
|
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
|
||
|
goto __pyx_L0;
|
||
|
__pyx_L1_error:;
|
||
|
__Pyx_XDECREF(__pyx_t_1);
|
||
|
__Pyx_AddTraceback("h5py.h5e.register_thread");
|
||
|
__pyx_r = NULL;
|
||
|
__pyx_L0:;
|
||
|
__Pyx_XGIVEREF(__pyx_r);
|
||
|
__Pyx_RefNannyFinishContext();
|
||
|
return __pyx_r;
|
||
|
}
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":414
|
||
|
* return handler
|
||
|
*
|
||
|
* cpdef object unregister_thread(HDF5ErrorHandler handler=None): # <<<<<<<<<<<<<<
|
||
|
* """ (HDF5ErrorHandler handler=None)
|
||
|
*
|
||
|
*/
|
||
|
|
||
|
static PyObject *__pyx_pf_4h5py_3h5e_unregister_thread(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
|
||
|
static PyObject *__pyx_f_4h5py_3h5e_unregister_thread(int __pyx_skip_dispatch, struct __pyx_opt_args_4h5py_3h5e_unregister_thread *__pyx_optional_args) {
|
||
|
struct __pyx_obj_4h5py_3h5e_HDF5ErrorHandler *__pyx_v_handler = ((struct __pyx_obj_4h5py_3h5e_HDF5ErrorHandler *)Py_None);
|
||
|
H5E_auto_t __pyx_v_auto;
|
||
|
void *__pyx_v_data;
|
||
|
PyObject *__pyx_r = NULL;
|
||
|
int __pyx_t_1;
|
||
|
PyObject *__pyx_t_2 = NULL;
|
||
|
PyObject *__pyx_t_3 = NULL;
|
||
|
__Pyx_RefNannySetupContext("unregister_thread");
|
||
|
if (__pyx_optional_args) {
|
||
|
if (__pyx_optional_args->__pyx_n > 0) {
|
||
|
__pyx_v_handler = __pyx_optional_args->handler;
|
||
|
}
|
||
|
}
|
||
|
__Pyx_INCREF((PyObject *)__pyx_v_handler);
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":429
|
||
|
* Does not affect any other thread. Safe to call more than once.
|
||
|
* """
|
||
|
* cdef H5E_auto_t auto = H5Eprint # <<<<<<<<<<<<<<
|
||
|
* cdef void* data = NULL
|
||
|
*
|
||
|
*/
|
||
|
__pyx_v_auto = H5Eprint;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":430
|
||
|
* """
|
||
|
* cdef H5E_auto_t auto = H5Eprint
|
||
|
* cdef void* data = NULL # <<<<<<<<<<<<<<
|
||
|
*
|
||
|
* if handler is not None:
|
||
|
*/
|
||
|
__pyx_v_data = NULL;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":432
|
||
|
* cdef void* data = NULL
|
||
|
*
|
||
|
* if handler is not None: # <<<<<<<<<<<<<<
|
||
|
* auto = <H5E_auto_t>handler.auto
|
||
|
* data = handler.data
|
||
|
*/
|
||
|
__pyx_t_1 = (((PyObject *)__pyx_v_handler) != Py_None);
|
||
|
if (__pyx_t_1) {
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":433
|
||
|
*
|
||
|
* if handler is not None:
|
||
|
* auto = <H5E_auto_t>handler.auto # <<<<<<<<<<<<<<
|
||
|
* data = handler.data
|
||
|
*
|
||
|
*/
|
||
|
__pyx_v_auto = ((herr_t (*)(void *))__pyx_v_handler->__pyx_auto);
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":434
|
||
|
* if handler is not None:
|
||
|
* auto = <H5E_auto_t>handler.auto
|
||
|
* data = handler.data # <<<<<<<<<<<<<<
|
||
|
*
|
||
|
* if H5Eset_auto(auto, data) < 0:
|
||
|
*/
|
||
|
__pyx_v_data = __pyx_v_handler->data;
|
||
|
goto __pyx_L3;
|
||
|
}
|
||
|
__pyx_L3:;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":436
|
||
|
* data = handler.data
|
||
|
*
|
||
|
* if H5Eset_auto(auto, data) < 0: # <<<<<<<<<<<<<<
|
||
|
* raise RuntimeError("Failed to unregister HDF5 exception callback")
|
||
|
*
|
||
|
*/
|
||
|
__pyx_t_1 = (H5Eset_auto(__pyx_v_auto, __pyx_v_data) < 0);
|
||
|
if (__pyx_t_1) {
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":437
|
||
|
*
|
||
|
* if H5Eset_auto(auto, data) < 0:
|
||
|
* raise RuntimeError("Failed to unregister HDF5 exception callback") # <<<<<<<<<<<<<<
|
||
|
*
|
||
|
* cdef err_cookie disable_errors() except *:
|
||
|
*/
|
||
|
__pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 437; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_2);
|
||
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_10));
|
||
|
PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_kp_s_10));
|
||
|
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_10));
|
||
|
__pyx_t_3 = PyObject_Call(__pyx_builtin_RuntimeError, __pyx_t_2, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 437; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_3);
|
||
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
||
|
__Pyx_Raise(__pyx_t_3, 0, 0);
|
||
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
||
|
{__pyx_filename = __pyx_f[0]; __pyx_lineno = 437; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
goto __pyx_L4;
|
||
|
}
|
||
|
__pyx_L4:;
|
||
|
|
||
|
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
|
||
|
goto __pyx_L0;
|
||
|
__pyx_L1_error:;
|
||
|
__Pyx_XDECREF(__pyx_t_2);
|
||
|
__Pyx_XDECREF(__pyx_t_3);
|
||
|
__Pyx_AddTraceback("h5py.h5e.unregister_thread");
|
||
|
__pyx_r = 0;
|
||
|
__pyx_L0:;
|
||
|
__Pyx_DECREF((PyObject *)__pyx_v_handler);
|
||
|
__Pyx_XGIVEREF(__pyx_r);
|
||
|
__Pyx_RefNannyFinishContext();
|
||
|
return __pyx_r;
|
||
|
}
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":414
|
||
|
* return handler
|
||
|
*
|
||
|
* cpdef object unregister_thread(HDF5ErrorHandler handler=None): # <<<<<<<<<<<<<<
|
||
|
* """ (HDF5ErrorHandler handler=None)
|
||
|
*
|
||
|
*/
|
||
|
|
||
|
static PyObject *__pyx_pf_4h5py_3h5e_unregister_thread(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
|
||
|
static char __pyx_doc_4h5py_3h5e_unregister_thread[] = " (HDF5ErrorHandler handler=None)\n\n Unregister the current thread, turning off HDF5 exception support.\n\n This will disable h5py in the current thread, making third-party libraries\n free to interact with the HDF5 error subsystem as they wish. Call\n register_thread() again to re-enable exception support.\n\n If a \"native\" error handler has been retrieved with register_thread(), it\n can be reinstalled by passing it to this function. If not, it installs\n the default HDF5 handler H5Eprint.\n\n Does not affect any other thread. Safe to call more than once.\n ";
|
||
|
static PyObject *__pyx_pf_4h5py_3h5e_unregister_thread(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
|
||
|
struct __pyx_obj_4h5py_3h5e_HDF5ErrorHandler *__pyx_v_handler = 0;
|
||
|
PyObject *__pyx_r = NULL;
|
||
|
PyObject *__pyx_t_1 = NULL;
|
||
|
struct __pyx_opt_args_4h5py_3h5e_unregister_thread __pyx_t_2;
|
||
|
static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__handler,0};
|
||
|
__Pyx_RefNannySetupContext("unregister_thread");
|
||
|
__pyx_self = __pyx_self;
|
||
|
if (unlikely(__pyx_kwds)) {
|
||
|
Py_ssize_t kw_args = PyDict_Size(__pyx_kwds);
|
||
|
PyObject* values[1] = {0};
|
||
|
values[0] = (PyObject*)((struct __pyx_obj_4h5py_3h5e_HDF5ErrorHandler *)Py_None);
|
||
|
switch (PyTuple_GET_SIZE(__pyx_args)) {
|
||
|
case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
|
||
|
case 0: break;
|
||
|
default: goto __pyx_L5_argtuple_error;
|
||
|
}
|
||
|
switch (PyTuple_GET_SIZE(__pyx_args)) {
|
||
|
case 0:
|
||
|
if (kw_args > 0) {
|
||
|
PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s__handler);
|
||
|
if (unlikely(value)) { values[0] = value; kw_args--; }
|
||
|
}
|
||
|
}
|
||
|
if (unlikely(kw_args > 0)) {
|
||
|
if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "unregister_thread") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 414; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
|
||
|
}
|
||
|
__pyx_v_handler = ((struct __pyx_obj_4h5py_3h5e_HDF5ErrorHandler *)values[0]);
|
||
|
} else {
|
||
|
__pyx_v_handler = ((struct __pyx_obj_4h5py_3h5e_HDF5ErrorHandler *)Py_None);
|
||
|
switch (PyTuple_GET_SIZE(__pyx_args)) {
|
||
|
case 1: __pyx_v_handler = ((struct __pyx_obj_4h5py_3h5e_HDF5ErrorHandler *)PyTuple_GET_ITEM(__pyx_args, 0));
|
||
|
case 0: break;
|
||
|
default: goto __pyx_L5_argtuple_error;
|
||
|
}
|
||
|
}
|
||
|
goto __pyx_L4_argument_unpacking_done;
|
||
|
__pyx_L5_argtuple_error:;
|
||
|
__Pyx_RaiseArgtupleInvalid("unregister_thread", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 414; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
|
||
|
__pyx_L3_error:;
|
||
|
__Pyx_AddTraceback("h5py.h5e.unregister_thread");
|
||
|
return NULL;
|
||
|
__pyx_L4_argument_unpacking_done:;
|
||
|
if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_handler), __pyx_ptype_4h5py_3h5e_HDF5ErrorHandler, 1, "handler", 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 414; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_XDECREF(__pyx_r);
|
||
|
__pyx_t_2.__pyx_n = 1;
|
||
|
__pyx_t_2.handler = __pyx_v_handler;
|
||
|
__pyx_t_1 = __pyx_f_4h5py_3h5e_unregister_thread(0, &__pyx_t_2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 414; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_1);
|
||
|
__pyx_r = __pyx_t_1;
|
||
|
__pyx_t_1 = 0;
|
||
|
goto __pyx_L0;
|
||
|
|
||
|
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
|
||
|
goto __pyx_L0;
|
||
|
__pyx_L1_error:;
|
||
|
__Pyx_XDECREF(__pyx_t_1);
|
||
|
__Pyx_AddTraceback("h5py.h5e.unregister_thread");
|
||
|
__pyx_r = NULL;
|
||
|
__pyx_L0:;
|
||
|
__Pyx_XGIVEREF(__pyx_r);
|
||
|
__Pyx_RefNannyFinishContext();
|
||
|
return __pyx_r;
|
||
|
}
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":439
|
||
|
* raise RuntimeError("Failed to unregister HDF5 exception callback")
|
||
|
*
|
||
|
* cdef err_cookie disable_errors() except *: # <<<<<<<<<<<<<<
|
||
|
* # Temporarily disable errors for the current thread
|
||
|
* cdef err_cookie cookie
|
||
|
*/
|
||
|
|
||
|
static __pyx_t_4h5py_3h5e_err_cookie __pyx_f_4h5py_3h5e_disable_errors(void) {
|
||
|
__pyx_t_4h5py_3h5e_err_cookie __pyx_v_cookie;
|
||
|
__pyx_t_4h5py_3h5e_err_cookie __pyx_r;
|
||
|
__Pyx_RefNannySetupContext("disable_errors");
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":442
|
||
|
* # Temporarily disable errors for the current thread
|
||
|
* cdef err_cookie cookie
|
||
|
* H5Eget_auto(&cookie.func, &cookie.data) # <<<<<<<<<<<<<<
|
||
|
* H5Eset_auto(NULL, NULL)
|
||
|
* return cookie
|
||
|
*/
|
||
|
H5Eget_auto((&__pyx_v_cookie.func), (&__pyx_v_cookie.data));
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":443
|
||
|
* cdef err_cookie cookie
|
||
|
* H5Eget_auto(&cookie.func, &cookie.data)
|
||
|
* H5Eset_auto(NULL, NULL) # <<<<<<<<<<<<<<
|
||
|
* return cookie
|
||
|
*
|
||
|
*/
|
||
|
H5Eset_auto(NULL, NULL);
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":444
|
||
|
* H5Eget_auto(&cookie.func, &cookie.data)
|
||
|
* H5Eset_auto(NULL, NULL)
|
||
|
* return cookie # <<<<<<<<<<<<<<
|
||
|
*
|
||
|
* cdef void enable_errors(err_cookie cookie) except *:
|
||
|
*/
|
||
|
__pyx_r = __pyx_v_cookie;
|
||
|
goto __pyx_L0;
|
||
|
|
||
|
__pyx_L0:;
|
||
|
__Pyx_RefNannyFinishContext();
|
||
|
return __pyx_r;
|
||
|
}
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":446
|
||
|
* return cookie
|
||
|
*
|
||
|
* cdef void enable_errors(err_cookie cookie) except *: # <<<<<<<<<<<<<<
|
||
|
* # Re-enable errors for the current thread
|
||
|
* cdef herr_t retval
|
||
|
*/
|
||
|
|
||
|
static void __pyx_f_4h5py_3h5e_enable_errors(__pyx_t_4h5py_3h5e_err_cookie __pyx_v_cookie) {
|
||
|
herr_t __pyx_v_retval;
|
||
|
int __pyx_t_1;
|
||
|
PyObject *__pyx_t_2 = NULL;
|
||
|
PyObject *__pyx_t_3 = NULL;
|
||
|
__Pyx_RefNannySetupContext("enable_errors");
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":449
|
||
|
* # Re-enable errors for the current thread
|
||
|
* cdef herr_t retval
|
||
|
* retval = H5Eset_auto(cookie.func, cookie.data) # <<<<<<<<<<<<<<
|
||
|
* if(retval < 0):
|
||
|
* raise RuntimeError("Cant' re-enable exception support")
|
||
|
*/
|
||
|
__pyx_v_retval = H5Eset_auto(__pyx_v_cookie.func, __pyx_v_cookie.data);
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":450
|
||
|
* cdef herr_t retval
|
||
|
* retval = H5Eset_auto(cookie.func, cookie.data)
|
||
|
* if(retval < 0): # <<<<<<<<<<<<<<
|
||
|
* raise RuntimeError("Cant' re-enable exception support")
|
||
|
*
|
||
|
*/
|
||
|
__pyx_t_1 = (__pyx_v_retval < 0);
|
||
|
if (__pyx_t_1) {
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":451
|
||
|
* retval = H5Eset_auto(cookie.func, cookie.data)
|
||
|
* if(retval < 0):
|
||
|
* raise RuntimeError("Cant' re-enable exception support") # <<<<<<<<<<<<<<
|
||
|
*
|
||
|
*
|
||
|
*/
|
||
|
__pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 451; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_2);
|
||
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_11));
|
||
|
PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_kp_s_11));
|
||
|
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_11));
|
||
|
__pyx_t_3 = PyObject_Call(__pyx_builtin_RuntimeError, __pyx_t_2, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 451; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_3);
|
||
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
||
|
__Pyx_Raise(__pyx_t_3, 0, 0);
|
||
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
||
|
{__pyx_filename = __pyx_f[0]; __pyx_lineno = 451; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
goto __pyx_L3;
|
||
|
}
|
||
|
__pyx_L3:;
|
||
|
|
||
|
goto __pyx_L0;
|
||
|
__pyx_L1_error:;
|
||
|
__Pyx_XDECREF(__pyx_t_2);
|
||
|
__Pyx_XDECREF(__pyx_t_3);
|
||
|
__Pyx_AddTraceback("h5py.h5e.enable_errors");
|
||
|
__pyx_L0:;
|
||
|
__Pyx_RefNannyFinishContext();
|
||
|
}
|
||
|
|
||
|
static PyObject *__pyx_tp_new_4h5py_3h5e_HDF5ErrorHandler(PyTypeObject *t, PyObject *a, PyObject *k) {
|
||
|
PyObject *o = (*t->tp_alloc)(t, 0);
|
||
|
if (!o) return 0;
|
||
|
if (__pyx_pf_4h5py_3h5e_16HDF5ErrorHandler___cinit__(o, a, k) < 0) {
|
||
|
Py_DECREF(o); o = 0;
|
||
|
}
|
||
|
return o;
|
||
|
}
|
||
|
|
||
|
static void __pyx_tp_dealloc_4h5py_3h5e_HDF5ErrorHandler(PyObject *o) {
|
||
|
(*Py_TYPE(o)->tp_free)(o);
|
||
|
}
|
||
|
|
||
|
static struct PyMethodDef __pyx_methods_4h5py_3h5e_HDF5ErrorHandler[] = {
|
||
|
{0, 0, 0, 0}
|
||
|
};
|
||
|
|
||
|
static PyNumberMethods __pyx_tp_as_number_HDF5ErrorHandler = {
|
||
|
0, /*nb_add*/
|
||
|
0, /*nb_subtract*/
|
||
|
0, /*nb_multiply*/
|
||
|
#if PY_MAJOR_VERSION < 3
|
||
|
0, /*nb_divide*/
|
||
|
#endif
|
||
|
0, /*nb_remainder*/
|
||
|
0, /*nb_divmod*/
|
||
|
0, /*nb_power*/
|
||
|
0, /*nb_negative*/
|
||
|
0, /*nb_positive*/
|
||
|
0, /*nb_absolute*/
|
||
|
0, /*nb_nonzero*/
|
||
|
0, /*nb_invert*/
|
||
|
0, /*nb_lshift*/
|
||
|
0, /*nb_rshift*/
|
||
|
0, /*nb_and*/
|
||
|
0, /*nb_xor*/
|
||
|
0, /*nb_or*/
|
||
|
#if PY_MAJOR_VERSION < 3
|
||
|
0, /*nb_coerce*/
|
||
|
#endif
|
||
|
0, /*nb_int*/
|
||
|
#if PY_MAJOR_VERSION >= 3
|
||
|
0, /*reserved*/
|
||
|
#else
|
||
|
0, /*nb_long*/
|
||
|
#endif
|
||
|
0, /*nb_float*/
|
||
|
#if PY_MAJOR_VERSION < 3
|
||
|
0, /*nb_oct*/
|
||
|
#endif
|
||
|
#if PY_MAJOR_VERSION < 3
|
||
|
0, /*nb_hex*/
|
||
|
#endif
|
||
|
0, /*nb_inplace_add*/
|
||
|
0, /*nb_inplace_subtract*/
|
||
|
0, /*nb_inplace_multiply*/
|
||
|
#if PY_MAJOR_VERSION < 3
|
||
|
0, /*nb_inplace_divide*/
|
||
|
#endif
|
||
|
0, /*nb_inplace_remainder*/
|
||
|
0, /*nb_inplace_power*/
|
||
|
0, /*nb_inplace_lshift*/
|
||
|
0, /*nb_inplace_rshift*/
|
||
|
0, /*nb_inplace_and*/
|
||
|
0, /*nb_inplace_xor*/
|
||
|
0, /*nb_inplace_or*/
|
||
|
0, /*nb_floor_divide*/
|
||
|
0, /*nb_true_divide*/
|
||
|
0, /*nb_inplace_floor_divide*/
|
||
|
0, /*nb_inplace_true_divide*/
|
||
|
#if (PY_MAJOR_VERSION >= 3) || (Py_TPFLAGS_DEFAULT & Py_TPFLAGS_HAVE_INDEX)
|
||
|
0, /*nb_index*/
|
||
|
#endif
|
||
|
};
|
||
|
|
||
|
static PySequenceMethods __pyx_tp_as_sequence_HDF5ErrorHandler = {
|
||
|
0, /*sq_length*/
|
||
|
0, /*sq_concat*/
|
||
|
0, /*sq_repeat*/
|
||
|
0, /*sq_item*/
|
||
|
0, /*sq_slice*/
|
||
|
0, /*sq_ass_item*/
|
||
|
0, /*sq_ass_slice*/
|
||
|
0, /*sq_contains*/
|
||
|
0, /*sq_inplace_concat*/
|
||
|
0, /*sq_inplace_repeat*/
|
||
|
};
|
||
|
|
||
|
static PyMappingMethods __pyx_tp_as_mapping_HDF5ErrorHandler = {
|
||
|
0, /*mp_length*/
|
||
|
0, /*mp_subscript*/
|
||
|
0, /*mp_ass_subscript*/
|
||
|
};
|
||
|
|
||
|
static PyBufferProcs __pyx_tp_as_buffer_HDF5ErrorHandler = {
|
||
|
#if PY_MAJOR_VERSION < 3
|
||
|
0, /*bf_getreadbuffer*/
|
||
|
#endif
|
||
|
#if PY_MAJOR_VERSION < 3
|
||
|
0, /*bf_getwritebuffer*/
|
||
|
#endif
|
||
|
#if PY_MAJOR_VERSION < 3
|
||
|
0, /*bf_getsegcount*/
|
||
|
#endif
|
||
|
#if PY_MAJOR_VERSION < 3
|
||
|
0, /*bf_getcharbuffer*/
|
||
|
#endif
|
||
|
#if PY_VERSION_HEX >= 0x02060000
|
||
|
0, /*bf_getbuffer*/
|
||
|
#endif
|
||
|
#if PY_VERSION_HEX >= 0x02060000
|
||
|
0, /*bf_releasebuffer*/
|
||
|
#endif
|
||
|
};
|
||
|
|
||
|
PyTypeObject __pyx_type_4h5py_3h5e_HDF5ErrorHandler = {
|
||
|
PyVarObject_HEAD_INIT(0, 0)
|
||
|
__Pyx_NAMESTR("h5py.h5e.HDF5ErrorHandler"), /*tp_name*/
|
||
|
sizeof(struct __pyx_obj_4h5py_3h5e_HDF5ErrorHandler), /*tp_basicsize*/
|
||
|
0, /*tp_itemsize*/
|
||
|
__pyx_tp_dealloc_4h5py_3h5e_HDF5ErrorHandler, /*tp_dealloc*/
|
||
|
0, /*tp_print*/
|
||
|
0, /*tp_getattr*/
|
||
|
0, /*tp_setattr*/
|
||
|
0, /*tp_compare*/
|
||
|
0, /*tp_repr*/
|
||
|
&__pyx_tp_as_number_HDF5ErrorHandler, /*tp_as_number*/
|
||
|
&__pyx_tp_as_sequence_HDF5ErrorHandler, /*tp_as_sequence*/
|
||
|
&__pyx_tp_as_mapping_HDF5ErrorHandler, /*tp_as_mapping*/
|
||
|
0, /*tp_hash*/
|
||
|
0, /*tp_call*/
|
||
|
0, /*tp_str*/
|
||
|
0, /*tp_getattro*/
|
||
|
0, /*tp_setattro*/
|
||
|
&__pyx_tp_as_buffer_HDF5ErrorHandler, /*tp_as_buffer*/
|
||
|
Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_NEWBUFFER, /*tp_flags*/
|
||
|
__Pyx_DOCSTR("\n Opaque python-side encapsulation of an HDF5 error callback.\n Contains a reference to both a function and its associated void* data.\n "), /*tp_doc*/
|
||
|
0, /*tp_traverse*/
|
||
|
0, /*tp_clear*/
|
||
|
0, /*tp_richcompare*/
|
||
|
0, /*tp_weaklistoffset*/
|
||
|
0, /*tp_iter*/
|
||
|
0, /*tp_iternext*/
|
||
|
__pyx_methods_4h5py_3h5e_HDF5ErrorHandler, /*tp_methods*/
|
||
|
0, /*tp_members*/
|
||
|
0, /*tp_getset*/
|
||
|
0, /*tp_base*/
|
||
|
0, /*tp_dict*/
|
||
|
0, /*tp_descr_get*/
|
||
|
0, /*tp_descr_set*/
|
||
|
0, /*tp_dictoffset*/
|
||
|
0, /*tp_init*/
|
||
|
0, /*tp_alloc*/
|
||
|
__pyx_tp_new_4h5py_3h5e_HDF5ErrorHandler, /*tp_new*/
|
||
|
0, /*tp_free*/
|
||
|
0, /*tp_is_gc*/
|
||
|
0, /*tp_bases*/
|
||
|
0, /*tp_mro*/
|
||
|
0, /*tp_cache*/
|
||
|
0, /*tp_subclasses*/
|
||
|
0, /*tp_weaklist*/
|
||
|
0, /*tp_del*/
|
||
|
#if PY_VERSION_HEX >= 0x02060000
|
||
|
0, /*tp_version_tag*/
|
||
|
#endif
|
||
|
};
|
||
|
|
||
|
static PyObject *__pyx_tp_new_4h5py_3h5e_ErrorStackElement(PyTypeObject *t, PyObject *a, PyObject *k) {
|
||
|
PyObject *o = __pyx_ptype_4h5py_2h5_SmartStruct->tp_new(t, a, k);
|
||
|
if (!o) return 0;
|
||
|
return o;
|
||
|
}
|
||
|
|
||
|
static void __pyx_tp_dealloc_4h5py_3h5e_ErrorStackElement(PyObject *o) {
|
||
|
__pyx_ptype_4h5py_2h5_SmartStruct->tp_dealloc(o);
|
||
|
}
|
||
|
|
||
|
static int __pyx_tp_traverse_4h5py_3h5e_ErrorStackElement(PyObject *o, visitproc v, void *a) {
|
||
|
int e;
|
||
|
if (__pyx_ptype_4h5py_2h5_SmartStruct->tp_traverse) {
|
||
|
e = __pyx_ptype_4h5py_2h5_SmartStruct->tp_traverse(o, v, a); if (e) return e;
|
||
|
}
|
||
|
return 0;
|
||
|
}
|
||
|
|
||
|
static int __pyx_tp_clear_4h5py_3h5e_ErrorStackElement(PyObject *o) {
|
||
|
if (__pyx_ptype_4h5py_2h5_SmartStruct->tp_clear) {
|
||
|
__pyx_ptype_4h5py_2h5_SmartStruct->tp_clear(o);
|
||
|
}
|
||
|
return 0;
|
||
|
}
|
||
|
|
||
|
static PyObject *__pyx_getprop_4h5py_3h5e_17ErrorStackElement_func_name(PyObject *o, void *x) {
|
||
|
return __pyx_pf_4h5py_3h5e_17ErrorStackElement_9func_name___get__(o);
|
||
|
}
|
||
|
|
||
|
static PyObject *__pyx_getprop_4h5py_3h5e_17ErrorStackElement_desc(PyObject *o, void *x) {
|
||
|
return __pyx_pf_4h5py_3h5e_17ErrorStackElement_4desc___get__(o);
|
||
|
}
|
||
|
|
||
|
static PyObject *__pyx_getprop_4h5py_3h5e_17ErrorStackElement_code(PyObject *o, void *x) {
|
||
|
return __pyx_pf_4h5py_3h5e_17ErrorStackElement_4code___get__(o);
|
||
|
}
|
||
|
|
||
|
static PyObject *__pyx_getprop_4h5py_3h5e_17ErrorStackElement_code_desc(PyObject *o, void *x) {
|
||
|
return __pyx_pf_4h5py_3h5e_17ErrorStackElement_9code_desc___get__(o);
|
||
|
}
|
||
|
|
||
|
static struct PyMethodDef __pyx_methods_4h5py_3h5e_ErrorStackElement[] = {
|
||
|
{0, 0, 0, 0}
|
||
|
};
|
||
|
|
||
|
static struct PyGetSetDef __pyx_getsets_4h5py_3h5e_ErrorStackElement[] = {
|
||
|
{(char *)"func_name", __pyx_getprop_4h5py_3h5e_17ErrorStackElement_func_name, 0, __Pyx_DOCSTR(__pyx_k_12), 0},
|
||
|
{(char *)"desc", __pyx_getprop_4h5py_3h5e_17ErrorStackElement_desc, 0, __Pyx_DOCSTR(__pyx_k_13), 0},
|
||
|
{(char *)"code", __pyx_getprop_4h5py_3h5e_17ErrorStackElement_code, 0, __Pyx_DOCSTR(__pyx_k_14), 0},
|
||
|
{(char *)"code_desc", __pyx_getprop_4h5py_3h5e_17ErrorStackElement_code_desc, 0, __Pyx_DOCSTR(__pyx_k_15), 0},
|
||
|
{0, 0, 0, 0, 0}
|
||
|
};
|
||
|
|
||
|
static PyNumberMethods __pyx_tp_as_number_ErrorStackElement = {
|
||
|
0, /*nb_add*/
|
||
|
0, /*nb_subtract*/
|
||
|
0, /*nb_multiply*/
|
||
|
#if PY_MAJOR_VERSION < 3
|
||
|
0, /*nb_divide*/
|
||
|
#endif
|
||
|
0, /*nb_remainder*/
|
||
|
0, /*nb_divmod*/
|
||
|
0, /*nb_power*/
|
||
|
0, /*nb_negative*/
|
||
|
0, /*nb_positive*/
|
||
|
0, /*nb_absolute*/
|
||
|
0, /*nb_nonzero*/
|
||
|
0, /*nb_invert*/
|
||
|
0, /*nb_lshift*/
|
||
|
0, /*nb_rshift*/
|
||
|
0, /*nb_and*/
|
||
|
0, /*nb_xor*/
|
||
|
0, /*nb_or*/
|
||
|
#if PY_MAJOR_VERSION < 3
|
||
|
0, /*nb_coerce*/
|
||
|
#endif
|
||
|
0, /*nb_int*/
|
||
|
#if PY_MAJOR_VERSION >= 3
|
||
|
0, /*reserved*/
|
||
|
#else
|
||
|
0, /*nb_long*/
|
||
|
#endif
|
||
|
0, /*nb_float*/
|
||
|
#if PY_MAJOR_VERSION < 3
|
||
|
0, /*nb_oct*/
|
||
|
#endif
|
||
|
#if PY_MAJOR_VERSION < 3
|
||
|
0, /*nb_hex*/
|
||
|
#endif
|
||
|
0, /*nb_inplace_add*/
|
||
|
0, /*nb_inplace_subtract*/
|
||
|
0, /*nb_inplace_multiply*/
|
||
|
#if PY_MAJOR_VERSION < 3
|
||
|
0, /*nb_inplace_divide*/
|
||
|
#endif
|
||
|
0, /*nb_inplace_remainder*/
|
||
|
0, /*nb_inplace_power*/
|
||
|
0, /*nb_inplace_lshift*/
|
||
|
0, /*nb_inplace_rshift*/
|
||
|
0, /*nb_inplace_and*/
|
||
|
0, /*nb_inplace_xor*/
|
||
|
0, /*nb_inplace_or*/
|
||
|
0, /*nb_floor_divide*/
|
||
|
0, /*nb_true_divide*/
|
||
|
0, /*nb_inplace_floor_divide*/
|
||
|
0, /*nb_inplace_true_divide*/
|
||
|
#if (PY_MAJOR_VERSION >= 3) || (Py_TPFLAGS_DEFAULT & Py_TPFLAGS_HAVE_INDEX)
|
||
|
0, /*nb_index*/
|
||
|
#endif
|
||
|
};
|
||
|
|
||
|
static PySequenceMethods __pyx_tp_as_sequence_ErrorStackElement = {
|
||
|
0, /*sq_length*/
|
||
|
0, /*sq_concat*/
|
||
|
0, /*sq_repeat*/
|
||
|
0, /*sq_item*/
|
||
|
0, /*sq_slice*/
|
||
|
0, /*sq_ass_item*/
|
||
|
0, /*sq_ass_slice*/
|
||
|
0, /*sq_contains*/
|
||
|
0, /*sq_inplace_concat*/
|
||
|
0, /*sq_inplace_repeat*/
|
||
|
};
|
||
|
|
||
|
static PyMappingMethods __pyx_tp_as_mapping_ErrorStackElement = {
|
||
|
0, /*mp_length*/
|
||
|
0, /*mp_subscript*/
|
||
|
0, /*mp_ass_subscript*/
|
||
|
};
|
||
|
|
||
|
static PyBufferProcs __pyx_tp_as_buffer_ErrorStackElement = {
|
||
|
#if PY_MAJOR_VERSION < 3
|
||
|
0, /*bf_getreadbuffer*/
|
||
|
#endif
|
||
|
#if PY_MAJOR_VERSION < 3
|
||
|
0, /*bf_getwritebuffer*/
|
||
|
#endif
|
||
|
#if PY_MAJOR_VERSION < 3
|
||
|
0, /*bf_getsegcount*/
|
||
|
#endif
|
||
|
#if PY_MAJOR_VERSION < 3
|
||
|
0, /*bf_getcharbuffer*/
|
||
|
#endif
|
||
|
#if PY_VERSION_HEX >= 0x02060000
|
||
|
0, /*bf_getbuffer*/
|
||
|
#endif
|
||
|
#if PY_VERSION_HEX >= 0x02060000
|
||
|
0, /*bf_releasebuffer*/
|
||
|
#endif
|
||
|
};
|
||
|
|
||
|
PyTypeObject __pyx_type_4h5py_3h5e_ErrorStackElement = {
|
||
|
PyVarObject_HEAD_INIT(0, 0)
|
||
|
__Pyx_NAMESTR("h5py.h5e.ErrorStackElement"), /*tp_name*/
|
||
|
sizeof(struct __pyx_obj_4h5py_3h5e_ErrorStackElement), /*tp_basicsize*/
|
||
|
0, /*tp_itemsize*/
|
||
|
__pyx_tp_dealloc_4h5py_3h5e_ErrorStackElement, /*tp_dealloc*/
|
||
|
0, /*tp_print*/
|
||
|
0, /*tp_getattr*/
|
||
|
0, /*tp_setattr*/
|
||
|
0, /*tp_compare*/
|
||
|
0, /*tp_repr*/
|
||
|
&__pyx_tp_as_number_ErrorStackElement, /*tp_as_number*/
|
||
|
&__pyx_tp_as_sequence_ErrorStackElement, /*tp_as_sequence*/
|
||
|
&__pyx_tp_as_mapping_ErrorStackElement, /*tp_as_mapping*/
|
||
|
0, /*tp_hash*/
|
||
|
0, /*tp_call*/
|
||
|
0, /*tp_str*/
|
||
|
0, /*tp_getattro*/
|
||
|
0, /*tp_setattro*/
|
||
|
&__pyx_tp_as_buffer_ErrorStackElement, /*tp_as_buffer*/
|
||
|
Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
|
||
|
__Pyx_DOCSTR("\n Encapsulation of the H5E_error_t structure.\n "), /*tp_doc*/
|
||
|
__pyx_tp_traverse_4h5py_3h5e_ErrorStackElement, /*tp_traverse*/
|
||
|
__pyx_tp_clear_4h5py_3h5e_ErrorStackElement, /*tp_clear*/
|
||
|
0, /*tp_richcompare*/
|
||
|
0, /*tp_weaklistoffset*/
|
||
|
0, /*tp_iter*/
|
||
|
0, /*tp_iternext*/
|
||
|
__pyx_methods_4h5py_3h5e_ErrorStackElement, /*tp_methods*/
|
||
|
0, /*tp_members*/
|
||
|
__pyx_getsets_4h5py_3h5e_ErrorStackElement, /*tp_getset*/
|
||
|
0, /*tp_base*/
|
||
|
0, /*tp_dict*/
|
||
|
0, /*tp_descr_get*/
|
||
|
0, /*tp_descr_set*/
|
||
|
0, /*tp_dictoffset*/
|
||
|
0, /*tp_init*/
|
||
|
0, /*tp_alloc*/
|
||
|
__pyx_tp_new_4h5py_3h5e_ErrorStackElement, /*tp_new*/
|
||
|
0, /*tp_free*/
|
||
|
0, /*tp_is_gc*/
|
||
|
0, /*tp_bases*/
|
||
|
0, /*tp_mro*/
|
||
|
0, /*tp_cache*/
|
||
|
0, /*tp_subclasses*/
|
||
|
0, /*tp_weaklist*/
|
||
|
0, /*tp_del*/
|
||
|
#if PY_VERSION_HEX >= 0x02060000
|
||
|
0, /*tp_version_tag*/
|
||
|
#endif
|
||
|
};
|
||
|
|
||
|
static struct PyMethodDef __pyx_methods[] = {
|
||
|
{__Pyx_NAMESTR("get_major"), (PyCFunction)__pyx_pf_4h5py_3h5e_get_major, METH_O, __Pyx_DOCSTR(__pyx_doc_4h5py_3h5e_get_major)},
|
||
|
{__Pyx_NAMESTR("get_minor"), (PyCFunction)__pyx_pf_4h5py_3h5e_get_minor, METH_O, __Pyx_DOCSTR(__pyx_doc_4h5py_3h5e_get_minor)},
|
||
|
{__Pyx_NAMESTR("verbose"), (PyCFunction)__pyx_pf_4h5py_3h5e_verbose, METH_O, __Pyx_DOCSTR(__pyx_doc_4h5py_3h5e_verbose)},
|
||
|
{__Pyx_NAMESTR("register_thread"), (PyCFunction)__pyx_pf_4h5py_3h5e_register_thread, METH_NOARGS, __Pyx_DOCSTR(__pyx_doc_4h5py_3h5e_register_thread)},
|
||
|
{__Pyx_NAMESTR("unregister_thread"), (PyCFunction)__pyx_pf_4h5py_3h5e_unregister_thread, METH_VARARGS|METH_KEYWORDS, __Pyx_DOCSTR(__pyx_doc_4h5py_3h5e_unregister_thread)},
|
||
|
{0, 0, 0, 0}
|
||
|
};
|
||
|
|
||
|
static void __pyx_init_filenames(void); /*proto*/
|
||
|
|
||
|
#if PY_MAJOR_VERSION >= 3
|
||
|
static struct PyModuleDef __pyx_moduledef = {
|
||
|
PyModuleDef_HEAD_INIT,
|
||
|
__Pyx_NAMESTR("h5e"),
|
||
|
__Pyx_DOCSTR(__pyx_k_16), /* m_doc */
|
||
|
-1, /* m_size */
|
||
|
__pyx_methods /* m_methods */,
|
||
|
NULL, /* m_reload */
|
||
|
NULL, /* m_traverse */
|
||
|
NULL, /* m_clear */
|
||
|
NULL /* m_free */
|
||
|
};
|
||
|
#endif
|
||
|
|
||
|
static __Pyx_StringTabEntry __pyx_string_tab[] = {
|
||
|
{&__pyx_kp_s_1, __pyx_k_1, sizeof(__pyx_k_1), 0, 0, 1, 0},
|
||
|
{&__pyx_kp_s_10, __pyx_k_10, sizeof(__pyx_k_10), 0, 0, 1, 0},
|
||
|
{&__pyx_kp_s_11, __pyx_k_11, sizeof(__pyx_k_11), 0, 0, 1, 0},
|
||
|
{&__pyx_kp_s_17, __pyx_k_17, sizeof(__pyx_k_17), 0, 0, 1, 0},
|
||
|
{&__pyx_kp_s_18, __pyx_k_18, sizeof(__pyx_k_18), 0, 0, 1, 0},
|
||
|
{&__pyx_kp_s_19, __pyx_k_19, sizeof(__pyx_k_19), 0, 0, 1, 0},
|
||
|
{&__pyx_kp_s_2, __pyx_k_2, sizeof(__pyx_k_2), 0, 0, 1, 0},
|
||
|
{&__pyx_kp_s_20, __pyx_k_20, sizeof(__pyx_k_20), 0, 0, 1, 0},
|
||
|
{&__pyx_kp_s_21, __pyx_k_21, sizeof(__pyx_k_21), 0, 0, 1, 0},
|
||
|
{&__pyx_kp_s_22, __pyx_k_22, sizeof(__pyx_k_22), 0, 0, 1, 0},
|
||
|
{&__pyx_kp_s_23, __pyx_k_23, sizeof(__pyx_k_23), 0, 0, 1, 0},
|
||
|
{&__pyx_kp_s_24, __pyx_k_24, sizeof(__pyx_k_24), 0, 0, 1, 0},
|
||
|
{&__pyx_kp_s_25, __pyx_k_25, sizeof(__pyx_k_25), 0, 0, 1, 0},
|
||
|
{&__pyx_kp_s_26, __pyx_k_26, sizeof(__pyx_k_26), 0, 0, 1, 0},
|
||
|
{&__pyx_kp_s_27, __pyx_k_27, sizeof(__pyx_k_27), 0, 0, 1, 0},
|
||
|
{&__pyx_kp_s_28, __pyx_k_28, sizeof(__pyx_k_28), 0, 0, 1, 0},
|
||
|
{&__pyx_kp_s_29, __pyx_k_29, sizeof(__pyx_k_29), 0, 0, 1, 0},
|
||
|
{&__pyx_kp_s_3, __pyx_k_3, sizeof(__pyx_k_3), 0, 0, 1, 0},
|
||
|
{&__pyx_kp_s_30, __pyx_k_30, sizeof(__pyx_k_30), 0, 0, 1, 0},
|
||
|
{&__pyx_kp_s_31, __pyx_k_31, sizeof(__pyx_k_31), 0, 0, 1, 0},
|
||
|
{&__pyx_kp_s_32, __pyx_k_32, sizeof(__pyx_k_32), 0, 0, 1, 0},
|
||
|
{&__pyx_kp_s_33, __pyx_k_33, sizeof(__pyx_k_33), 0, 0, 1, 0},
|
||
|
{&__pyx_kp_s_34, __pyx_k_34, sizeof(__pyx_k_34), 0, 0, 1, 0},
|
||
|
{&__pyx_kp_s_35, __pyx_k_35, sizeof(__pyx_k_35), 0, 0, 1, 0},
|
||
|
{&__pyx_kp_s_36, __pyx_k_36, sizeof(__pyx_k_36), 0, 0, 1, 0},
|
||
|
{&__pyx_kp_s_37, __pyx_k_37, sizeof(__pyx_k_37), 0, 0, 1, 0},
|
||
|
{&__pyx_kp_s_38, __pyx_k_38, sizeof(__pyx_k_38), 0, 0, 1, 0},
|
||
|
{&__pyx_kp_s_39, __pyx_k_39, sizeof(__pyx_k_39), 0, 0, 1, 0},
|
||
|
{&__pyx_kp_s_4, __pyx_k_4, sizeof(__pyx_k_4), 0, 0, 1, 0},
|
||
|
{&__pyx_kp_s_40, __pyx_k_40, sizeof(__pyx_k_40), 0, 0, 1, 0},
|
||
|
{&__pyx_kp_s_41, __pyx_k_41, sizeof(__pyx_k_41), 0, 0, 1, 0},
|
||
|
{&__pyx_kp_s_42, __pyx_k_42, sizeof(__pyx_k_42), 0, 0, 1, 0},
|
||
|
{&__pyx_kp_s_43, __pyx_k_43, sizeof(__pyx_k_43), 0, 0, 1, 0},
|
||
|
{&__pyx_kp_s_44, __pyx_k_44, sizeof(__pyx_k_44), 0, 0, 1, 0},
|
||
|
{&__pyx_kp_s_5, __pyx_k_5, sizeof(__pyx_k_5), 0, 0, 1, 0},
|
||
|
{&__pyx_kp_s_6, __pyx_k_6, sizeof(__pyx_k_6), 0, 0, 1, 0},
|
||
|
{&__pyx_kp_s_7, __pyx_k_7, sizeof(__pyx_k_7), 0, 0, 1, 0},
|
||
|
{&__pyx_kp_s_8, __pyx_k_8, sizeof(__pyx_k_8), 0, 0, 1, 0},
|
||
|
{&__pyx_kp_s_9, __pyx_k_9, sizeof(__pyx_k_9), 0, 0, 1, 0},
|
||
|
{&__pyx_n_s__ArgsError, __pyx_k__ArgsError, sizeof(__pyx_k__ArgsError), 0, 0, 1, 1},
|
||
|
{&__pyx_n_s__AtomError, __pyx_k__AtomError, sizeof(__pyx_k__AtomError), 0, 0, 1, 1},
|
||
|
{&__pyx_n_s__AttrError, __pyx_k__AttrError, sizeof(__pyx_k__AttrError), 0, 0, 1, 1},
|
||
|
{&__pyx_n_s__BtreeError, __pyx_k__BtreeError, sizeof(__pyx_k__BtreeError), 0, 0, 1, 1},
|
||
|
{&__pyx_n_s__CacheError, __pyx_k__CacheError, sizeof(__pyx_k__CacheError), 0, 0, 1, 1},
|
||
|
{&__pyx_n_s__DatasetError, __pyx_k__DatasetError, sizeof(__pyx_k__DatasetError), 0, 0, 1, 1},
|
||
|
{&__pyx_n_s__DataspaceError, __pyx_k__DataspaceError, sizeof(__pyx_k__DataspaceError), 0, 0, 1, 1},
|
||
|
{&__pyx_n_s__DatatypeError, __pyx_k__DatatypeError, sizeof(__pyx_k__DatatypeError), 0, 0, 1, 1},
|
||
|
{&__pyx_n_s__ErrorError, __pyx_k__ErrorError, sizeof(__pyx_k__ErrorError), 0, 0, 1, 1},
|
||
|
{&__pyx_n_s__ErrorStack, __pyx_k__ErrorStack, sizeof(__pyx_k__ErrorStack), 0, 0, 1, 1},
|
||
|
{&__pyx_n_s__Exception, __pyx_k__Exception, sizeof(__pyx_k__Exception), 0, 0, 1, 1},
|
||
|
{&__pyx_n_s__FileError, __pyx_k__FileError, sizeof(__pyx_k__FileError), 0, 0, 1, 1},
|
||
|
{&__pyx_n_s__FileListError, __pyx_k__FileListError, sizeof(__pyx_k__FileListError), 0, 0, 1, 1},
|
||
|
{&__pyx_n_s__FilterError, __pyx_k__FilterError, sizeof(__pyx_k__FilterError), 0, 0, 1, 1},
|
||
|
{&__pyx_n_s__FuncError, __pyx_k__FuncError, sizeof(__pyx_k__FuncError), 0, 0, 1, 1},
|
||
|
{&__pyx_n_s__H5Error, __pyx_k__H5Error, sizeof(__pyx_k__H5Error), 0, 0, 1, 1},
|
||
|
{&__pyx_n_s__HeapError, __pyx_k__HeapError, sizeof(__pyx_k__HeapError), 0, 0, 1, 1},
|
||
|
{&__pyx_n_s__IOError, __pyx_k__IOError, sizeof(__pyx_k__IOError), 0, 0, 1, 1},
|
||
|
{&__pyx_n_s__InternalError, __pyx_k__InternalError, sizeof(__pyx_k__InternalError), 0, 0, 1, 1},
|
||
|
{&__pyx_n_s__KeyError, __pyx_k__KeyError, sizeof(__pyx_k__KeyError), 0, 0, 1, 1},
|
||
|
{&__pyx_n_s__LowLevelIOError, __pyx_k__LowLevelIOError, sizeof(__pyx_k__LowLevelIOError), 0, 0, 1, 1},
|
||
|
{&__pyx_n_s__NotImplementedError, __pyx_k__NotImplementedError, sizeof(__pyx_k__NotImplementedError), 0, 0, 1, 1},
|
||
|
{&__pyx_n_s__NullErrorHandler, __pyx_k__NullErrorHandler, sizeof(__pyx_k__NullErrorHandler), 0, 0, 1, 1},
|
||
|
{&__pyx_n_s__ObjectHeaderError, __pyx_k__ObjectHeaderError, sizeof(__pyx_k__ObjectHeaderError), 0, 0, 1, 1},
|
||
|
{&__pyx_n_s__PropertyError, __pyx_k__PropertyError, sizeof(__pyx_k__PropertyError), 0, 0, 1, 1},
|
||
|
{&__pyx_n_s__RSError, __pyx_k__RSError, sizeof(__pyx_k__RSError), 0, 0, 1, 1},
|
||
|
{&__pyx_n_s__RefError, __pyx_k__RefError, sizeof(__pyx_k__RefError), 0, 0, 1, 1},
|
||
|
{&__pyx_n_s__ResourceError, __pyx_k__ResourceError, sizeof(__pyx_k__ResourceError), 0, 0, 1, 1},
|
||
|
{&__pyx_n_s__RuntimeError, __pyx_k__RuntimeError, sizeof(__pyx_k__RuntimeError), 0, 0, 1, 1},
|
||
|
{&__pyx_n_s__SkipListError, __pyx_k__SkipListError, sizeof(__pyx_k__SkipListError), 0, 0, 1, 1},
|
||
|
{&__pyx_n_s__StorageError, __pyx_k__StorageError, sizeof(__pyx_k__StorageError), 0, 0, 1, 1},
|
||
|
{&__pyx_n_s__SymbolError, __pyx_k__SymbolError, sizeof(__pyx_k__SymbolError), 0, 0, 1, 1},
|
||
|
{&__pyx_n_s__TSTError, __pyx_k__TSTError, sizeof(__pyx_k__TSTError), 0, 0, 1, 1},
|
||
|
{&__pyx_n_s__TypeError, __pyx_k__TypeError, sizeof(__pyx_k__TypeError), 0, 0, 1, 1},
|
||
|
{&__pyx_n_s__ValueError, __pyx_k__ValueError, sizeof(__pyx_k__ValueError), 0, 0, 1, 1},
|
||
|
{&__pyx_n_s__VirtualFileError, __pyx_k__VirtualFileError, sizeof(__pyx_k__VirtualFileError), 0, 0, 1, 1},
|
||
|
{&__pyx_n_s____init__, __pyx_k____init__, sizeof(__pyx_k____init__), 0, 0, 1, 1},
|
||
|
{&__pyx_n_s____main__, __pyx_k____main__, sizeof(__pyx_k____main__), 0, 0, 1, 1},
|
||
|
{&__pyx_n_s____str__, __pyx_k____str__, sizeof(__pyx_k____str__), 0, 0, 1, 1},
|
||
|
{&__pyx_n_s___stub, __pyx_k___stub, sizeof(__pyx_k___stub), 0, 0, 1, 1},
|
||
|
{&__pyx_n_s___verbose, __pyx_k___verbose, sizeof(__pyx_k___verbose), 0, 0, 1, 1},
|
||
|
{&__pyx_n_s__auto, __pyx_k__auto, sizeof(__pyx_k__auto), 0, 0, 1, 1},
|
||
|
{&__pyx_n_s__capitalize, __pyx_k__capitalize, sizeof(__pyx_k__capitalize), 0, 0, 1, 1},
|
||
|
{&__pyx_n_s__code, __pyx_k__code, sizeof(__pyx_k__code), 0, 0, 1, 1},
|
||
|
{&__pyx_n_s__code_desc, __pyx_k__code_desc, sizeof(__pyx_k__code_desc), 0, 0, 1, 1},
|
||
|
{&__pyx_n_s__data, __pyx_k__data, sizeof(__pyx_k__data), 0, 0, 1, 1},
|
||
|
{&__pyx_n_s__desc, __pyx_k__desc, sizeof(__pyx_k__desc), 0, 0, 1, 1},
|
||
|
{&__pyx_n_s__e, __pyx_k__e, sizeof(__pyx_k__e), 0, 0, 1, 1},
|
||
|
{&__pyx_n_s__enumerate, __pyx_k__enumerate, sizeof(__pyx_k__enumerate), 0, 0, 1, 1},
|
||
|
{&__pyx_n_s__func, __pyx_k__func, sizeof(__pyx_k__func), 0, 0, 1, 1},
|
||
|
{&__pyx_n_s__func_name, __pyx_k__func_name, sizeof(__pyx_k__func_name), 0, 0, 1, 1},
|
||
|
{&__pyx_n_s__generate_class, __pyx_k__generate_class, sizeof(__pyx_k__generate_class), 0, 0, 1, 1},
|
||
|
{&__pyx_n_s__get, __pyx_k__get, sizeof(__pyx_k__get), 0, 0, 1, 1},
|
||
|
{&__pyx_n_s__get_exc_msg, __pyx_k__get_exc_msg, sizeof(__pyx_k__get_exc_msg), 0, 0, 1, 1},
|
||
|
{&__pyx_n_s__handler, __pyx_k__handler, sizeof(__pyx_k__handler), 0, 0, 1, 1},
|
||
|
{&__pyx_n_s__maj_num, __pyx_k__maj_num, sizeof(__pyx_k__maj_num), 0, 0, 1, 1},
|
||
|
{&__pyx_n_s__min_num, __pyx_k__min_num, sizeof(__pyx_k__min_num), 0, 0, 1, 1},
|
||
|
{&__pyx_n_s__self, __pyx_k__self, sizeof(__pyx_k__self), 0, 0, 1, 1},
|
||
|
{0, 0, 0, 0, 0, 0, 0}
|
||
|
};
|
||
|
static int __Pyx_InitCachedBuiltins(void) {
|
||
|
__pyx_builtin_Exception = __Pyx_GetName(__pyx_b, __pyx_n_s__Exception); if (!__pyx_builtin_Exception) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 28; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__pyx_builtin_IOError = __Pyx_GetName(__pyx_b, __pyx_n_s__IOError); if (!__pyx_builtin_IOError) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 197; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__pyx_builtin_ValueError = __Pyx_GetName(__pyx_b, __pyx_n_s__ValueError); if (!__pyx_builtin_ValueError) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 210; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__pyx_builtin_NotImplementedError = __Pyx_GetName(__pyx_b, __pyx_n_s__NotImplementedError); if (!__pyx_builtin_NotImplementedError) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 224; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__pyx_builtin_KeyError = __Pyx_GetName(__pyx_b, __pyx_n_s__KeyError); if (!__pyx_builtin_KeyError) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 226; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__pyx_builtin_TypeError = __Pyx_GetName(__pyx_b, __pyx_n_s__TypeError); if (!__pyx_builtin_TypeError) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 229; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__pyx_builtin_enumerate = __Pyx_GetName(__pyx_b, __pyx_n_s__enumerate); if (!__pyx_builtin_enumerate) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 342; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__pyx_builtin_RuntimeError = __Pyx_GetName(__pyx_b, __pyx_n_s__RuntimeError); if (!__pyx_builtin_RuntimeError) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 373; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
return 0;
|
||
|
__pyx_L1_error:;
|
||
|
return -1;
|
||
|
}
|
||
|
|
||
|
static int __Pyx_InitGlobals(void) {
|
||
|
if (__Pyx_InitStrings(__pyx_string_tab) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
|
||
|
__pyx_int_0 = PyInt_FromLong(0); if (unlikely(!__pyx_int_0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
|
||
|
__pyx_int_1 = PyInt_FromLong(1); if (unlikely(!__pyx_int_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
|
||
|
return 0;
|
||
|
__pyx_L1_error:;
|
||
|
return -1;
|
||
|
}
|
||
|
|
||
|
#if PY_MAJOR_VERSION < 3
|
||
|
PyMODINIT_FUNC inith5e(void); /*proto*/
|
||
|
PyMODINIT_FUNC inith5e(void)
|
||
|
#else
|
||
|
PyMODINIT_FUNC PyInit_h5e(void); /*proto*/
|
||
|
PyMODINIT_FUNC PyInit_h5e(void)
|
||
|
#endif
|
||
|
{
|
||
|
PyObject *__pyx_t_1 = NULL;
|
||
|
PyObject *__pyx_t_2 = NULL;
|
||
|
PyObject *__pyx_t_3 = NULL;
|
||
|
PyObject *__pyx_t_4 = NULL;
|
||
|
PyObject *__pyx_t_5 = NULL;
|
||
|
#if CYTHON_REFNANNY
|
||
|
void* __pyx_refnanny = NULL;
|
||
|
__Pyx_RefNanny = __Pyx_RefNannyImportAPI("refnanny");
|
||
|
if (!__Pyx_RefNanny) {
|
||
|
PyErr_Clear();
|
||
|
__Pyx_RefNanny = __Pyx_RefNannyImportAPI("Cython.Runtime.refnanny");
|
||
|
if (!__Pyx_RefNanny)
|
||
|
Py_FatalError("failed to import 'refnanny' module");
|
||
|
}
|
||
|
__pyx_refnanny = __Pyx_RefNanny->SetupContext("PyMODINIT_FUNC PyInit_h5e(void)", __LINE__, __FILE__);
|
||
|
#endif
|
||
|
__pyx_init_filenames();
|
||
|
__pyx_empty_tuple = PyTuple_New(0); if (unlikely(!__pyx_empty_tuple)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
#if PY_MAJOR_VERSION < 3
|
||
|
__pyx_empty_bytes = PyString_FromStringAndSize("", 0); if (unlikely(!__pyx_empty_bytes)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
#else
|
||
|
__pyx_empty_bytes = PyBytes_FromStringAndSize("", 0); if (unlikely(!__pyx_empty_bytes)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
#endif
|
||
|
/*--- Library function declarations ---*/
|
||
|
/*--- Threads initialization code ---*/
|
||
|
#if defined(__PYX_FORCE_INIT_THREADS) && __PYX_FORCE_INIT_THREADS
|
||
|
#ifdef WITH_THREAD /* Python build with threading support? */
|
||
|
PyEval_InitThreads();
|
||
|
#endif
|
||
|
#endif
|
||
|
/*--- Module creation code ---*/
|
||
|
#if PY_MAJOR_VERSION < 3
|
||
|
__pyx_m = Py_InitModule4(__Pyx_NAMESTR("h5e"), __pyx_methods, __Pyx_DOCSTR(__pyx_k_16), 0, PYTHON_API_VERSION);
|
||
|
#else
|
||
|
__pyx_m = PyModule_Create(&__pyx_moduledef);
|
||
|
#endif
|
||
|
if (!__pyx_m) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
|
||
|
#if PY_MAJOR_VERSION < 3
|
||
|
Py_INCREF(__pyx_m);
|
||
|
#endif
|
||
|
__pyx_b = PyImport_AddModule(__Pyx_NAMESTR(__Pyx_BUILTIN_MODULE_NAME));
|
||
|
if (!__pyx_b) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
|
||
|
if (__Pyx_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
|
||
|
/*--- Initialize various global constants etc. ---*/
|
||
|
if (unlikely(__Pyx_InitGlobals() < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
if (__pyx_module_is_main_h5py__h5e) {
|
||
|
if (__Pyx_SetAttrString(__pyx_m, "__name__", __pyx_n_s____main__) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
|
||
|
}
|
||
|
/*--- Builtin init code ---*/
|
||
|
if (unlikely(__Pyx_InitCachedBuiltins() < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
/*--- Global init code ---*/
|
||
|
__pyx_v_4h5py_3h5e__major_table = ((PyObject *)Py_None); Py_INCREF(Py_None);
|
||
|
__pyx_v_4h5py_3h5e__minor_table = ((PyObject *)Py_None); Py_INCREF(Py_None);
|
||
|
__pyx_v_4h5py_3h5e__exact_table = ((PyObject *)Py_None); Py_INCREF(Py_None);
|
||
|
/*--- Function export code ---*/
|
||
|
if (__Pyx_ExportFunction("register_thread", (void (*)(void))__pyx_f_4h5py_3h5e_register_thread, "PyObject *(int __pyx_skip_dispatch)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
if (__Pyx_ExportFunction("unregister_thread", (void (*)(void))__pyx_f_4h5py_3h5e_unregister_thread, "PyObject *(int __pyx_skip_dispatch, struct __pyx_opt_args_4h5py_3h5e_unregister_thread *__pyx_optional_args)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
if (__Pyx_ExportFunction("disable_errors", (void (*)(void))__pyx_f_4h5py_3h5e_disable_errors, "__pyx_t_4h5py_3h5e_err_cookie (void)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
if (__Pyx_ExportFunction("enable_errors", (void (*)(void))__pyx_f_4h5py_3h5e_enable_errors, "void (__pyx_t_4h5py_3h5e_err_cookie)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
/*--- Type init code ---*/
|
||
|
if (PyType_Ready(&__pyx_type_4h5py_3h5e_HDF5ErrorHandler) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 381; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
if (__Pyx_SetAttrString(__pyx_m, "HDF5ErrorHandler", (PyObject *)&__pyx_type_4h5py_3h5e_HDF5ErrorHandler) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 381; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__pyx_ptype_4h5py_3h5e_HDF5ErrorHandler = &__pyx_type_4h5py_3h5e_HDF5ErrorHandler;
|
||
|
__pyx_ptype_4h5py_2h5_SmartStruct = __Pyx_ImportType("h5py.h5", "SmartStruct", sizeof(struct __pyx_obj_4h5py_2h5_SmartStruct)); if (unlikely(!__pyx_ptype_4h5py_2h5_SmartStruct)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__pyx_type_4h5py_3h5e_ErrorStackElement.tp_base = __pyx_ptype_4h5py_2h5_SmartStruct;
|
||
|
if (PyType_Ready(&__pyx_type_4h5py_3h5e_ErrorStackElement) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 254; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
if (__Pyx_SetAttrString(__pyx_m, "ErrorStackElement", (PyObject *)&__pyx_type_4h5py_3h5e_ErrorStackElement) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 254; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
if (__pyx_type_4h5py_3h5e_ErrorStackElement.tp_weaklistoffset == 0) __pyx_type_4h5py_3h5e_ErrorStackElement.tp_weaklistoffset = offsetof(struct __pyx_obj_4h5py_3h5e_ErrorStackElement, __pyx_base.__weakref__);
|
||
|
__pyx_ptype_4h5py_3h5e_ErrorStackElement = &__pyx_type_4h5py_3h5e_ErrorStackElement;
|
||
|
/*--- Type import code ---*/
|
||
|
__pyx_ptype_4h5py_2h5_H5PYConfig = __Pyx_ImportType("h5py.h5", "H5PYConfig", sizeof(struct __pyx_obj_4h5py_2h5_H5PYConfig)); if (unlikely(!__pyx_ptype_4h5py_2h5_H5PYConfig)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 15; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__pyx_ptype_4h5py_2h5_ObjectID = __Pyx_ImportType("h5py.h5", "ObjectID", sizeof(struct __pyx_obj_4h5py_2h5_ObjectID)); if (unlikely(!__pyx_ptype_4h5py_2h5_ObjectID)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 28; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
/*--- Function import code ---*/
|
||
|
__pyx_t_1 = __Pyx_ImportModule("h5py.h5"); if (!__pyx_t_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
if (__Pyx_ImportFunction(__pyx_t_1, "get_config", (void (**)(void))&__pyx_f_4h5py_2h5_get_config, "struct __pyx_obj_4h5py_2h5_H5PYConfig *(int __pyx_skip_dispatch)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
if (__Pyx_ImportFunction(__pyx_t_1, "init_hdf5", (void (**)(void))&__pyx_f_4h5py_2h5_init_hdf5, "int (void)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
Py_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
||
|
/*--- Execution code ---*/
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":23
|
||
|
* from h5 cimport SmartStruct
|
||
|
*
|
||
|
* import _stub # <<<<<<<<<<<<<<
|
||
|
*
|
||
|
*
|
||
|
*/
|
||
|
__pyx_t_2 = __Pyx_Import(((PyObject *)__pyx_n_s___stub), 0); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 23; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_2);
|
||
|
if (PyObject_SetAttr(__pyx_m, __pyx_n_s___stub, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 23; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":28
|
||
|
* # === Exception hierarchy based on major error codes ==========================
|
||
|
*
|
||
|
* class H5Error(Exception): # <<<<<<<<<<<<<<
|
||
|
* """ Base class for internal HDF5 library exceptions.
|
||
|
* """
|
||
|
*/
|
||
|
__pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 28; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(((PyObject *)__pyx_t_2));
|
||
|
__pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 28; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_3);
|
||
|
__Pyx_INCREF(__pyx_builtin_Exception);
|
||
|
PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_builtin_Exception);
|
||
|
__Pyx_GIVEREF(__pyx_builtin_Exception);
|
||
|
if (PyDict_SetItemString(((PyObject *)__pyx_t_2), "__doc__", ((PyObject *)__pyx_kp_s_17)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 28; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__pyx_t_4 = __Pyx_CreateClass(__pyx_t_3, ((PyObject *)__pyx_t_2), __pyx_n_s__H5Error, "h5py.h5e"); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 28; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
||
|
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__H5Error, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 28; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
__Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":34
|
||
|
*
|
||
|
* # H5E_ARGS, # invalid arguments to routine
|
||
|
* class ArgsError(H5Error): # <<<<<<<<<<<<<<
|
||
|
* """ H5E_ARGS """
|
||
|
* pass
|
||
|
*/
|
||
|
__pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 34; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(((PyObject *)__pyx_t_2));
|
||
|
__pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s__H5Error); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 34; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
__pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 34; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_3);
|
||
|
PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4);
|
||
|
__Pyx_GIVEREF(__pyx_t_4);
|
||
|
__pyx_t_4 = 0;
|
||
|
if (PyDict_SetItemString(((PyObject *)__pyx_t_2), "__doc__", ((PyObject *)__pyx_kp_s_18)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 34; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__pyx_t_4 = __Pyx_CreateClass(__pyx_t_3, ((PyObject *)__pyx_t_2), __pyx_n_s__ArgsError, "h5py.h5e"); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 34; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
||
|
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__ArgsError, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 34; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
__Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":39
|
||
|
*
|
||
|
* # H5E_RESOURCE, # resource unavailable
|
||
|
* class ResourceError(H5Error): # <<<<<<<<<<<<<<
|
||
|
* """ H5E_RESOURCE """
|
||
|
* pass
|
||
|
*/
|
||
|
__pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 39; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(((PyObject *)__pyx_t_2));
|
||
|
__pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s__H5Error); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 39; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
__pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 39; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_3);
|
||
|
PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4);
|
||
|
__Pyx_GIVEREF(__pyx_t_4);
|
||
|
__pyx_t_4 = 0;
|
||
|
if (PyDict_SetItemString(((PyObject *)__pyx_t_2), "__doc__", ((PyObject *)__pyx_kp_s_19)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 39; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__pyx_t_4 = __Pyx_CreateClass(__pyx_t_3, ((PyObject *)__pyx_t_2), __pyx_n_s__ResourceError, "h5py.h5e"); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 39; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
||
|
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__ResourceError, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 39; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
__Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":44
|
||
|
*
|
||
|
* # H5E_INTERNAL, # Internal error (too specific to document)
|
||
|
* class InternalError(H5Error): # <<<<<<<<<<<<<<
|
||
|
* """ H5E_INTERNAL """
|
||
|
* pass
|
||
|
*/
|
||
|
__pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 44; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(((PyObject *)__pyx_t_2));
|
||
|
__pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s__H5Error); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 44; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
__pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 44; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_3);
|
||
|
PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4);
|
||
|
__Pyx_GIVEREF(__pyx_t_4);
|
||
|
__pyx_t_4 = 0;
|
||
|
if (PyDict_SetItemString(((PyObject *)__pyx_t_2), "__doc__", ((PyObject *)__pyx_kp_s_20)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 44; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__pyx_t_4 = __Pyx_CreateClass(__pyx_t_3, ((PyObject *)__pyx_t_2), __pyx_n_s__InternalError, "h5py.h5e"); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 44; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
||
|
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__InternalError, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 44; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
__Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":49
|
||
|
*
|
||
|
* # H5E_FILE, # file Accessability
|
||
|
* class FileError(H5Error): # <<<<<<<<<<<<<<
|
||
|
* """ H5E_FILE """
|
||
|
* pass
|
||
|
*/
|
||
|
__pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 49; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(((PyObject *)__pyx_t_2));
|
||
|
__pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s__H5Error); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 49; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
__pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 49; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_3);
|
||
|
PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4);
|
||
|
__Pyx_GIVEREF(__pyx_t_4);
|
||
|
__pyx_t_4 = 0;
|
||
|
if (PyDict_SetItemString(((PyObject *)__pyx_t_2), "__doc__", ((PyObject *)__pyx_kp_s_21)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 49; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__pyx_t_4 = __Pyx_CreateClass(__pyx_t_3, ((PyObject *)__pyx_t_2), __pyx_n_s__FileError, "h5py.h5e"); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 49; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
||
|
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__FileError, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 49; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
__Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":54
|
||
|
*
|
||
|
* # H5E_IO, # Low-level I/O
|
||
|
* class LowLevelIOError(H5Error): # <<<<<<<<<<<<<<
|
||
|
* """ H5E_IO """
|
||
|
* pass
|
||
|
*/
|
||
|
__pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 54; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(((PyObject *)__pyx_t_2));
|
||
|
__pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s__H5Error); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 54; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
__pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 54; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_3);
|
||
|
PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4);
|
||
|
__Pyx_GIVEREF(__pyx_t_4);
|
||
|
__pyx_t_4 = 0;
|
||
|
if (PyDict_SetItemString(((PyObject *)__pyx_t_2), "__doc__", ((PyObject *)__pyx_kp_s_22)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 54; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__pyx_t_4 = __Pyx_CreateClass(__pyx_t_3, ((PyObject *)__pyx_t_2), __pyx_n_s__LowLevelIOError, "h5py.h5e"); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 54; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
||
|
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__LowLevelIOError, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 54; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
__Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":59
|
||
|
*
|
||
|
* # H5E_FUNC, # function Entry/Exit
|
||
|
* class FuncError(H5Error): # <<<<<<<<<<<<<<
|
||
|
* """ H5E_FUNC """
|
||
|
* pass
|
||
|
*/
|
||
|
__pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 59; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(((PyObject *)__pyx_t_2));
|
||
|
__pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s__H5Error); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 59; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
__pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 59; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_3);
|
||
|
PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4);
|
||
|
__Pyx_GIVEREF(__pyx_t_4);
|
||
|
__pyx_t_4 = 0;
|
||
|
if (PyDict_SetItemString(((PyObject *)__pyx_t_2), "__doc__", ((PyObject *)__pyx_kp_s_23)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 59; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__pyx_t_4 = __Pyx_CreateClass(__pyx_t_3, ((PyObject *)__pyx_t_2), __pyx_n_s__FuncError, "h5py.h5e"); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 59; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
||
|
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__FuncError, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 59; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
__Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":64
|
||
|
*
|
||
|
* # H5E_ATOM, # object Atom
|
||
|
* class AtomError(H5Error): # <<<<<<<<<<<<<<
|
||
|
* """ H5E_ATOM """
|
||
|
* pass
|
||
|
*/
|
||
|
__pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 64; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(((PyObject *)__pyx_t_2));
|
||
|
__pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s__H5Error); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 64; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
__pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 64; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_3);
|
||
|
PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4);
|
||
|
__Pyx_GIVEREF(__pyx_t_4);
|
||
|
__pyx_t_4 = 0;
|
||
|
if (PyDict_SetItemString(((PyObject *)__pyx_t_2), "__doc__", ((PyObject *)__pyx_kp_s_24)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 64; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__pyx_t_4 = __Pyx_CreateClass(__pyx_t_3, ((PyObject *)__pyx_t_2), __pyx_n_s__AtomError, "h5py.h5e"); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 64; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
||
|
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__AtomError, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 64; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
__Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":69
|
||
|
*
|
||
|
* # H5E_CACHE, # object Cache
|
||
|
* class CacheError(H5Error): # <<<<<<<<<<<<<<
|
||
|
* """ H5E_CACHE """
|
||
|
* pass
|
||
|
*/
|
||
|
__pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 69; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(((PyObject *)__pyx_t_2));
|
||
|
__pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s__H5Error); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 69; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
__pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 69; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_3);
|
||
|
PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4);
|
||
|
__Pyx_GIVEREF(__pyx_t_4);
|
||
|
__pyx_t_4 = 0;
|
||
|
if (PyDict_SetItemString(((PyObject *)__pyx_t_2), "__doc__", ((PyObject *)__pyx_kp_s_25)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 69; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__pyx_t_4 = __Pyx_CreateClass(__pyx_t_3, ((PyObject *)__pyx_t_2), __pyx_n_s__CacheError, "h5py.h5e"); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 69; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
||
|
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__CacheError, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 69; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
__Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":74
|
||
|
*
|
||
|
* # H5E_BTREE, # B-Tree Node
|
||
|
* class BtreeError(H5Error): # <<<<<<<<<<<<<<
|
||
|
* """ H5E_BTREE """
|
||
|
* pass
|
||
|
*/
|
||
|
__pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 74; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(((PyObject *)__pyx_t_2));
|
||
|
__pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s__H5Error); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 74; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
__pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 74; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_3);
|
||
|
PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4);
|
||
|
__Pyx_GIVEREF(__pyx_t_4);
|
||
|
__pyx_t_4 = 0;
|
||
|
if (PyDict_SetItemString(((PyObject *)__pyx_t_2), "__doc__", ((PyObject *)__pyx_kp_s_26)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 74; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__pyx_t_4 = __Pyx_CreateClass(__pyx_t_3, ((PyObject *)__pyx_t_2), __pyx_n_s__BtreeError, "h5py.h5e"); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 74; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
||
|
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__BtreeError, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 74; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
__Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":79
|
||
|
*
|
||
|
* # H5E_SYM, # symbol Table
|
||
|
* class SymbolError(H5Error): # <<<<<<<<<<<<<<
|
||
|
* """ H5E_SYM """
|
||
|
* pass
|
||
|
*/
|
||
|
__pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 79; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(((PyObject *)__pyx_t_2));
|
||
|
__pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s__H5Error); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 79; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
__pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 79; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_3);
|
||
|
PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4);
|
||
|
__Pyx_GIVEREF(__pyx_t_4);
|
||
|
__pyx_t_4 = 0;
|
||
|
if (PyDict_SetItemString(((PyObject *)__pyx_t_2), "__doc__", ((PyObject *)__pyx_kp_s_27)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 79; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__pyx_t_4 = __Pyx_CreateClass(__pyx_t_3, ((PyObject *)__pyx_t_2), __pyx_n_s__SymbolError, "h5py.h5e"); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 79; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
||
|
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__SymbolError, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 79; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
__Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":84
|
||
|
*
|
||
|
* # H5E_HEAP, # Heap
|
||
|
* class HeapError(H5Error): # <<<<<<<<<<<<<<
|
||
|
* """ H5E_HEAP """
|
||
|
* pass
|
||
|
*/
|
||
|
__pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 84; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(((PyObject *)__pyx_t_2));
|
||
|
__pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s__H5Error); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 84; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
__pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 84; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_3);
|
||
|
PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4);
|
||
|
__Pyx_GIVEREF(__pyx_t_4);
|
||
|
__pyx_t_4 = 0;
|
||
|
if (PyDict_SetItemString(((PyObject *)__pyx_t_2), "__doc__", ((PyObject *)__pyx_kp_s_28)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 84; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__pyx_t_4 = __Pyx_CreateClass(__pyx_t_3, ((PyObject *)__pyx_t_2), __pyx_n_s__HeapError, "h5py.h5e"); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 84; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
||
|
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__HeapError, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 84; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
__Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":89
|
||
|
*
|
||
|
* # H5E_OHDR, # object Header
|
||
|
* class ObjectHeaderError(H5Error): # <<<<<<<<<<<<<<
|
||
|
* """ H5E_OHDR """
|
||
|
* pass
|
||
|
*/
|
||
|
__pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 89; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(((PyObject *)__pyx_t_2));
|
||
|
__pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s__H5Error); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 89; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
__pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 89; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_3);
|
||
|
PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4);
|
||
|
__Pyx_GIVEREF(__pyx_t_4);
|
||
|
__pyx_t_4 = 0;
|
||
|
if (PyDict_SetItemString(((PyObject *)__pyx_t_2), "__doc__", ((PyObject *)__pyx_kp_s_29)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 89; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__pyx_t_4 = __Pyx_CreateClass(__pyx_t_3, ((PyObject *)__pyx_t_2), __pyx_n_s__ObjectHeaderError, "h5py.h5e"); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 89; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
||
|
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__ObjectHeaderError, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 89; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
__Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":94
|
||
|
*
|
||
|
* # H5E_DATATYPE, # Datatype
|
||
|
* class DatatypeError(H5Error): # <<<<<<<<<<<<<<
|
||
|
* """ H5E_DATATYPE """
|
||
|
* pass
|
||
|
*/
|
||
|
__pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 94; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(((PyObject *)__pyx_t_2));
|
||
|
__pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s__H5Error); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 94; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
__pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 94; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_3);
|
||
|
PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4);
|
||
|
__Pyx_GIVEREF(__pyx_t_4);
|
||
|
__pyx_t_4 = 0;
|
||
|
if (PyDict_SetItemString(((PyObject *)__pyx_t_2), "__doc__", ((PyObject *)__pyx_kp_s_30)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 94; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__pyx_t_4 = __Pyx_CreateClass(__pyx_t_3, ((PyObject *)__pyx_t_2), __pyx_n_s__DatatypeError, "h5py.h5e"); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 94; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
||
|
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__DatatypeError, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 94; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
__Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":99
|
||
|
*
|
||
|
* # H5E_DATASPACE, # Dataspace
|
||
|
* class DataspaceError(H5Error): # <<<<<<<<<<<<<<
|
||
|
* """ H5E_DATASPACE """
|
||
|
* pass
|
||
|
*/
|
||
|
__pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 99; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(((PyObject *)__pyx_t_2));
|
||
|
__pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s__H5Error); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 99; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
__pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 99; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_3);
|
||
|
PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4);
|
||
|
__Pyx_GIVEREF(__pyx_t_4);
|
||
|
__pyx_t_4 = 0;
|
||
|
if (PyDict_SetItemString(((PyObject *)__pyx_t_2), "__doc__", ((PyObject *)__pyx_kp_s_31)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 99; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__pyx_t_4 = __Pyx_CreateClass(__pyx_t_3, ((PyObject *)__pyx_t_2), __pyx_n_s__DataspaceError, "h5py.h5e"); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 99; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
||
|
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__DataspaceError, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 99; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
__Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":104
|
||
|
*
|
||
|
* # H5E_DATASET, # Dataset
|
||
|
* class DatasetError(H5Error): # <<<<<<<<<<<<<<
|
||
|
* """ H5E_DATASET """
|
||
|
* pass
|
||
|
*/
|
||
|
__pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 104; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(((PyObject *)__pyx_t_2));
|
||
|
__pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s__H5Error); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 104; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
__pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 104; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_3);
|
||
|
PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4);
|
||
|
__Pyx_GIVEREF(__pyx_t_4);
|
||
|
__pyx_t_4 = 0;
|
||
|
if (PyDict_SetItemString(((PyObject *)__pyx_t_2), "__doc__", ((PyObject *)__pyx_kp_s_32)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 104; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__pyx_t_4 = __Pyx_CreateClass(__pyx_t_3, ((PyObject *)__pyx_t_2), __pyx_n_s__DatasetError, "h5py.h5e"); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 104; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
||
|
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__DatasetError, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 104; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
__Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":109
|
||
|
*
|
||
|
* # H5E_STORAGE, # data storage
|
||
|
* class StorageError(H5Error): # <<<<<<<<<<<<<<
|
||
|
* """ H5E_STORAGE """
|
||
|
* pass
|
||
|
*/
|
||
|
__pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 109; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(((PyObject *)__pyx_t_2));
|
||
|
__pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s__H5Error); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 109; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
__pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 109; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_3);
|
||
|
PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4);
|
||
|
__Pyx_GIVEREF(__pyx_t_4);
|
||
|
__pyx_t_4 = 0;
|
||
|
if (PyDict_SetItemString(((PyObject *)__pyx_t_2), "__doc__", ((PyObject *)__pyx_kp_s_33)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 109; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__pyx_t_4 = __Pyx_CreateClass(__pyx_t_3, ((PyObject *)__pyx_t_2), __pyx_n_s__StorageError, "h5py.h5e"); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 109; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
||
|
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__StorageError, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 109; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
__Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":114
|
||
|
*
|
||
|
* # H5E_PLIST, # Property lists
|
||
|
* class PropertyError(H5Error): # <<<<<<<<<<<<<<
|
||
|
* """ H5E_PLIST """
|
||
|
* pass
|
||
|
*/
|
||
|
__pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 114; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(((PyObject *)__pyx_t_2));
|
||
|
__pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s__H5Error); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 114; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
__pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 114; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_3);
|
||
|
PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4);
|
||
|
__Pyx_GIVEREF(__pyx_t_4);
|
||
|
__pyx_t_4 = 0;
|
||
|
if (PyDict_SetItemString(((PyObject *)__pyx_t_2), "__doc__", ((PyObject *)__pyx_kp_s_34)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 114; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__pyx_t_4 = __Pyx_CreateClass(__pyx_t_3, ((PyObject *)__pyx_t_2), __pyx_n_s__PropertyError, "h5py.h5e"); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 114; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
||
|
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__PropertyError, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 114; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
__Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":119
|
||
|
*
|
||
|
* # H5E_ATTR, # Attribute
|
||
|
* class AttrError(H5Error): # <<<<<<<<<<<<<<
|
||
|
* """ H5E_ATTR """
|
||
|
* pass
|
||
|
*/
|
||
|
__pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 119; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(((PyObject *)__pyx_t_2));
|
||
|
__pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s__H5Error); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 119; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
__pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 119; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_3);
|
||
|
PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4);
|
||
|
__Pyx_GIVEREF(__pyx_t_4);
|
||
|
__pyx_t_4 = 0;
|
||
|
if (PyDict_SetItemString(((PyObject *)__pyx_t_2), "__doc__", ((PyObject *)__pyx_kp_s_35)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 119; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__pyx_t_4 = __Pyx_CreateClass(__pyx_t_3, ((PyObject *)__pyx_t_2), __pyx_n_s__AttrError, "h5py.h5e"); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 119; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
||
|
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__AttrError, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 119; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
__Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":124
|
||
|
*
|
||
|
* # H5E_PLINE, # Data filters
|
||
|
* class FilterError(H5Error): # <<<<<<<<<<<<<<
|
||
|
* """ H5E_PLINE """
|
||
|
* pass
|
||
|
*/
|
||
|
__pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 124; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(((PyObject *)__pyx_t_2));
|
||
|
__pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s__H5Error); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 124; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
__pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 124; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_3);
|
||
|
PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4);
|
||
|
__Pyx_GIVEREF(__pyx_t_4);
|
||
|
__pyx_t_4 = 0;
|
||
|
if (PyDict_SetItemString(((PyObject *)__pyx_t_2), "__doc__", ((PyObject *)__pyx_kp_s_36)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 124; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__pyx_t_4 = __Pyx_CreateClass(__pyx_t_3, ((PyObject *)__pyx_t_2), __pyx_n_s__FilterError, "h5py.h5e"); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 124; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
||
|
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__FilterError, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 124; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
__Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":129
|
||
|
*
|
||
|
* # H5E_EFL, # External file list
|
||
|
* class FileListError(H5Error): # <<<<<<<<<<<<<<
|
||
|
* """ H5E_EFL """
|
||
|
* pass
|
||
|
*/
|
||
|
__pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 129; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(((PyObject *)__pyx_t_2));
|
||
|
__pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s__H5Error); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 129; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
__pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 129; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_3);
|
||
|
PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4);
|
||
|
__Pyx_GIVEREF(__pyx_t_4);
|
||
|
__pyx_t_4 = 0;
|
||
|
if (PyDict_SetItemString(((PyObject *)__pyx_t_2), "__doc__", ((PyObject *)__pyx_kp_s_37)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 129; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__pyx_t_4 = __Pyx_CreateClass(__pyx_t_3, ((PyObject *)__pyx_t_2), __pyx_n_s__FileListError, "h5py.h5e"); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 129; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
||
|
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__FileListError, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 129; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
__Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":134
|
||
|
*
|
||
|
* # H5E_REFERENCE, # References
|
||
|
* class RefError(H5Error): # <<<<<<<<<<<<<<
|
||
|
* """ H5E_REFERENCE """
|
||
|
* pass
|
||
|
*/
|
||
|
__pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 134; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(((PyObject *)__pyx_t_2));
|
||
|
__pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s__H5Error); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 134; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
__pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 134; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_3);
|
||
|
PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4);
|
||
|
__Pyx_GIVEREF(__pyx_t_4);
|
||
|
__pyx_t_4 = 0;
|
||
|
if (PyDict_SetItemString(((PyObject *)__pyx_t_2), "__doc__", ((PyObject *)__pyx_kp_s_38)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 134; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__pyx_t_4 = __Pyx_CreateClass(__pyx_t_3, ((PyObject *)__pyx_t_2), __pyx_n_s__RefError, "h5py.h5e"); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 134; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
||
|
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__RefError, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 134; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
__Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":139
|
||
|
*
|
||
|
* # H5E_VFL, # Virtual File Layer
|
||
|
* class VirtualFileError(H5Error): # <<<<<<<<<<<<<<
|
||
|
* """ H5E_VFL """
|
||
|
* pass
|
||
|
*/
|
||
|
__pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 139; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(((PyObject *)__pyx_t_2));
|
||
|
__pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s__H5Error); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 139; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
__pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 139; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_3);
|
||
|
PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4);
|
||
|
__Pyx_GIVEREF(__pyx_t_4);
|
||
|
__pyx_t_4 = 0;
|
||
|
if (PyDict_SetItemString(((PyObject *)__pyx_t_2), "__doc__", ((PyObject *)__pyx_kp_s_39)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 139; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__pyx_t_4 = __Pyx_CreateClass(__pyx_t_3, ((PyObject *)__pyx_t_2), __pyx_n_s__VirtualFileError, "h5py.h5e"); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 139; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
||
|
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__VirtualFileError, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 139; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
__Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":144
|
||
|
*
|
||
|
* # H5E_TST, # Ternary Search Trees
|
||
|
* class TSTError(H5Error): # <<<<<<<<<<<<<<
|
||
|
* """ H5E_TST """
|
||
|
* pass
|
||
|
*/
|
||
|
__pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 144; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(((PyObject *)__pyx_t_2));
|
||
|
__pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s__H5Error); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 144; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
__pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 144; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_3);
|
||
|
PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4);
|
||
|
__Pyx_GIVEREF(__pyx_t_4);
|
||
|
__pyx_t_4 = 0;
|
||
|
if (PyDict_SetItemString(((PyObject *)__pyx_t_2), "__doc__", ((PyObject *)__pyx_kp_s_40)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 144; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__pyx_t_4 = __Pyx_CreateClass(__pyx_t_3, ((PyObject *)__pyx_t_2), __pyx_n_s__TSTError, "h5py.h5e"); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 144; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
||
|
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__TSTError, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 144; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
__Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":149
|
||
|
*
|
||
|
* # H5E_RS, # Reference Counted Strings
|
||
|
* class RSError(H5Error): # <<<<<<<<<<<<<<
|
||
|
* """ H5E_RS """
|
||
|
* pass
|
||
|
*/
|
||
|
__pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 149; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(((PyObject *)__pyx_t_2));
|
||
|
__pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s__H5Error); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 149; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
__pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 149; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_3);
|
||
|
PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4);
|
||
|
__Pyx_GIVEREF(__pyx_t_4);
|
||
|
__pyx_t_4 = 0;
|
||
|
if (PyDict_SetItemString(((PyObject *)__pyx_t_2), "__doc__", ((PyObject *)__pyx_kp_s_41)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 149; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__pyx_t_4 = __Pyx_CreateClass(__pyx_t_3, ((PyObject *)__pyx_t_2), __pyx_n_s__RSError, "h5py.h5e"); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 149; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
||
|
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__RSError, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 149; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
__Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":154
|
||
|
*
|
||
|
* # H5E_ERROR, # Error API
|
||
|
* class ErrorError(H5Error): # <<<<<<<<<<<<<<
|
||
|
* """ H5E_ERROR """
|
||
|
* pass
|
||
|
*/
|
||
|
__pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 154; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(((PyObject *)__pyx_t_2));
|
||
|
__pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s__H5Error); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 154; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
__pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 154; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_3);
|
||
|
PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4);
|
||
|
__Pyx_GIVEREF(__pyx_t_4);
|
||
|
__pyx_t_4 = 0;
|
||
|
if (PyDict_SetItemString(((PyObject *)__pyx_t_2), "__doc__", ((PyObject *)__pyx_kp_s_42)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 154; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__pyx_t_4 = __Pyx_CreateClass(__pyx_t_3, ((PyObject *)__pyx_t_2), __pyx_n_s__ErrorError, "h5py.h5e"); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 154; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
||
|
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__ErrorError, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 154; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
__Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":159
|
||
|
*
|
||
|
* # H5E_SLIST # Skip Lists
|
||
|
* class SkipListError(H5Error): # <<<<<<<<<<<<<<
|
||
|
* """ H5E_SLIST """
|
||
|
* pass
|
||
|
*/
|
||
|
__pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 159; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(((PyObject *)__pyx_t_2));
|
||
|
__pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s__H5Error); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 159; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
__pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 159; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_3);
|
||
|
PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4);
|
||
|
__Pyx_GIVEREF(__pyx_t_4);
|
||
|
__pyx_t_4 = 0;
|
||
|
if (PyDict_SetItemString(((PyObject *)__pyx_t_2), "__doc__", ((PyObject *)__pyx_kp_s_43)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 159; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__pyx_t_4 = __Pyx_CreateClass(__pyx_t_3, ((PyObject *)__pyx_t_2), __pyx_n_s__SkipListError, "h5py.h5e"); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 159; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
||
|
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__SkipListError, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 159; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
__Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":165
|
||
|
* # Traditional major error classes. One of these (or H5Error) is always a
|
||
|
* # parent class of the raised exception.
|
||
|
* cdef dict _major_table = { # <<<<<<<<<<<<<<
|
||
|
* H5E_ARGS: ArgsError,
|
||
|
* H5E_RESOURCE: ResourceError,
|
||
|
*/
|
||
|
__pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 165; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(((PyObject *)__pyx_t_2));
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":166
|
||
|
* # parent class of the raised exception.
|
||
|
* cdef dict _major_table = {
|
||
|
* H5E_ARGS: ArgsError, # <<<<<<<<<<<<<<
|
||
|
* H5E_RESOURCE: ResourceError,
|
||
|
* H5E_INTERNAL: InternalError,
|
||
|
*/
|
||
|
__pyx_t_4 = PyInt_FromLong(H5E_ARGS); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 166; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
__pyx_t_3 = __Pyx_GetName(__pyx_m, __pyx_n_s__ArgsError); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 166; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_3);
|
||
|
if (PyDict_SetItem(__pyx_t_2, __pyx_t_4, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 165; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":167
|
||
|
* cdef dict _major_table = {
|
||
|
* H5E_ARGS: ArgsError,
|
||
|
* H5E_RESOURCE: ResourceError, # <<<<<<<<<<<<<<
|
||
|
* H5E_INTERNAL: InternalError,
|
||
|
* H5E_FILE: FileError,
|
||
|
*/
|
||
|
__pyx_t_3 = PyInt_FromLong(H5E_RESOURCE); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 167; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_3);
|
||
|
__pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s__ResourceError); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 167; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
if (PyDict_SetItem(__pyx_t_2, __pyx_t_3, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 165; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":168
|
||
|
* H5E_ARGS: ArgsError,
|
||
|
* H5E_RESOURCE: ResourceError,
|
||
|
* H5E_INTERNAL: InternalError, # <<<<<<<<<<<<<<
|
||
|
* H5E_FILE: FileError,
|
||
|
* H5E_IO: LowLevelIOError,
|
||
|
*/
|
||
|
__pyx_t_4 = PyInt_FromLong(H5E_INTERNAL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 168; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
__pyx_t_3 = __Pyx_GetName(__pyx_m, __pyx_n_s__InternalError); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 168; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_3);
|
||
|
if (PyDict_SetItem(__pyx_t_2, __pyx_t_4, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 165; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":169
|
||
|
* H5E_RESOURCE: ResourceError,
|
||
|
* H5E_INTERNAL: InternalError,
|
||
|
* H5E_FILE: FileError, # <<<<<<<<<<<<<<
|
||
|
* H5E_IO: LowLevelIOError,
|
||
|
* H5E_FUNC: FuncError,
|
||
|
*/
|
||
|
__pyx_t_3 = PyInt_FromLong(H5E_FILE); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 169; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_3);
|
||
|
__pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s__FileError); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 169; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
if (PyDict_SetItem(__pyx_t_2, __pyx_t_3, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 165; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":170
|
||
|
* H5E_INTERNAL: InternalError,
|
||
|
* H5E_FILE: FileError,
|
||
|
* H5E_IO: LowLevelIOError, # <<<<<<<<<<<<<<
|
||
|
* H5E_FUNC: FuncError,
|
||
|
* H5E_ATOM: AtomError,
|
||
|
*/
|
||
|
__pyx_t_4 = PyInt_FromLong(H5E_IO); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 170; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
__pyx_t_3 = __Pyx_GetName(__pyx_m, __pyx_n_s__LowLevelIOError); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 170; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_3);
|
||
|
if (PyDict_SetItem(__pyx_t_2, __pyx_t_4, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 165; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":171
|
||
|
* H5E_FILE: FileError,
|
||
|
* H5E_IO: LowLevelIOError,
|
||
|
* H5E_FUNC: FuncError, # <<<<<<<<<<<<<<
|
||
|
* H5E_ATOM: AtomError,
|
||
|
* H5E_CACHE: CacheError,
|
||
|
*/
|
||
|
__pyx_t_3 = PyInt_FromLong(H5E_FUNC); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 171; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_3);
|
||
|
__pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s__FuncError); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 171; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
if (PyDict_SetItem(__pyx_t_2, __pyx_t_3, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 165; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":172
|
||
|
* H5E_IO: LowLevelIOError,
|
||
|
* H5E_FUNC: FuncError,
|
||
|
* H5E_ATOM: AtomError, # <<<<<<<<<<<<<<
|
||
|
* H5E_CACHE: CacheError,
|
||
|
* H5E_BTREE: BtreeError,
|
||
|
*/
|
||
|
__pyx_t_4 = PyInt_FromLong(H5E_ATOM); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 172; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
__pyx_t_3 = __Pyx_GetName(__pyx_m, __pyx_n_s__AtomError); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 172; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_3);
|
||
|
if (PyDict_SetItem(__pyx_t_2, __pyx_t_4, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 165; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":173
|
||
|
* H5E_FUNC: FuncError,
|
||
|
* H5E_ATOM: AtomError,
|
||
|
* H5E_CACHE: CacheError, # <<<<<<<<<<<<<<
|
||
|
* H5E_BTREE: BtreeError,
|
||
|
* H5E_SYM: SymbolError,
|
||
|
*/
|
||
|
__pyx_t_3 = PyInt_FromLong(H5E_CACHE); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 173; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_3);
|
||
|
__pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s__CacheError); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 173; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
if (PyDict_SetItem(__pyx_t_2, __pyx_t_3, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 165; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":174
|
||
|
* H5E_ATOM: AtomError,
|
||
|
* H5E_CACHE: CacheError,
|
||
|
* H5E_BTREE: BtreeError, # <<<<<<<<<<<<<<
|
||
|
* H5E_SYM: SymbolError,
|
||
|
* H5E_HEAP: HeapError,
|
||
|
*/
|
||
|
__pyx_t_4 = PyInt_FromLong(H5E_BTREE); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 174; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
__pyx_t_3 = __Pyx_GetName(__pyx_m, __pyx_n_s__BtreeError); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 174; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_3);
|
||
|
if (PyDict_SetItem(__pyx_t_2, __pyx_t_4, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 165; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":175
|
||
|
* H5E_CACHE: CacheError,
|
||
|
* H5E_BTREE: BtreeError,
|
||
|
* H5E_SYM: SymbolError, # <<<<<<<<<<<<<<
|
||
|
* H5E_HEAP: HeapError,
|
||
|
* H5E_OHDR: ObjectHeaderError,
|
||
|
*/
|
||
|
__pyx_t_3 = PyInt_FromLong(H5E_SYM); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 175; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_3);
|
||
|
__pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s__SymbolError); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 175; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
if (PyDict_SetItem(__pyx_t_2, __pyx_t_3, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 165; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":176
|
||
|
* H5E_BTREE: BtreeError,
|
||
|
* H5E_SYM: SymbolError,
|
||
|
* H5E_HEAP: HeapError, # <<<<<<<<<<<<<<
|
||
|
* H5E_OHDR: ObjectHeaderError,
|
||
|
* H5E_DATATYPE: DatatypeError,
|
||
|
*/
|
||
|
__pyx_t_4 = PyInt_FromLong(H5E_HEAP); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 176; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
__pyx_t_3 = __Pyx_GetName(__pyx_m, __pyx_n_s__HeapError); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 176; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_3);
|
||
|
if (PyDict_SetItem(__pyx_t_2, __pyx_t_4, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 165; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":177
|
||
|
* H5E_SYM: SymbolError,
|
||
|
* H5E_HEAP: HeapError,
|
||
|
* H5E_OHDR: ObjectHeaderError, # <<<<<<<<<<<<<<
|
||
|
* H5E_DATATYPE: DatatypeError,
|
||
|
* H5E_DATASPACE: DataspaceError,
|
||
|
*/
|
||
|
__pyx_t_3 = PyInt_FromLong(H5E_OHDR); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 177; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_3);
|
||
|
__pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s__ObjectHeaderError); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 177; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
if (PyDict_SetItem(__pyx_t_2, __pyx_t_3, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 165; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":178
|
||
|
* H5E_HEAP: HeapError,
|
||
|
* H5E_OHDR: ObjectHeaderError,
|
||
|
* H5E_DATATYPE: DatatypeError, # <<<<<<<<<<<<<<
|
||
|
* H5E_DATASPACE: DataspaceError,
|
||
|
* H5E_DATASET: DatasetError,
|
||
|
*/
|
||
|
__pyx_t_4 = PyInt_FromLong(H5E_DATATYPE); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 178; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
__pyx_t_3 = __Pyx_GetName(__pyx_m, __pyx_n_s__DatatypeError); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 178; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_3);
|
||
|
if (PyDict_SetItem(__pyx_t_2, __pyx_t_4, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 165; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":179
|
||
|
* H5E_OHDR: ObjectHeaderError,
|
||
|
* H5E_DATATYPE: DatatypeError,
|
||
|
* H5E_DATASPACE: DataspaceError, # <<<<<<<<<<<<<<
|
||
|
* H5E_DATASET: DatasetError,
|
||
|
* H5E_STORAGE: StorageError,
|
||
|
*/
|
||
|
__pyx_t_3 = PyInt_FromLong(H5E_DATASPACE); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 179; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_3);
|
||
|
__pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s__DataspaceError); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 179; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
if (PyDict_SetItem(__pyx_t_2, __pyx_t_3, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 165; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":180
|
||
|
* H5E_DATATYPE: DatatypeError,
|
||
|
* H5E_DATASPACE: DataspaceError,
|
||
|
* H5E_DATASET: DatasetError, # <<<<<<<<<<<<<<
|
||
|
* H5E_STORAGE: StorageError,
|
||
|
* H5E_PLIST: PropertyError,
|
||
|
*/
|
||
|
__pyx_t_4 = PyInt_FromLong(H5E_DATASET); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 180; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
__pyx_t_3 = __Pyx_GetName(__pyx_m, __pyx_n_s__DatasetError); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 180; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_3);
|
||
|
if (PyDict_SetItem(__pyx_t_2, __pyx_t_4, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 165; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":181
|
||
|
* H5E_DATASPACE: DataspaceError,
|
||
|
* H5E_DATASET: DatasetError,
|
||
|
* H5E_STORAGE: StorageError, # <<<<<<<<<<<<<<
|
||
|
* H5E_PLIST: PropertyError,
|
||
|
* H5E_ATTR: AttrError,
|
||
|
*/
|
||
|
__pyx_t_3 = PyInt_FromLong(H5E_STORAGE); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 181; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_3);
|
||
|
__pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s__StorageError); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 181; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
if (PyDict_SetItem(__pyx_t_2, __pyx_t_3, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 165; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":182
|
||
|
* H5E_DATASET: DatasetError,
|
||
|
* H5E_STORAGE: StorageError,
|
||
|
* H5E_PLIST: PropertyError, # <<<<<<<<<<<<<<
|
||
|
* H5E_ATTR: AttrError,
|
||
|
* H5E_PLINE: FilterError,
|
||
|
*/
|
||
|
__pyx_t_4 = PyInt_FromLong(H5E_PLIST); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 182; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
__pyx_t_3 = __Pyx_GetName(__pyx_m, __pyx_n_s__PropertyError); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 182; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_3);
|
||
|
if (PyDict_SetItem(__pyx_t_2, __pyx_t_4, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 165; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":183
|
||
|
* H5E_STORAGE: StorageError,
|
||
|
* H5E_PLIST: PropertyError,
|
||
|
* H5E_ATTR: AttrError, # <<<<<<<<<<<<<<
|
||
|
* H5E_PLINE: FilterError,
|
||
|
* H5E_EFL: FileListError,
|
||
|
*/
|
||
|
__pyx_t_3 = PyInt_FromLong(H5E_ATTR); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 183; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_3);
|
||
|
__pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s__AttrError); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 183; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
if (PyDict_SetItem(__pyx_t_2, __pyx_t_3, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 165; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":184
|
||
|
* H5E_PLIST: PropertyError,
|
||
|
* H5E_ATTR: AttrError,
|
||
|
* H5E_PLINE: FilterError, # <<<<<<<<<<<<<<
|
||
|
* H5E_EFL: FileListError,
|
||
|
* H5E_REFERENCE: RefError,
|
||
|
*/
|
||
|
__pyx_t_4 = PyInt_FromLong(H5E_PLINE); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 184; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
__pyx_t_3 = __Pyx_GetName(__pyx_m, __pyx_n_s__FilterError); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 184; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_3);
|
||
|
if (PyDict_SetItem(__pyx_t_2, __pyx_t_4, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 165; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":185
|
||
|
* H5E_ATTR: AttrError,
|
||
|
* H5E_PLINE: FilterError,
|
||
|
* H5E_EFL: FileListError, # <<<<<<<<<<<<<<
|
||
|
* H5E_REFERENCE: RefError,
|
||
|
* H5E_VFL: VirtualFileError,
|
||
|
*/
|
||
|
__pyx_t_3 = PyInt_FromLong(H5E_EFL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 185; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_3);
|
||
|
__pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s__FileListError); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 185; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
if (PyDict_SetItem(__pyx_t_2, __pyx_t_3, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 165; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":186
|
||
|
* H5E_PLINE: FilterError,
|
||
|
* H5E_EFL: FileListError,
|
||
|
* H5E_REFERENCE: RefError, # <<<<<<<<<<<<<<
|
||
|
* H5E_VFL: VirtualFileError,
|
||
|
* H5E_TST: TSTError,
|
||
|
*/
|
||
|
__pyx_t_4 = PyInt_FromLong(H5E_REFERENCE); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 186; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
__pyx_t_3 = __Pyx_GetName(__pyx_m, __pyx_n_s__RefError); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 186; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_3);
|
||
|
if (PyDict_SetItem(__pyx_t_2, __pyx_t_4, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 165; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":187
|
||
|
* H5E_EFL: FileListError,
|
||
|
* H5E_REFERENCE: RefError,
|
||
|
* H5E_VFL: VirtualFileError, # <<<<<<<<<<<<<<
|
||
|
* H5E_TST: TSTError,
|
||
|
* H5E_RS: RSError,
|
||
|
*/
|
||
|
__pyx_t_3 = PyInt_FromLong(H5E_VFL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 187; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_3);
|
||
|
__pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s__VirtualFileError); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 187; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
if (PyDict_SetItem(__pyx_t_2, __pyx_t_3, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 165; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":188
|
||
|
* H5E_REFERENCE: RefError,
|
||
|
* H5E_VFL: VirtualFileError,
|
||
|
* H5E_TST: TSTError, # <<<<<<<<<<<<<<
|
||
|
* H5E_RS: RSError,
|
||
|
* H5E_ERROR: ErrorError,
|
||
|
*/
|
||
|
__pyx_t_4 = PyInt_FromLong(H5E_TST); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 188; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
__pyx_t_3 = __Pyx_GetName(__pyx_m, __pyx_n_s__TSTError); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 188; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_3);
|
||
|
if (PyDict_SetItem(__pyx_t_2, __pyx_t_4, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 165; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":189
|
||
|
* H5E_VFL: VirtualFileError,
|
||
|
* H5E_TST: TSTError,
|
||
|
* H5E_RS: RSError, # <<<<<<<<<<<<<<
|
||
|
* H5E_ERROR: ErrorError,
|
||
|
* H5E_SLIST: SkipListError}
|
||
|
*/
|
||
|
__pyx_t_3 = PyInt_FromLong(H5E_RS); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 189; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_3);
|
||
|
__pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s__RSError); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 189; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
if (PyDict_SetItem(__pyx_t_2, __pyx_t_3, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 165; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":190
|
||
|
* H5E_TST: TSTError,
|
||
|
* H5E_RS: RSError,
|
||
|
* H5E_ERROR: ErrorError, # <<<<<<<<<<<<<<
|
||
|
* H5E_SLIST: SkipListError}
|
||
|
*
|
||
|
*/
|
||
|
__pyx_t_4 = PyInt_FromLong(H5E_ERROR); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 190; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
__pyx_t_3 = __Pyx_GetName(__pyx_m, __pyx_n_s__ErrorError); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 190; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_3);
|
||
|
if (PyDict_SetItem(__pyx_t_2, __pyx_t_4, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 165; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":191
|
||
|
* H5E_RS: RSError,
|
||
|
* H5E_ERROR: ErrorError,
|
||
|
* H5E_SLIST: SkipListError} # <<<<<<<<<<<<<<
|
||
|
*
|
||
|
* # Python-style minor error classes. If the minor error code matches an entry
|
||
|
*/
|
||
|
__pyx_t_3 = PyInt_FromLong(H5E_SLIST); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 191; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_3);
|
||
|
__pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s__SkipListError); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 191; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
if (PyDict_SetItem(__pyx_t_2, __pyx_t_3, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 165; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
__Pyx_GOTREF(((PyObject *)__pyx_v_4h5py_3h5e__major_table));
|
||
|
__Pyx_DECREF(((PyObject *)__pyx_v_4h5py_3h5e__major_table));
|
||
|
__Pyx_GIVEREF(((PyObject *)__pyx_t_2));
|
||
|
__pyx_v_4h5py_3h5e__major_table = __pyx_t_2;
|
||
|
__pyx_t_2 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":196
|
||
|
* # in this dict, the generated exception will also descend from the indicated
|
||
|
* # built-in exception.
|
||
|
* cdef dict _minor_table = { # <<<<<<<<<<<<<<
|
||
|
* H5E_SEEKERROR: IOError, # Seek failed
|
||
|
* H5E_READERROR: IOError, # Read failed
|
||
|
*/
|
||
|
__pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 196; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(((PyObject *)__pyx_t_2));
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":197
|
||
|
* # built-in exception.
|
||
|
* cdef dict _minor_table = {
|
||
|
* H5E_SEEKERROR: IOError, # Seek failed # <<<<<<<<<<<<<<
|
||
|
* H5E_READERROR: IOError, # Read failed
|
||
|
* H5E_WRITEERROR: IOError, # Write failed
|
||
|
*/
|
||
|
__pyx_t_4 = PyInt_FromLong(H5E_SEEKERROR); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 197; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
if (PyDict_SetItem(__pyx_t_2, __pyx_t_4, __pyx_builtin_IOError) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 196; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":198
|
||
|
* cdef dict _minor_table = {
|
||
|
* H5E_SEEKERROR: IOError, # Seek failed
|
||
|
* H5E_READERROR: IOError, # Read failed # <<<<<<<<<<<<<<
|
||
|
* H5E_WRITEERROR: IOError, # Write failed
|
||
|
* H5E_CLOSEERROR: IOError, # Close failed
|
||
|
*/
|
||
|
__pyx_t_4 = PyInt_FromLong(H5E_READERROR); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 198; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
if (PyDict_SetItem(__pyx_t_2, __pyx_t_4, __pyx_builtin_IOError) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 196; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":199
|
||
|
* H5E_SEEKERROR: IOError, # Seek failed
|
||
|
* H5E_READERROR: IOError, # Read failed
|
||
|
* H5E_WRITEERROR: IOError, # Write failed # <<<<<<<<<<<<<<
|
||
|
* H5E_CLOSEERROR: IOError, # Close failed
|
||
|
* H5E_OVERFLOW: IOError, # Address overflowed
|
||
|
*/
|
||
|
__pyx_t_4 = PyInt_FromLong(H5E_WRITEERROR); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 199; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
if (PyDict_SetItem(__pyx_t_2, __pyx_t_4, __pyx_builtin_IOError) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 196; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":200
|
||
|
* H5E_READERROR: IOError, # Read failed
|
||
|
* H5E_WRITEERROR: IOError, # Write failed
|
||
|
* H5E_CLOSEERROR: IOError, # Close failed # <<<<<<<<<<<<<<
|
||
|
* H5E_OVERFLOW: IOError, # Address overflowed
|
||
|
* H5E_FCNTL: IOError, # File control (fcntl) failed
|
||
|
*/
|
||
|
__pyx_t_4 = PyInt_FromLong(H5E_CLOSEERROR); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 200; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
if (PyDict_SetItem(__pyx_t_2, __pyx_t_4, __pyx_builtin_IOError) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 196; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":201
|
||
|
* H5E_WRITEERROR: IOError, # Write failed
|
||
|
* H5E_CLOSEERROR: IOError, # Close failed
|
||
|
* H5E_OVERFLOW: IOError, # Address overflowed # <<<<<<<<<<<<<<
|
||
|
* H5E_FCNTL: IOError, # File control (fcntl) failed
|
||
|
*
|
||
|
*/
|
||
|
__pyx_t_4 = PyInt_FromLong(H5E_OVERFLOW); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 201; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
if (PyDict_SetItem(__pyx_t_2, __pyx_t_4, __pyx_builtin_IOError) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 196; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":202
|
||
|
* H5E_CLOSEERROR: IOError, # Close failed
|
||
|
* H5E_OVERFLOW: IOError, # Address overflowed
|
||
|
* H5E_FCNTL: IOError, # File control (fcntl) failed # <<<<<<<<<<<<<<
|
||
|
*
|
||
|
* H5E_FILEEXISTS: IOError, # File already exists
|
||
|
*/
|
||
|
__pyx_t_4 = PyInt_FromLong(H5E_FCNTL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 202; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
if (PyDict_SetItem(__pyx_t_2, __pyx_t_4, __pyx_builtin_IOError) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 196; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":204
|
||
|
* H5E_FCNTL: IOError, # File control (fcntl) failed
|
||
|
*
|
||
|
* H5E_FILEEXISTS: IOError, # File already exists # <<<<<<<<<<<<<<
|
||
|
* H5E_FILEOPEN: IOError, # File already open
|
||
|
* H5E_CANTCREATE: IOError, # Unable to create file
|
||
|
*/
|
||
|
__pyx_t_4 = PyInt_FromLong(H5E_FILEEXISTS); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 204; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
if (PyDict_SetItem(__pyx_t_2, __pyx_t_4, __pyx_builtin_IOError) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 196; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":205
|
||
|
*
|
||
|
* H5E_FILEEXISTS: IOError, # File already exists
|
||
|
* H5E_FILEOPEN: IOError, # File already open # <<<<<<<<<<<<<<
|
||
|
* H5E_CANTCREATE: IOError, # Unable to create file
|
||
|
* H5E_CANTOPENFILE: IOError, # Unable to open file
|
||
|
*/
|
||
|
__pyx_t_4 = PyInt_FromLong(H5E_FILEOPEN); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 205; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
if (PyDict_SetItem(__pyx_t_2, __pyx_t_4, __pyx_builtin_IOError) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 196; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":206
|
||
|
* H5E_FILEEXISTS: IOError, # File already exists
|
||
|
* H5E_FILEOPEN: IOError, # File already open
|
||
|
* H5E_CANTCREATE: IOError, # Unable to create file # <<<<<<<<<<<<<<
|
||
|
* H5E_CANTOPENFILE: IOError, # Unable to open file
|
||
|
* H5E_CANTCLOSEFILE: IOError, # Unable to close file
|
||
|
*/
|
||
|
__pyx_t_4 = PyInt_FromLong(H5E_CANTCREATE); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 206; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
if (PyDict_SetItem(__pyx_t_2, __pyx_t_4, __pyx_builtin_IOError) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 196; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":207
|
||
|
* H5E_FILEOPEN: IOError, # File already open
|
||
|
* H5E_CANTCREATE: IOError, # Unable to create file
|
||
|
* H5E_CANTOPENFILE: IOError, # Unable to open file # <<<<<<<<<<<<<<
|
||
|
* H5E_CANTCLOSEFILE: IOError, # Unable to close file
|
||
|
* H5E_NOTHDF5: IOError, # Not an HDF5 file
|
||
|
*/
|
||
|
__pyx_t_4 = PyInt_FromLong(H5E_CANTOPENFILE); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 207; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
if (PyDict_SetItem(__pyx_t_2, __pyx_t_4, __pyx_builtin_IOError) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 196; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":208
|
||
|
* H5E_CANTCREATE: IOError, # Unable to create file
|
||
|
* H5E_CANTOPENFILE: IOError, # Unable to open file
|
||
|
* H5E_CANTCLOSEFILE: IOError, # Unable to close file # <<<<<<<<<<<<<<
|
||
|
* H5E_NOTHDF5: IOError, # Not an HDF5 file
|
||
|
* H5E_BADFILE: ValueError, # Bad file ID accessed
|
||
|
*/
|
||
|
__pyx_t_4 = PyInt_FromLong(H5E_CANTCLOSEFILE); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 208; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
if (PyDict_SetItem(__pyx_t_2, __pyx_t_4, __pyx_builtin_IOError) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 196; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":209
|
||
|
* H5E_CANTOPENFILE: IOError, # Unable to open file
|
||
|
* H5E_CANTCLOSEFILE: IOError, # Unable to close file
|
||
|
* H5E_NOTHDF5: IOError, # Not an HDF5 file # <<<<<<<<<<<<<<
|
||
|
* H5E_BADFILE: ValueError, # Bad file ID accessed
|
||
|
* H5E_TRUNCATED: IOError, # File has been truncated
|
||
|
*/
|
||
|
__pyx_t_4 = PyInt_FromLong(H5E_NOTHDF5); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 209; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
if (PyDict_SetItem(__pyx_t_2, __pyx_t_4, __pyx_builtin_IOError) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 196; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":210
|
||
|
* H5E_CANTCLOSEFILE: IOError, # Unable to close file
|
||
|
* H5E_NOTHDF5: IOError, # Not an HDF5 file
|
||
|
* H5E_BADFILE: ValueError, # Bad file ID accessed # <<<<<<<<<<<<<<
|
||
|
* H5E_TRUNCATED: IOError, # File has been truncated
|
||
|
* H5E_MOUNT: IOError, # File mount error
|
||
|
*/
|
||
|
__pyx_t_4 = PyInt_FromLong(H5E_BADFILE); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 210; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
if (PyDict_SetItem(__pyx_t_2, __pyx_t_4, __pyx_builtin_ValueError) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 196; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":211
|
||
|
* H5E_NOTHDF5: IOError, # Not an HDF5 file
|
||
|
* H5E_BADFILE: ValueError, # Bad file ID accessed
|
||
|
* H5E_TRUNCATED: IOError, # File has been truncated # <<<<<<<<<<<<<<
|
||
|
* H5E_MOUNT: IOError, # File mount error
|
||
|
*
|
||
|
*/
|
||
|
__pyx_t_4 = PyInt_FromLong(H5E_TRUNCATED); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 211; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
if (PyDict_SetItem(__pyx_t_2, __pyx_t_4, __pyx_builtin_IOError) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 196; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":212
|
||
|
* H5E_BADFILE: ValueError, # Bad file ID accessed
|
||
|
* H5E_TRUNCATED: IOError, # File has been truncated
|
||
|
* H5E_MOUNT: IOError, # File mount error # <<<<<<<<<<<<<<
|
||
|
*
|
||
|
* H5E_NOFILTER: IOError, # Requested filter is not available
|
||
|
*/
|
||
|
__pyx_t_4 = PyInt_FromLong(H5E_MOUNT); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 212; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
if (PyDict_SetItem(__pyx_t_2, __pyx_t_4, __pyx_builtin_IOError) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 196; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":214
|
||
|
* H5E_MOUNT: IOError, # File mount error
|
||
|
*
|
||
|
* H5E_NOFILTER: IOError, # Requested filter is not available # <<<<<<<<<<<<<<
|
||
|
* H5E_CALLBACK: IOError, # Callback failed
|
||
|
* H5E_CANAPPLY: IOError, # Error from filter 'can apply' callback
|
||
|
*/
|
||
|
__pyx_t_4 = PyInt_FromLong(H5E_NOFILTER); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 214; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
if (PyDict_SetItem(__pyx_t_2, __pyx_t_4, __pyx_builtin_IOError) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 196; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":215
|
||
|
*
|
||
|
* H5E_NOFILTER: IOError, # Requested filter is not available
|
||
|
* H5E_CALLBACK: IOError, # Callback failed # <<<<<<<<<<<<<<
|
||
|
* H5E_CANAPPLY: IOError, # Error from filter 'can apply' callback
|
||
|
* H5E_SETLOCAL: IOError, # Error from filter 'set local' callback
|
||
|
*/
|
||
|
__pyx_t_4 = PyInt_FromLong(H5E_CALLBACK); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 215; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
if (PyDict_SetItem(__pyx_t_2, __pyx_t_4, __pyx_builtin_IOError) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 196; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":216
|
||
|
* H5E_NOFILTER: IOError, # Requested filter is not available
|
||
|
* H5E_CALLBACK: IOError, # Callback failed
|
||
|
* H5E_CANAPPLY: IOError, # Error from filter 'can apply' callback # <<<<<<<<<<<<<<
|
||
|
* H5E_SETLOCAL: IOError, # Error from filter 'set local' callback
|
||
|
* H5E_NOENCODER: IOError, # Filter present but encoding disabled
|
||
|
*/
|
||
|
__pyx_t_4 = PyInt_FromLong(H5E_CANAPPLY); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 216; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
if (PyDict_SetItem(__pyx_t_2, __pyx_t_4, __pyx_builtin_IOError) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 196; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":217
|
||
|
* H5E_CALLBACK: IOError, # Callback failed
|
||
|
* H5E_CANAPPLY: IOError, # Error from filter 'can apply' callback
|
||
|
* H5E_SETLOCAL: IOError, # Error from filter 'set local' callback # <<<<<<<<<<<<<<
|
||
|
* H5E_NOENCODER: IOError, # Filter present but encoding disabled
|
||
|
*
|
||
|
*/
|
||
|
__pyx_t_4 = PyInt_FromLong(H5E_SETLOCAL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 217; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
if (PyDict_SetItem(__pyx_t_2, __pyx_t_4, __pyx_builtin_IOError) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 196; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":218
|
||
|
* H5E_CANAPPLY: IOError, # Error from filter 'can apply' callback
|
||
|
* H5E_SETLOCAL: IOError, # Error from filter 'set local' callback
|
||
|
* H5E_NOENCODER: IOError, # Filter present but encoding disabled # <<<<<<<<<<<<<<
|
||
|
*
|
||
|
* H5E_BADATOM: ValueError, # Unable to find atom information (already closed?)
|
||
|
*/
|
||
|
__pyx_t_4 = PyInt_FromLong(H5E_NOENCODER); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 218; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
if (PyDict_SetItem(__pyx_t_2, __pyx_t_4, __pyx_builtin_IOError) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 196; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":220
|
||
|
* H5E_NOENCODER: IOError, # Filter present but encoding disabled
|
||
|
*
|
||
|
* H5E_BADATOM: ValueError, # Unable to find atom information (already closed?) # <<<<<<<<<<<<<<
|
||
|
* H5E_BADGROUP: ValueError, # Unable to find ID group information
|
||
|
* H5E_BADSELECT: ValueError, # Invalid selection (hyperslabs)
|
||
|
*/
|
||
|
__pyx_t_4 = PyInt_FromLong(H5E_BADATOM); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 220; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
if (PyDict_SetItem(__pyx_t_2, __pyx_t_4, __pyx_builtin_ValueError) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 196; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":221
|
||
|
*
|
||
|
* H5E_BADATOM: ValueError, # Unable to find atom information (already closed?)
|
||
|
* H5E_BADGROUP: ValueError, # Unable to find ID group information # <<<<<<<<<<<<<<
|
||
|
* H5E_BADSELECT: ValueError, # Invalid selection (hyperslabs)
|
||
|
* H5E_UNINITIALIZED: ValueError, # Information is uinitialized
|
||
|
*/
|
||
|
__pyx_t_4 = PyInt_FromLong(H5E_BADGROUP); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 221; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
if (PyDict_SetItem(__pyx_t_2, __pyx_t_4, __pyx_builtin_ValueError) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 196; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":222
|
||
|
* H5E_BADATOM: ValueError, # Unable to find atom information (already closed?)
|
||
|
* H5E_BADGROUP: ValueError, # Unable to find ID group information
|
||
|
* H5E_BADSELECT: ValueError, # Invalid selection (hyperslabs) # <<<<<<<<<<<<<<
|
||
|
* H5E_UNINITIALIZED: ValueError, # Information is uinitialized
|
||
|
* H5E_UNSUPPORTED: NotImplementedError, # Feature is unsupported
|
||
|
*/
|
||
|
__pyx_t_4 = PyInt_FromLong(H5E_BADSELECT); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 222; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
if (PyDict_SetItem(__pyx_t_2, __pyx_t_4, __pyx_builtin_ValueError) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 196; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":223
|
||
|
* H5E_BADGROUP: ValueError, # Unable to find ID group information
|
||
|
* H5E_BADSELECT: ValueError, # Invalid selection (hyperslabs)
|
||
|
* H5E_UNINITIALIZED: ValueError, # Information is uinitialized # <<<<<<<<<<<<<<
|
||
|
* H5E_UNSUPPORTED: NotImplementedError, # Feature is unsupported
|
||
|
*
|
||
|
*/
|
||
|
__pyx_t_4 = PyInt_FromLong(H5E_UNINITIALIZED); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 223; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
if (PyDict_SetItem(__pyx_t_2, __pyx_t_4, __pyx_builtin_ValueError) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 196; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":224
|
||
|
* H5E_BADSELECT: ValueError, # Invalid selection (hyperslabs)
|
||
|
* H5E_UNINITIALIZED: ValueError, # Information is uinitialized
|
||
|
* H5E_UNSUPPORTED: NotImplementedError, # Feature is unsupported # <<<<<<<<<<<<<<
|
||
|
*
|
||
|
* H5E_NOTFOUND: KeyError, # Object not found
|
||
|
*/
|
||
|
__pyx_t_4 = PyInt_FromLong(H5E_UNSUPPORTED); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 224; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
if (PyDict_SetItem(__pyx_t_2, __pyx_t_4, __pyx_builtin_NotImplementedError) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 196; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":226
|
||
|
* H5E_UNSUPPORTED: NotImplementedError, # Feature is unsupported
|
||
|
*
|
||
|
* H5E_NOTFOUND: KeyError, # Object not found # <<<<<<<<<<<<<<
|
||
|
* H5E_CANTINSERT: ValueError, # Unable to insert object
|
||
|
*
|
||
|
*/
|
||
|
__pyx_t_4 = PyInt_FromLong(H5E_NOTFOUND); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 226; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
if (PyDict_SetItem(__pyx_t_2, __pyx_t_4, __pyx_builtin_KeyError) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 196; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":227
|
||
|
*
|
||
|
* H5E_NOTFOUND: KeyError, # Object not found
|
||
|
* H5E_CANTINSERT: ValueError, # Unable to insert object # <<<<<<<<<<<<<<
|
||
|
*
|
||
|
* H5E_BADTYPE: TypeError, # Inappropriate type
|
||
|
*/
|
||
|
__pyx_t_4 = PyInt_FromLong(H5E_CANTINSERT); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 227; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
if (PyDict_SetItem(__pyx_t_2, __pyx_t_4, __pyx_builtin_ValueError) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 196; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":229
|
||
|
* H5E_CANTINSERT: ValueError, # Unable to insert object
|
||
|
*
|
||
|
* H5E_BADTYPE: TypeError, # Inappropriate type # <<<<<<<<<<<<<<
|
||
|
* H5E_BADRANGE: ValueError, # Out of range
|
||
|
* H5E_BADVALUE: ValueError, # Bad value
|
||
|
*/
|
||
|
__pyx_t_4 = PyInt_FromLong(H5E_BADTYPE); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 229; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
if (PyDict_SetItem(__pyx_t_2, __pyx_t_4, __pyx_builtin_TypeError) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 196; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":230
|
||
|
*
|
||
|
* H5E_BADTYPE: TypeError, # Inappropriate type
|
||
|
* H5E_BADRANGE: ValueError, # Out of range # <<<<<<<<<<<<<<
|
||
|
* H5E_BADVALUE: ValueError, # Bad value
|
||
|
*
|
||
|
*/
|
||
|
__pyx_t_4 = PyInt_FromLong(H5E_BADRANGE); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 230; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
if (PyDict_SetItem(__pyx_t_2, __pyx_t_4, __pyx_builtin_ValueError) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 196; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":231
|
||
|
* H5E_BADTYPE: TypeError, # Inappropriate type
|
||
|
* H5E_BADRANGE: ValueError, # Out of range
|
||
|
* H5E_BADVALUE: ValueError, # Bad value # <<<<<<<<<<<<<<
|
||
|
*
|
||
|
* H5E_EXISTS: ValueError, # Object already exists
|
||
|
*/
|
||
|
__pyx_t_4 = PyInt_FromLong(H5E_BADVALUE); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 231; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
if (PyDict_SetItem(__pyx_t_2, __pyx_t_4, __pyx_builtin_ValueError) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 196; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":233
|
||
|
* H5E_BADVALUE: ValueError, # Bad value
|
||
|
*
|
||
|
* H5E_EXISTS: ValueError, # Object already exists # <<<<<<<<<<<<<<
|
||
|
* H5E_ALREADYEXISTS: ValueError, # Object already exists, part II
|
||
|
* H5E_CANTCONVERT: TypeError, # Can't convert datatypes
|
||
|
*/
|
||
|
__pyx_t_4 = PyInt_FromLong(H5E_EXISTS); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 233; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
if (PyDict_SetItem(__pyx_t_2, __pyx_t_4, __pyx_builtin_ValueError) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 196; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":234
|
||
|
*
|
||
|
* H5E_EXISTS: ValueError, # Object already exists
|
||
|
* H5E_ALREADYEXISTS: ValueError, # Object already exists, part II # <<<<<<<<<<<<<<
|
||
|
* H5E_CANTCONVERT: TypeError, # Can't convert datatypes
|
||
|
*
|
||
|
*/
|
||
|
__pyx_t_4 = PyInt_FromLong(H5E_ALREADYEXISTS); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 234; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
if (PyDict_SetItem(__pyx_t_2, __pyx_t_4, __pyx_builtin_ValueError) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 196; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":235
|
||
|
* H5E_EXISTS: ValueError, # Object already exists
|
||
|
* H5E_ALREADYEXISTS: ValueError, # Object already exists, part II
|
||
|
* H5E_CANTCONVERT: TypeError, # Can't convert datatypes # <<<<<<<<<<<<<<
|
||
|
*
|
||
|
* H5E_CANTDELETE: KeyError, # Can't delete message
|
||
|
*/
|
||
|
__pyx_t_4 = PyInt_FromLong(H5E_CANTCONVERT); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 235; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
if (PyDict_SetItem(__pyx_t_2, __pyx_t_4, __pyx_builtin_TypeError) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 196; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":237
|
||
|
* H5E_CANTCONVERT: TypeError, # Can't convert datatypes
|
||
|
*
|
||
|
* H5E_CANTDELETE: KeyError, # Can't delete message # <<<<<<<<<<<<<<
|
||
|
* }
|
||
|
*
|
||
|
*/
|
||
|
__pyx_t_4 = PyInt_FromLong(H5E_CANTDELETE); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 237; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
if (PyDict_SetItem(__pyx_t_2, __pyx_t_4, __pyx_builtin_KeyError) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 196; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
__Pyx_GOTREF(((PyObject *)__pyx_v_4h5py_3h5e__minor_table));
|
||
|
__Pyx_DECREF(((PyObject *)__pyx_v_4h5py_3h5e__minor_table));
|
||
|
__Pyx_GIVEREF(((PyObject *)__pyx_t_2));
|
||
|
__pyx_v_4h5py_3h5e__minor_table = __pyx_t_2;
|
||
|
__pyx_t_2 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":243
|
||
|
* # of the minor error codes. If a (major, minor) entry appears here,
|
||
|
* # it will override any entry in the minor error table.
|
||
|
* cdef dict _exact_table = { # <<<<<<<<<<<<<<
|
||
|
* (H5E_CACHE, H5E_BADVALUE): IOError, # obj create w/o write intent 1.8
|
||
|
* (H5E_RESOURCE, H5E_CANTINIT): IOError, # obj create w/o write intent 1.6
|
||
|
*/
|
||
|
__pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 243; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(((PyObject *)__pyx_t_2));
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":244
|
||
|
* # it will override any entry in the minor error table.
|
||
|
* cdef dict _exact_table = {
|
||
|
* (H5E_CACHE, H5E_BADVALUE): IOError, # obj create w/o write intent 1.8 # <<<<<<<<<<<<<<
|
||
|
* (H5E_RESOURCE, H5E_CANTINIT): IOError, # obj create w/o write intent 1.6
|
||
|
* (H5E_INTERNAL, H5E_SYSERRSTR): IOError, # e.g. wrong file permissions
|
||
|
*/
|
||
|
__pyx_t_4 = PyInt_FromLong(H5E_CACHE); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 244; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
__pyx_t_3 = PyInt_FromLong(H5E_BADVALUE); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 244; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_3);
|
||
|
__pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 244; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_5);
|
||
|
PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4);
|
||
|
__Pyx_GIVEREF(__pyx_t_4);
|
||
|
PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_3);
|
||
|
__Pyx_GIVEREF(__pyx_t_3);
|
||
|
__pyx_t_4 = 0;
|
||
|
__pyx_t_3 = 0;
|
||
|
if (PyDict_SetItem(__pyx_t_2, __pyx_t_5, __pyx_builtin_IOError) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 243; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":245
|
||
|
* cdef dict _exact_table = {
|
||
|
* (H5E_CACHE, H5E_BADVALUE): IOError, # obj create w/o write intent 1.8
|
||
|
* (H5E_RESOURCE, H5E_CANTINIT): IOError, # obj create w/o write intent 1.6 # <<<<<<<<<<<<<<
|
||
|
* (H5E_INTERNAL, H5E_SYSERRSTR): IOError, # e.g. wrong file permissions
|
||
|
* (H5E_DATATYPE, H5E_CANTINIT): TypeError, # No conversion path
|
||
|
*/
|
||
|
__pyx_t_5 = PyInt_FromLong(H5E_RESOURCE); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 245; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_5);
|
||
|
__pyx_t_3 = PyInt_FromLong(H5E_CANTINIT); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 245; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_3);
|
||
|
__pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 245; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_5);
|
||
|
__Pyx_GIVEREF(__pyx_t_5);
|
||
|
PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_3);
|
||
|
__Pyx_GIVEREF(__pyx_t_3);
|
||
|
__pyx_t_5 = 0;
|
||
|
__pyx_t_3 = 0;
|
||
|
if (PyDict_SetItem(__pyx_t_2, __pyx_t_4, __pyx_builtin_IOError) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 243; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":246
|
||
|
* (H5E_CACHE, H5E_BADVALUE): IOError, # obj create w/o write intent 1.8
|
||
|
* (H5E_RESOURCE, H5E_CANTINIT): IOError, # obj create w/o write intent 1.6
|
||
|
* (H5E_INTERNAL, H5E_SYSERRSTR): IOError, # e.g. wrong file permissions # <<<<<<<<<<<<<<
|
||
|
* (H5E_DATATYPE, H5E_CANTINIT): TypeError, # No conversion path
|
||
|
* (H5E_ARGS, H5E_CANTINIT): TypeError, # Illegal operation on object
|
||
|
*/
|
||
|
__pyx_t_4 = PyInt_FromLong(H5E_INTERNAL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 246; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
__pyx_t_3 = PyInt_FromLong(H5E_SYSERRSTR); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 246; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_3);
|
||
|
__pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 246; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_5);
|
||
|
PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4);
|
||
|
__Pyx_GIVEREF(__pyx_t_4);
|
||
|
PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_3);
|
||
|
__Pyx_GIVEREF(__pyx_t_3);
|
||
|
__pyx_t_4 = 0;
|
||
|
__pyx_t_3 = 0;
|
||
|
if (PyDict_SetItem(__pyx_t_2, __pyx_t_5, __pyx_builtin_IOError) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 243; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":247
|
||
|
* (H5E_RESOURCE, H5E_CANTINIT): IOError, # obj create w/o write intent 1.6
|
||
|
* (H5E_INTERNAL, H5E_SYSERRSTR): IOError, # e.g. wrong file permissions
|
||
|
* (H5E_DATATYPE, H5E_CANTINIT): TypeError, # No conversion path # <<<<<<<<<<<<<<
|
||
|
* (H5E_ARGS, H5E_CANTINIT): TypeError, # Illegal operation on object
|
||
|
* }
|
||
|
*/
|
||
|
__pyx_t_5 = PyInt_FromLong(H5E_DATATYPE); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 247; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_5);
|
||
|
__pyx_t_3 = PyInt_FromLong(H5E_CANTINIT); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 247; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_3);
|
||
|
__pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 247; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_5);
|
||
|
__Pyx_GIVEREF(__pyx_t_5);
|
||
|
PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_3);
|
||
|
__Pyx_GIVEREF(__pyx_t_3);
|
||
|
__pyx_t_5 = 0;
|
||
|
__pyx_t_3 = 0;
|
||
|
if (PyDict_SetItem(__pyx_t_2, __pyx_t_4, __pyx_builtin_TypeError) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 243; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":248
|
||
|
* (H5E_INTERNAL, H5E_SYSERRSTR): IOError, # e.g. wrong file permissions
|
||
|
* (H5E_DATATYPE, H5E_CANTINIT): TypeError, # No conversion path
|
||
|
* (H5E_ARGS, H5E_CANTINIT): TypeError, # Illegal operation on object # <<<<<<<<<<<<<<
|
||
|
* }
|
||
|
*
|
||
|
*/
|
||
|
__pyx_t_4 = PyInt_FromLong(H5E_ARGS); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 248; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
__pyx_t_3 = PyInt_FromLong(H5E_CANTINIT); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 248; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_3);
|
||
|
__pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 248; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_5);
|
||
|
PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4);
|
||
|
__Pyx_GIVEREF(__pyx_t_4);
|
||
|
PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_3);
|
||
|
__Pyx_GIVEREF(__pyx_t_3);
|
||
|
__pyx_t_4 = 0;
|
||
|
__pyx_t_3 = 0;
|
||
|
if (PyDict_SetItem(__pyx_t_2, __pyx_t_5, __pyx_builtin_TypeError) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 243; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
|
||
|
__Pyx_GOTREF(((PyObject *)__pyx_v_4h5py_3h5e__exact_table));
|
||
|
__Pyx_DECREF(((PyObject *)__pyx_v_4h5py_3h5e__exact_table));
|
||
|
__Pyx_GIVEREF(((PyObject *)__pyx_t_2));
|
||
|
__pyx_v_4h5py_3h5e__exact_table = __pyx_t_2;
|
||
|
__pyx_t_2 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":288
|
||
|
* return H5Eget_minor(<H5E_minor_t>code)
|
||
|
*
|
||
|
* _verbose = False # <<<<<<<<<<<<<<
|
||
|
* def verbose(bint v):
|
||
|
* """ (BOOL verbose)
|
||
|
*/
|
||
|
__pyx_t_2 = __Pyx_PyBool_FromLong(0); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 288; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_2);
|
||
|
if (PyObject_SetAttr(__pyx_m, __pyx_n_s___verbose, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 288; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":299
|
||
|
* _verbose = bool(v)
|
||
|
*
|
||
|
* class ErrorStack(list): # <<<<<<<<<<<<<<
|
||
|
*
|
||
|
* """
|
||
|
*/
|
||
|
__pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 299; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(((PyObject *)__pyx_t_2));
|
||
|
__pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 299; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_5);
|
||
|
__Pyx_INCREF(((PyObject *)((PyObject*)&PyList_Type)));
|
||
|
PyTuple_SET_ITEM(__pyx_t_5, 0, ((PyObject *)((PyObject*)&PyList_Type)));
|
||
|
__Pyx_GIVEREF(((PyObject *)((PyObject*)&PyList_Type)));
|
||
|
if (PyDict_SetItemString(((PyObject *)__pyx_t_2), "__doc__", ((PyObject *)__pyx_kp_s_44)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 299; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__pyx_t_3 = __Pyx_CreateClass(__pyx_t_5, ((PyObject *)__pyx_t_2), __pyx_n_s__ErrorStack, "h5py.h5e"); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 299; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_3);
|
||
|
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":305
|
||
|
* """
|
||
|
*
|
||
|
* def __init__(self, *args, **kwds): # <<<<<<<<<<<<<<
|
||
|
* list.__init__(self, *args, **kwds)
|
||
|
* H5Ewalk(H5E_WALK_UPWARD, walk_cb, <void*>self)
|
||
|
*/
|
||
|
__pyx_t_5 = PyCFunction_New(&__pyx_mdef_4h5py_3h5e_10ErrorStack___init__, 0); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 305; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_5);
|
||
|
__pyx_t_4 = PyMethod_New(__pyx_t_5, 0, __pyx_t_3); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 305; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
|
||
|
if (PyObject_SetAttr(__pyx_t_3, __pyx_n_s____init__, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 305; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":309
|
||
|
* H5Ewalk(H5E_WALK_UPWARD, walk_cb, <void*>self)
|
||
|
*
|
||
|
* def get_exc_msg(self): # <<<<<<<<<<<<<<
|
||
|
* """ Returns a 2-tuple (exception class, string message) representing
|
||
|
* the current error condition, or None if no error exists.
|
||
|
*/
|
||
|
__pyx_t_4 = PyCFunction_New(&__pyx_mdef_4h5py_3h5e_10ErrorStack_get_exc_msg, 0); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 309; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
__pyx_t_5 = PyMethod_New(__pyx_t_4, 0, __pyx_t_3); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 309; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_5);
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
if (PyObject_SetAttr(__pyx_t_3, __pyx_n_s__get_exc_msg, __pyx_t_5) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 309; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":337
|
||
|
* return exc, msg
|
||
|
*
|
||
|
* def __str__(self): # <<<<<<<<<<<<<<
|
||
|
* """ Return a string representation of the error stack """
|
||
|
* if len(self) == 0:
|
||
|
*/
|
||
|
__pyx_t_5 = PyCFunction_New(&__pyx_mdef_4h5py_3h5e_10ErrorStack___str__, 0); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 337; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_5);
|
||
|
__pyx_t_4 = PyMethod_New(__pyx_t_5, 0, __pyx_t_3); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 337; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_4);
|
||
|
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
|
||
|
if (PyObject_SetAttr(__pyx_t_3, __pyx_n_s____str__, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 337; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||
|
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__ErrorStack, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 299; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
||
|
__Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5e.pyx":387
|
||
|
* self.data = NULL
|
||
|
*
|
||
|
* NullErrorHandler = HDF5ErrorHandler() # <<<<<<<<<<<<<<
|
||
|
*
|
||
|
* cpdef object register_thread():
|
||
|
*/
|
||
|
__pyx_t_2 = PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_4h5py_3h5e_HDF5ErrorHandler)), ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 387; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_GOTREF(__pyx_t_2);
|
||
|
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__NullErrorHandler, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 387; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
||
|
|
||
|
/* "/home/tachyon/slave/unix-release/build/h5py/h5.pxd":1
|
||
|
* #+ # <<<<<<<<<<<<<<
|
||
|
* #
|
||
|
* # This file is part of h5py, a low-level Python interface to the HDF5 library.
|
||
|
*/
|
||
|
goto __pyx_L0;
|
||
|
__pyx_L1_error:;
|
||
|
__Pyx_XDECREF(__pyx_t_1);
|
||
|
__Pyx_XDECREF(__pyx_t_2);
|
||
|
__Pyx_XDECREF(__pyx_t_3);
|
||
|
__Pyx_XDECREF(__pyx_t_4);
|
||
|
__Pyx_XDECREF(__pyx_t_5);
|
||
|
if (__pyx_m) {
|
||
|
__Pyx_AddTraceback("init h5py.h5e");
|
||
|
Py_DECREF(__pyx_m); __pyx_m = 0;
|
||
|
} else if (!PyErr_Occurred()) {
|
||
|
PyErr_SetString(PyExc_ImportError, "init h5py.h5e");
|
||
|
}
|
||
|
__pyx_L0:;
|
||
|
__Pyx_RefNannyFinishContext();
|
||
|
#if PY_MAJOR_VERSION < 3
|
||
|
return;
|
||
|
#else
|
||
|
return __pyx_m;
|
||
|
#endif
|
||
|
}
|
||
|
|
||
|
static const char *__pyx_filenames[] = {
|
||
|
"h5e.pyx",
|
||
|
"h5.pxd",
|
||
|
};
|
||
|
|
||
|
/* Runtime support code */
|
||
|
|
||
|
static void __pyx_init_filenames(void) {
|
||
|
__pyx_f = __pyx_filenames;
|
||
|
}
|
||
|
|
||
|
static void __Pyx_RaiseDoubleKeywordsError(
|
||
|
const char* func_name,
|
||
|
PyObject* kw_name)
|
||
|
{
|
||
|
PyErr_Format(PyExc_TypeError,
|
||
|
#if PY_MAJOR_VERSION >= 3
|
||
|
"%s() got multiple values for keyword argument '%U'", func_name, kw_name);
|
||
|
#else
|
||
|
"%s() got multiple values for keyword argument '%s'", func_name,
|
||
|
PyString_AS_STRING(kw_name));
|
||
|
#endif
|
||
|
}
|
||
|
|
||
|
static void __Pyx_RaiseArgtupleInvalid(
|
||
|
const char* func_name,
|
||
|
int exact,
|
||
|
Py_ssize_t num_min,
|
||
|
Py_ssize_t num_max,
|
||
|
Py_ssize_t num_found)
|
||
|
{
|
||
|
Py_ssize_t num_expected;
|
||
|
const char *number, *more_or_less;
|
||
|
|
||
|
if (num_found < num_min) {
|
||
|
num_expected = num_min;
|
||
|
more_or_less = "at least";
|
||
|
} else {
|
||
|
num_expected = num_max;
|
||
|
more_or_less = "at most";
|
||
|
}
|
||
|
if (exact) {
|
||
|
more_or_less = "exactly";
|
||
|
}
|
||
|
number = (num_expected == 1) ? "" : "s";
|
||
|
PyErr_Format(PyExc_TypeError,
|
||
|
#if PY_VERSION_HEX < 0x02050000
|
||
|
"%s() takes %s %d positional argument%s (%d given)",
|
||
|
#else
|
||
|
"%s() takes %s %zd positional argument%s (%zd given)",
|
||
|
#endif
|
||
|
func_name, more_or_less, num_expected, number, num_found);
|
||
|
}
|
||
|
|
||
|
static int __Pyx_ParseOptionalKeywords(
|
||
|
PyObject *kwds,
|
||
|
PyObject **argnames[],
|
||
|
PyObject *kwds2,
|
||
|
PyObject *values[],
|
||
|
Py_ssize_t num_pos_args,
|
||
|
const char* function_name)
|
||
|
{
|
||
|
PyObject *key = 0, *value = 0;
|
||
|
Py_ssize_t pos = 0;
|
||
|
PyObject*** name;
|
||
|
PyObject*** first_kw_arg = argnames + num_pos_args;
|
||
|
|
||
|
while (PyDict_Next(kwds, &pos, &key, &value)) {
|
||
|
name = first_kw_arg;
|
||
|
while (*name && (**name != key)) name++;
|
||
|
if (*name) {
|
||
|
values[name-argnames] = value;
|
||
|
} else {
|
||
|
#if PY_MAJOR_VERSION < 3
|
||
|
if (unlikely(!PyString_CheckExact(key)) && unlikely(!PyString_Check(key))) {
|
||
|
#else
|
||
|
if (unlikely(!PyUnicode_CheckExact(key)) && unlikely(!PyUnicode_Check(key))) {
|
||
|
#endif
|
||
|
goto invalid_keyword_type;
|
||
|
} else {
|
||
|
for (name = first_kw_arg; *name; name++) {
|
||
|
#if PY_MAJOR_VERSION >= 3
|
||
|
if (PyUnicode_GET_SIZE(**name) == PyUnicode_GET_SIZE(key) &&
|
||
|
PyUnicode_Compare(**name, key) == 0) break;
|
||
|
#else
|
||
|
if (PyString_GET_SIZE(**name) == PyString_GET_SIZE(key) &&
|
||
|
_PyString_Eq(**name, key)) break;
|
||
|
#endif
|
||
|
}
|
||
|
if (*name) {
|
||
|
values[name-argnames] = value;
|
||
|
} else {
|
||
|
/* unexpected keyword found */
|
||
|
for (name=argnames; name != first_kw_arg; name++) {
|
||
|
if (**name == key) goto arg_passed_twice;
|
||
|
#if PY_MAJOR_VERSION >= 3
|
||
|
if (PyUnicode_GET_SIZE(**name) == PyUnicode_GET_SIZE(key) &&
|
||
|
PyUnicode_Compare(**name, key) == 0) goto arg_passed_twice;
|
||
|
#else
|
||
|
if (PyString_GET_SIZE(**name) == PyString_GET_SIZE(key) &&
|
||
|
_PyString_Eq(**name, key)) goto arg_passed_twice;
|
||
|
#endif
|
||
|
}
|
||
|
if (kwds2) {
|
||
|
if (unlikely(PyDict_SetItem(kwds2, key, value))) goto bad;
|
||
|
} else {
|
||
|
goto invalid_keyword;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
return 0;
|
||
|
arg_passed_twice:
|
||
|
__Pyx_RaiseDoubleKeywordsError(function_name, **name);
|
||
|
goto bad;
|
||
|
invalid_keyword_type:
|
||
|
PyErr_Format(PyExc_TypeError,
|
||
|
"%s() keywords must be strings", function_name);
|
||
|
goto bad;
|
||
|
invalid_keyword:
|
||
|
PyErr_Format(PyExc_TypeError,
|
||
|
#if PY_MAJOR_VERSION < 3
|
||
|
"%s() got an unexpected keyword argument '%s'",
|
||
|
function_name, PyString_AsString(key));
|
||
|
#else
|
||
|
"%s() got an unexpected keyword argument '%U'",
|
||
|
function_name, key);
|
||
|
#endif
|
||
|
bad:
|
||
|
return -1;
|
||
|
}
|
||
|
|
||
|
|
||
|
static INLINE void __Pyx_RaiseNeedMoreValuesError(Py_ssize_t index) {
|
||
|
PyErr_Format(PyExc_ValueError,
|
||
|
#if PY_VERSION_HEX < 0x02050000
|
||
|
"need more than %d value%s to unpack", (int)index,
|
||
|
#else
|
||
|
"need more than %zd value%s to unpack", index,
|
||
|
#endif
|
||
|
(index == 1) ? "" : "s");
|
||
|
}
|
||
|
|
||
|
static INLINE void __Pyx_RaiseTooManyValuesError(void) {
|
||
|
PyErr_SetString(PyExc_ValueError, "too many values to unpack");
|
||
|
}
|
||
|
|
||
|
static PyObject *__Pyx_UnpackItem(PyObject *iter, Py_ssize_t index) {
|
||
|
PyObject *item;
|
||
|
if (!(item = PyIter_Next(iter))) {
|
||
|
if (!PyErr_Occurred()) {
|
||
|
__Pyx_RaiseNeedMoreValuesError(index);
|
||
|
}
|
||
|
}
|
||
|
return item;
|
||
|
}
|
||
|
|
||
|
static int __Pyx_EndUnpack(PyObject *iter) {
|
||
|
PyObject *item;
|
||
|
if ((item = PyIter_Next(iter))) {
|
||
|
Py_DECREF(item);
|
||
|
__Pyx_RaiseTooManyValuesError();
|
||
|
return -1;
|
||
|
}
|
||
|
else if (!PyErr_Occurred())
|
||
|
return 0;
|
||
|
else
|
||
|
return -1;
|
||
|
}
|
||
|
|
||
|
static INLINE int __Pyx_CheckKeywordStrings(
|
||
|
PyObject *kwdict,
|
||
|
const char* function_name,
|
||
|
int kw_allowed)
|
||
|
{
|
||
|
PyObject* key = 0;
|
||
|
Py_ssize_t pos = 0;
|
||
|
while (PyDict_Next(kwdict, &pos, &key, 0)) {
|
||
|
#if PY_MAJOR_VERSION < 3
|
||
|
if (unlikely(!PyString_CheckExact(key)) && unlikely(!PyString_Check(key)))
|
||
|
#else
|
||
|
if (unlikely(!PyUnicode_CheckExact(key)) && unlikely(!PyUnicode_Check(key)))
|
||
|
#endif
|
||
|
goto invalid_keyword_type;
|
||
|
}
|
||
|
if ((!kw_allowed) && unlikely(key))
|
||
|
goto invalid_keyword;
|
||
|
return 1;
|
||
|
invalid_keyword_type:
|
||
|
PyErr_Format(PyExc_TypeError,
|
||
|
"%s() keywords must be strings", function_name);
|
||
|
return 0;
|
||
|
invalid_keyword:
|
||
|
PyErr_Format(PyExc_TypeError,
|
||
|
#if PY_MAJOR_VERSION < 3
|
||
|
"%s() got an unexpected keyword argument '%s'",
|
||
|
function_name, PyString_AsString(key));
|
||
|
#else
|
||
|
"%s() got an unexpected keyword argument '%U'",
|
||
|
function_name, key);
|
||
|
#endif
|
||
|
return 0;
|
||
|
}
|
||
|
|
||
|
static int __Pyx_ArgTypeTest(PyObject *obj, PyTypeObject *type, int none_allowed,
|
||
|
const char *name, int exact)
|
||
|
{
|
||
|
if (!type) {
|
||
|
PyErr_Format(PyExc_SystemError, "Missing type object");
|
||
|
return 0;
|
||
|
}
|
||
|
if (none_allowed && obj == Py_None) return 1;
|
||
|
else if (exact) {
|
||
|
if (Py_TYPE(obj) == type) return 1;
|
||
|
}
|
||
|
else {
|
||
|
if (PyObject_TypeCheck(obj, type)) return 1;
|
||
|
}
|
||
|
PyErr_Format(PyExc_TypeError,
|
||
|
"Argument '%s' has incorrect type (expected %s, got %s)",
|
||
|
name, type->tp_name, Py_TYPE(obj)->tp_name);
|
||
|
return 0;
|
||
|
}
|
||
|
|
||
|
static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list) {
|
||
|
PyObject *__import__ = 0;
|
||
|
PyObject *empty_list = 0;
|
||
|
PyObject *module = 0;
|
||
|
PyObject *global_dict = 0;
|
||
|
PyObject *empty_dict = 0;
|
||
|
PyObject *list;
|
||
|
__import__ = __Pyx_GetAttrString(__pyx_b, "__import__");
|
||
|
if (!__import__)
|
||
|
goto bad;
|
||
|
if (from_list)
|
||
|
list = from_list;
|
||
|
else {
|
||
|
empty_list = PyList_New(0);
|
||
|
if (!empty_list)
|
||
|
goto bad;
|
||
|
list = empty_list;
|
||
|
}
|
||
|
global_dict = PyModule_GetDict(__pyx_m);
|
||
|
if (!global_dict)
|
||
|
goto bad;
|
||
|
empty_dict = PyDict_New();
|
||
|
if (!empty_dict)
|
||
|
goto bad;
|
||
|
module = PyObject_CallFunctionObjArgs(__import__,
|
||
|
name, global_dict, empty_dict, list, NULL);
|
||
|
bad:
|
||
|
Py_XDECREF(empty_list);
|
||
|
Py_XDECREF(__import__);
|
||
|
Py_XDECREF(empty_dict);
|
||
|
return module;
|
||
|
}
|
||
|
|
||
|
static PyObject *__Pyx_GetName(PyObject *dict, PyObject *name) {
|
||
|
PyObject *result;
|
||
|
result = PyObject_GetAttr(dict, name);
|
||
|
if (!result)
|
||
|
PyErr_SetObject(PyExc_NameError, name);
|
||
|
return result;
|
||
|
}
|
||
|
|
||
|
static PyObject *__Pyx_CreateClass(
|
||
|
PyObject *bases, PyObject *dict, PyObject *name, const char *modname)
|
||
|
{
|
||
|
PyObject *py_modname;
|
||
|
PyObject *result = 0;
|
||
|
|
||
|
#if PY_MAJOR_VERSION < 3
|
||
|
py_modname = PyString_FromString(modname);
|
||
|
#else
|
||
|
py_modname = PyUnicode_FromString(modname);
|
||
|
#endif
|
||
|
if (!py_modname)
|
||
|
goto bad;
|
||
|
if (PyDict_SetItemString(dict, "__module__", py_modname) < 0)
|
||
|
goto bad;
|
||
|
#if PY_MAJOR_VERSION < 3
|
||
|
result = PyClass_New(bases, dict, name);
|
||
|
#else
|
||
|
result = PyObject_CallFunctionObjArgs((PyObject *)&PyType_Type, name, bases, dict, NULL);
|
||
|
#endif
|
||
|
bad:
|
||
|
Py_XDECREF(py_modname);
|
||
|
return result;
|
||
|
}
|
||
|
|
||
|
static INLINE void __Pyx_ErrRestore(PyObject *type, PyObject *value, PyObject *tb) {
|
||
|
PyObject *tmp_type, *tmp_value, *tmp_tb;
|
||
|
PyThreadState *tstate = PyThreadState_GET();
|
||
|
|
||
|
tmp_type = tstate->curexc_type;
|
||
|
tmp_value = tstate->curexc_value;
|
||
|
tmp_tb = tstate->curexc_traceback;
|
||
|
tstate->curexc_type = type;
|
||
|
tstate->curexc_value = value;
|
||
|
tstate->curexc_traceback = tb;
|
||
|
Py_XDECREF(tmp_type);
|
||
|
Py_XDECREF(tmp_value);
|
||
|
Py_XDECREF(tmp_tb);
|
||
|
}
|
||
|
|
||
|
static INLINE void __Pyx_ErrFetch(PyObject **type, PyObject **value, PyObject **tb) {
|
||
|
PyThreadState *tstate = PyThreadState_GET();
|
||
|
*type = tstate->curexc_type;
|
||
|
*value = tstate->curexc_value;
|
||
|
*tb = tstate->curexc_traceback;
|
||
|
|
||
|
tstate->curexc_type = 0;
|
||
|
tstate->curexc_value = 0;
|
||
|
tstate->curexc_traceback = 0;
|
||
|
}
|
||
|
|
||
|
|
||
|
#if PY_MAJOR_VERSION < 3
|
||
|
static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb) {
|
||
|
Py_XINCREF(type);
|
||
|
Py_XINCREF(value);
|
||
|
Py_XINCREF(tb);
|
||
|
/* First, check the traceback argument, replacing None with NULL. */
|
||
|
if (tb == Py_None) {
|
||
|
Py_DECREF(tb);
|
||
|
tb = 0;
|
||
|
}
|
||
|
else if (tb != NULL && !PyTraceBack_Check(tb)) {
|
||
|
PyErr_SetString(PyExc_TypeError,
|
||
|
"raise: arg 3 must be a traceback or None");
|
||
|
goto raise_error;
|
||
|
}
|
||
|
/* Next, replace a missing value with None */
|
||
|
if (value == NULL) {
|
||
|
value = Py_None;
|
||
|
Py_INCREF(value);
|
||
|
}
|
||
|
#if PY_VERSION_HEX < 0x02050000
|
||
|
if (!PyClass_Check(type))
|
||
|
#else
|
||
|
if (!PyType_Check(type))
|
||
|
#endif
|
||
|
{
|
||
|
/* Raising an instance. The value should be a dummy. */
|
||
|
if (value != Py_None) {
|
||
|
PyErr_SetString(PyExc_TypeError,
|
||
|
"instance exception may not have a separate value");
|
||
|
goto raise_error;
|
||
|
}
|
||
|
/* Normalize to raise <class>, <instance> */
|
||
|
Py_DECREF(value);
|
||
|
value = type;
|
||
|
#if PY_VERSION_HEX < 0x02050000
|
||
|
if (PyInstance_Check(type)) {
|
||
|
type = (PyObject*) ((PyInstanceObject*)type)->in_class;
|
||
|
Py_INCREF(type);
|
||
|
}
|
||
|
else {
|
||
|
type = 0;
|
||
|
PyErr_SetString(PyExc_TypeError,
|
||
|
"raise: exception must be an old-style class or instance");
|
||
|
goto raise_error;
|
||
|
}
|
||
|
#else
|
||
|
type = (PyObject*) Py_TYPE(type);
|
||
|
Py_INCREF(type);
|
||
|
if (!PyType_IsSubtype((PyTypeObject *)type, (PyTypeObject *)PyExc_BaseException)) {
|
||
|
PyErr_SetString(PyExc_TypeError,
|
||
|
"raise: exception class must be a subclass of BaseException");
|
||
|
goto raise_error;
|
||
|
}
|
||
|
#endif
|
||
|
}
|
||
|
|
||
|
__Pyx_ErrRestore(type, value, tb);
|
||
|
return;
|
||
|
raise_error:
|
||
|
Py_XDECREF(value);
|
||
|
Py_XDECREF(type);
|
||
|
Py_XDECREF(tb);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
#else /* Python 3+ */
|
||
|
|
||
|
static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb) {
|
||
|
if (tb == Py_None) {
|
||
|
tb = 0;
|
||
|
} else if (tb && !PyTraceBack_Check(tb)) {
|
||
|
PyErr_SetString(PyExc_TypeError,
|
||
|
"raise: arg 3 must be a traceback or None");
|
||
|
goto bad;
|
||
|
}
|
||
|
if (value == Py_None)
|
||
|
value = 0;
|
||
|
|
||
|
if (PyExceptionInstance_Check(type)) {
|
||
|
if (value) {
|
||
|
PyErr_SetString(PyExc_TypeError,
|
||
|
"instance exception may not have a separate value");
|
||
|
goto bad;
|
||
|
}
|
||
|
value = type;
|
||
|
type = (PyObject*) Py_TYPE(value);
|
||
|
} else if (!PyExceptionClass_Check(type)) {
|
||
|
PyErr_SetString(PyExc_TypeError,
|
||
|
"raise: exception class must be a subclass of BaseException");
|
||
|
goto bad;
|
||
|
}
|
||
|
|
||
|
PyErr_SetObject(type, value);
|
||
|
|
||
|
if (tb) {
|
||
|
PyThreadState *tstate = PyThreadState_GET();
|
||
|
PyObject* tmp_tb = tstate->curexc_traceback;
|
||
|
if (tb != tmp_tb) {
|
||
|
Py_INCREF(tb);
|
||
|
tstate->curexc_traceback = tb;
|
||
|
Py_XDECREF(tmp_tb);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
bad:
|
||
|
return;
|
||
|
}
|
||
|
#endif
|
||
|
|
||
|
static INLINE unsigned char __Pyx_PyInt_AsUnsignedChar(PyObject* x) {
|
||
|
const unsigned char neg_one = (unsigned char)-1, const_zero = 0;
|
||
|
const int is_unsigned = neg_one > const_zero;
|
||
|
if (sizeof(unsigned char) < sizeof(long)) {
|
||
|
long val = __Pyx_PyInt_AsLong(x);
|
||
|
if (unlikely(val != (long)(unsigned char)val)) {
|
||
|
if (!unlikely(val == -1 && PyErr_Occurred())) {
|
||
|
PyErr_SetString(PyExc_OverflowError,
|
||
|
(is_unsigned && unlikely(val < 0)) ?
|
||
|
"can't convert negative value to unsigned char" :
|
||
|
"value too large to convert to unsigned char");
|
||
|
}
|
||
|
return (unsigned char)-1;
|
||
|
}
|
||
|
return (unsigned char)val;
|
||
|
}
|
||
|
return (unsigned char)__Pyx_PyInt_AsUnsignedLong(x);
|
||
|
}
|
||
|
|
||
|
static INLINE unsigned short __Pyx_PyInt_AsUnsignedShort(PyObject* x) {
|
||
|
const unsigned short neg_one = (unsigned short)-1, const_zero = 0;
|
||
|
const int is_unsigned = neg_one > const_zero;
|
||
|
if (sizeof(unsigned short) < sizeof(long)) {
|
||
|
long val = __Pyx_PyInt_AsLong(x);
|
||
|
if (unlikely(val != (long)(unsigned short)val)) {
|
||
|
if (!unlikely(val == -1 && PyErr_Occurred())) {
|
||
|
PyErr_SetString(PyExc_OverflowError,
|
||
|
(is_unsigned && unlikely(val < 0)) ?
|
||
|
"can't convert negative value to unsigned short" :
|
||
|
"value too large to convert to unsigned short");
|
||
|
}
|
||
|
return (unsigned short)-1;
|
||
|
}
|
||
|
return (unsigned short)val;
|
||
|
}
|
||
|
return (unsigned short)__Pyx_PyInt_AsUnsignedLong(x);
|
||
|
}
|
||
|
|
||
|
static INLINE unsigned int __Pyx_PyInt_AsUnsignedInt(PyObject* x) {
|
||
|
const unsigned int neg_one = (unsigned int)-1, const_zero = 0;
|
||
|
const int is_unsigned = neg_one > const_zero;
|
||
|
if (sizeof(unsigned int) < sizeof(long)) {
|
||
|
long val = __Pyx_PyInt_AsLong(x);
|
||
|
if (unlikely(val != (long)(unsigned int)val)) {
|
||
|
if (!unlikely(val == -1 && PyErr_Occurred())) {
|
||
|
PyErr_SetString(PyExc_OverflowError,
|
||
|
(is_unsigned && unlikely(val < 0)) ?
|
||
|
"can't convert negative value to unsigned int" :
|
||
|
"value too large to convert to unsigned int");
|
||
|
}
|
||
|
return (unsigned int)-1;
|
||
|
}
|
||
|
return (unsigned int)val;
|
||
|
}
|
||
|
return (unsigned int)__Pyx_PyInt_AsUnsignedLong(x);
|
||
|
}
|
||
|
|
||
|
static INLINE char __Pyx_PyInt_AsChar(PyObject* x) {
|
||
|
const char neg_one = (char)-1, const_zero = 0;
|
||
|
const int is_unsigned = neg_one > const_zero;
|
||
|
if (sizeof(char) < sizeof(long)) {
|
||
|
long val = __Pyx_PyInt_AsLong(x);
|
||
|
if (unlikely(val != (long)(char)val)) {
|
||
|
if (!unlikely(val == -1 && PyErr_Occurred())) {
|
||
|
PyErr_SetString(PyExc_OverflowError,
|
||
|
(is_unsigned && unlikely(val < 0)) ?
|
||
|
"can't convert negative value to char" :
|
||
|
"value too large to convert to char");
|
||
|
}
|
||
|
return (char)-1;
|
||
|
}
|
||
|
return (char)val;
|
||
|
}
|
||
|
return (char)__Pyx_PyInt_AsLong(x);
|
||
|
}
|
||
|
|
||
|
static INLINE short __Pyx_PyInt_AsShort(PyObject* x) {
|
||
|
const short neg_one = (short)-1, const_zero = 0;
|
||
|
const int is_unsigned = neg_one > const_zero;
|
||
|
if (sizeof(short) < sizeof(long)) {
|
||
|
long val = __Pyx_PyInt_AsLong(x);
|
||
|
if (unlikely(val != (long)(short)val)) {
|
||
|
if (!unlikely(val == -1 && PyErr_Occurred())) {
|
||
|
PyErr_SetString(PyExc_OverflowError,
|
||
|
(is_unsigned && unlikely(val < 0)) ?
|
||
|
"can't convert negative value to short" :
|
||
|
"value too large to convert to short");
|
||
|
}
|
||
|
return (short)-1;
|
||
|
}
|
||
|
return (short)val;
|
||
|
}
|
||
|
return (short)__Pyx_PyInt_AsLong(x);
|
||
|
}
|
||
|
|
||
|
static INLINE int __Pyx_PyInt_AsInt(PyObject* x) {
|
||
|
const int neg_one = (int)-1, const_zero = 0;
|
||
|
const int is_unsigned = neg_one > const_zero;
|
||
|
if (sizeof(int) < sizeof(long)) {
|
||
|
long val = __Pyx_PyInt_AsLong(x);
|
||
|
if (unlikely(val != (long)(int)val)) {
|
||
|
if (!unlikely(val == -1 && PyErr_Occurred())) {
|
||
|
PyErr_SetString(PyExc_OverflowError,
|
||
|
(is_unsigned && unlikely(val < 0)) ?
|
||
|
"can't convert negative value to int" :
|
||
|
"value too large to convert to int");
|
||
|
}
|
||
|
return (int)-1;
|
||
|
}
|
||
|
return (int)val;
|
||
|
}
|
||
|
return (int)__Pyx_PyInt_AsLong(x);
|
||
|
}
|
||
|
|
||
|
static INLINE signed char __Pyx_PyInt_AsSignedChar(PyObject* x) {
|
||
|
const signed char neg_one = (signed char)-1, const_zero = 0;
|
||
|
const int is_unsigned = neg_one > const_zero;
|
||
|
if (sizeof(signed char) < sizeof(long)) {
|
||
|
long val = __Pyx_PyInt_AsLong(x);
|
||
|
if (unlikely(val != (long)(signed char)val)) {
|
||
|
if (!unlikely(val == -1 && PyErr_Occurred())) {
|
||
|
PyErr_SetString(PyExc_OverflowError,
|
||
|
(is_unsigned && unlikely(val < 0)) ?
|
||
|
"can't convert negative value to signed char" :
|
||
|
"value too large to convert to signed char");
|
||
|
}
|
||
|
return (signed char)-1;
|
||
|
}
|
||
|
return (signed char)val;
|
||
|
}
|
||
|
return (signed char)__Pyx_PyInt_AsSignedLong(x);
|
||
|
}
|
||
|
|
||
|
static INLINE signed short __Pyx_PyInt_AsSignedShort(PyObject* x) {
|
||
|
const signed short neg_one = (signed short)-1, const_zero = 0;
|
||
|
const int is_unsigned = neg_one > const_zero;
|
||
|
if (sizeof(signed short) < sizeof(long)) {
|
||
|
long val = __Pyx_PyInt_AsLong(x);
|
||
|
if (unlikely(val != (long)(signed short)val)) {
|
||
|
if (!unlikely(val == -1 && PyErr_Occurred())) {
|
||
|
PyErr_SetString(PyExc_OverflowError,
|
||
|
(is_unsigned && unlikely(val < 0)) ?
|
||
|
"can't convert negative value to signed short" :
|
||
|
"value too large to convert to signed short");
|
||
|
}
|
||
|
return (signed short)-1;
|
||
|
}
|
||
|
return (signed short)val;
|
||
|
}
|
||
|
return (signed short)__Pyx_PyInt_AsSignedLong(x);
|
||
|
}
|
||
|
|
||
|
static INLINE signed int __Pyx_PyInt_AsSignedInt(PyObject* x) {
|
||
|
const signed int neg_one = (signed int)-1, const_zero = 0;
|
||
|
const int is_unsigned = neg_one > const_zero;
|
||
|
if (sizeof(signed int) < sizeof(long)) {
|
||
|
long val = __Pyx_PyInt_AsLong(x);
|
||
|
if (unlikely(val != (long)(signed int)val)) {
|
||
|
if (!unlikely(val == -1 && PyErr_Occurred())) {
|
||
|
PyErr_SetString(PyExc_OverflowError,
|
||
|
(is_unsigned && unlikely(val < 0)) ?
|
||
|
"can't convert negative value to signed int" :
|
||
|
"value too large to convert to signed int");
|
||
|
}
|
||
|
return (signed int)-1;
|
||
|
}
|
||
|
return (signed int)val;
|
||
|
}
|
||
|
return (signed int)__Pyx_PyInt_AsSignedLong(x);
|
||
|
}
|
||
|
|
||
|
static INLINE unsigned long __Pyx_PyInt_AsUnsignedLong(PyObject* x) {
|
||
|
const unsigned long neg_one = (unsigned long)-1, const_zero = 0;
|
||
|
const int is_unsigned = neg_one > const_zero;
|
||
|
#if PY_VERSION_HEX < 0x03000000
|
||
|
if (likely(PyInt_Check(x))) {
|
||
|
long val = PyInt_AS_LONG(x);
|
||
|
if (is_unsigned && unlikely(val < 0)) {
|
||
|
PyErr_SetString(PyExc_OverflowError,
|
||
|
"can't convert negative value to unsigned long");
|
||
|
return (unsigned long)-1;
|
||
|
}
|
||
|
return (unsigned long)val;
|
||
|
} else
|
||
|
#endif
|
||
|
if (likely(PyLong_Check(x))) {
|
||
|
if (is_unsigned) {
|
||
|
if (unlikely(Py_SIZE(x) < 0)) {
|
||
|
PyErr_SetString(PyExc_OverflowError,
|
||
|
"can't convert negative value to unsigned long");
|
||
|
return (unsigned long)-1;
|
||
|
}
|
||
|
return PyLong_AsUnsignedLong(x);
|
||
|
} else {
|
||
|
return PyLong_AsLong(x);
|
||
|
}
|
||
|
} else {
|
||
|
unsigned long val;
|
||
|
PyObject *tmp = __Pyx_PyNumber_Int(x);
|
||
|
if (!tmp) return (unsigned long)-1;
|
||
|
val = __Pyx_PyInt_AsUnsignedLong(tmp);
|
||
|
Py_DECREF(tmp);
|
||
|
return val;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
static INLINE unsigned PY_LONG_LONG __Pyx_PyInt_AsUnsignedLongLong(PyObject* x) {
|
||
|
const unsigned PY_LONG_LONG neg_one = (unsigned PY_LONG_LONG)-1, const_zero = 0;
|
||
|
const int is_unsigned = neg_one > const_zero;
|
||
|
#if PY_VERSION_HEX < 0x03000000
|
||
|
if (likely(PyInt_Check(x))) {
|
||
|
long val = PyInt_AS_LONG(x);
|
||
|
if (is_unsigned && unlikely(val < 0)) {
|
||
|
PyErr_SetString(PyExc_OverflowError,
|
||
|
"can't convert negative value to unsigned PY_LONG_LONG");
|
||
|
return (unsigned PY_LONG_LONG)-1;
|
||
|
}
|
||
|
return (unsigned PY_LONG_LONG)val;
|
||
|
} else
|
||
|
#endif
|
||
|
if (likely(PyLong_Check(x))) {
|
||
|
if (is_unsigned) {
|
||
|
if (unlikely(Py_SIZE(x) < 0)) {
|
||
|
PyErr_SetString(PyExc_OverflowError,
|
||
|
"can't convert negative value to unsigned PY_LONG_LONG");
|
||
|
return (unsigned PY_LONG_LONG)-1;
|
||
|
}
|
||
|
return PyLong_AsUnsignedLongLong(x);
|
||
|
} else {
|
||
|
return PyLong_AsLongLong(x);
|
||
|
}
|
||
|
} else {
|
||
|
unsigned PY_LONG_LONG val;
|
||
|
PyObject *tmp = __Pyx_PyNumber_Int(x);
|
||
|
if (!tmp) return (unsigned PY_LONG_LONG)-1;
|
||
|
val = __Pyx_PyInt_AsUnsignedLongLong(tmp);
|
||
|
Py_DECREF(tmp);
|
||
|
return val;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
static INLINE long __Pyx_PyInt_AsLong(PyObject* x) {
|
||
|
const long neg_one = (long)-1, const_zero = 0;
|
||
|
const int is_unsigned = neg_one > const_zero;
|
||
|
#if PY_VERSION_HEX < 0x03000000
|
||
|
if (likely(PyInt_Check(x))) {
|
||
|
long val = PyInt_AS_LONG(x);
|
||
|
if (is_unsigned && unlikely(val < 0)) {
|
||
|
PyErr_SetString(PyExc_OverflowError,
|
||
|
"can't convert negative value to long");
|
||
|
return (long)-1;
|
||
|
}
|
||
|
return (long)val;
|
||
|
} else
|
||
|
#endif
|
||
|
if (likely(PyLong_Check(x))) {
|
||
|
if (is_unsigned) {
|
||
|
if (unlikely(Py_SIZE(x) < 0)) {
|
||
|
PyErr_SetString(PyExc_OverflowError,
|
||
|
"can't convert negative value to long");
|
||
|
return (long)-1;
|
||
|
}
|
||
|
return PyLong_AsUnsignedLong(x);
|
||
|
} else {
|
||
|
return PyLong_AsLong(x);
|
||
|
}
|
||
|
} else {
|
||
|
long val;
|
||
|
PyObject *tmp = __Pyx_PyNumber_Int(x);
|
||
|
if (!tmp) return (long)-1;
|
||
|
val = __Pyx_PyInt_AsLong(tmp);
|
||
|
Py_DECREF(tmp);
|
||
|
return val;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
static INLINE PY_LONG_LONG __Pyx_PyInt_AsLongLong(PyObject* x) {
|
||
|
const PY_LONG_LONG neg_one = (PY_LONG_LONG)-1, const_zero = 0;
|
||
|
const int is_unsigned = neg_one > const_zero;
|
||
|
#if PY_VERSION_HEX < 0x03000000
|
||
|
if (likely(PyInt_Check(x))) {
|
||
|
long val = PyInt_AS_LONG(x);
|
||
|
if (is_unsigned && unlikely(val < 0)) {
|
||
|
PyErr_SetString(PyExc_OverflowError,
|
||
|
"can't convert negative value to PY_LONG_LONG");
|
||
|
return (PY_LONG_LONG)-1;
|
||
|
}
|
||
|
return (PY_LONG_LONG)val;
|
||
|
} else
|
||
|
#endif
|
||
|
if (likely(PyLong_Check(x))) {
|
||
|
if (is_unsigned) {
|
||
|
if (unlikely(Py_SIZE(x) < 0)) {
|
||
|
PyErr_SetString(PyExc_OverflowError,
|
||
|
"can't convert negative value to PY_LONG_LONG");
|
||
|
return (PY_LONG_LONG)-1;
|
||
|
}
|
||
|
return PyLong_AsUnsignedLongLong(x);
|
||
|
} else {
|
||
|
return PyLong_AsLongLong(x);
|
||
|
}
|
||
|
} else {
|
||
|
PY_LONG_LONG val;
|
||
|
PyObject *tmp = __Pyx_PyNumber_Int(x);
|
||
|
if (!tmp) return (PY_LONG_LONG)-1;
|
||
|
val = __Pyx_PyInt_AsLongLong(tmp);
|
||
|
Py_DECREF(tmp);
|
||
|
return val;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
static INLINE signed long __Pyx_PyInt_AsSignedLong(PyObject* x) {
|
||
|
const signed long neg_one = (signed long)-1, const_zero = 0;
|
||
|
const int is_unsigned = neg_one > const_zero;
|
||
|
#if PY_VERSION_HEX < 0x03000000
|
||
|
if (likely(PyInt_Check(x))) {
|
||
|
long val = PyInt_AS_LONG(x);
|
||
|
if (is_unsigned && unlikely(val < 0)) {
|
||
|
PyErr_SetString(PyExc_OverflowError,
|
||
|
"can't convert negative value to signed long");
|
||
|
return (signed long)-1;
|
||
|
}
|
||
|
return (signed long)val;
|
||
|
} else
|
||
|
#endif
|
||
|
if (likely(PyLong_Check(x))) {
|
||
|
if (is_unsigned) {
|
||
|
if (unlikely(Py_SIZE(x) < 0)) {
|
||
|
PyErr_SetString(PyExc_OverflowError,
|
||
|
"can't convert negative value to signed long");
|
||
|
return (signed long)-1;
|
||
|
}
|
||
|
return PyLong_AsUnsignedLong(x);
|
||
|
} else {
|
||
|
return PyLong_AsLong(x);
|
||
|
}
|
||
|
} else {
|
||
|
signed long val;
|
||
|
PyObject *tmp = __Pyx_PyNumber_Int(x);
|
||
|
if (!tmp) return (signed long)-1;
|
||
|
val = __Pyx_PyInt_AsSignedLong(tmp);
|
||
|
Py_DECREF(tmp);
|
||
|
return val;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
static INLINE signed PY_LONG_LONG __Pyx_PyInt_AsSignedLongLong(PyObject* x) {
|
||
|
const signed PY_LONG_LONG neg_one = (signed PY_LONG_LONG)-1, const_zero = 0;
|
||
|
const int is_unsigned = neg_one > const_zero;
|
||
|
#if PY_VERSION_HEX < 0x03000000
|
||
|
if (likely(PyInt_Check(x))) {
|
||
|
long val = PyInt_AS_LONG(x);
|
||
|
if (is_unsigned && unlikely(val < 0)) {
|
||
|
PyErr_SetString(PyExc_OverflowError,
|
||
|
"can't convert negative value to signed PY_LONG_LONG");
|
||
|
return (signed PY_LONG_LONG)-1;
|
||
|
}
|
||
|
return (signed PY_LONG_LONG)val;
|
||
|
} else
|
||
|
#endif
|
||
|
if (likely(PyLong_Check(x))) {
|
||
|
if (is_unsigned) {
|
||
|
if (unlikely(Py_SIZE(x) < 0)) {
|
||
|
PyErr_SetString(PyExc_OverflowError,
|
||
|
"can't convert negative value to signed PY_LONG_LONG");
|
||
|
return (signed PY_LONG_LONG)-1;
|
||
|
}
|
||
|
return PyLong_AsUnsignedLongLong(x);
|
||
|
} else {
|
||
|
return PyLong_AsLongLong(x);
|
||
|
}
|
||
|
} else {
|
||
|
signed PY_LONG_LONG val;
|
||
|
PyObject *tmp = __Pyx_PyNumber_Int(x);
|
||
|
if (!tmp) return (signed PY_LONG_LONG)-1;
|
||
|
val = __Pyx_PyInt_AsSignedLongLong(tmp);
|
||
|
Py_DECREF(tmp);
|
||
|
return val;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
static void __Pyx_WriteUnraisable(const char *name) {
|
||
|
PyObject *old_exc, *old_val, *old_tb;
|
||
|
PyObject *ctx;
|
||
|
__Pyx_ErrFetch(&old_exc, &old_val, &old_tb);
|
||
|
#if PY_MAJOR_VERSION < 3
|
||
|
ctx = PyString_FromString(name);
|
||
|
#else
|
||
|
ctx = PyUnicode_FromString(name);
|
||
|
#endif
|
||
|
__Pyx_ErrRestore(old_exc, old_val, old_tb);
|
||
|
if (!ctx) {
|
||
|
PyErr_WriteUnraisable(Py_None);
|
||
|
} else {
|
||
|
PyErr_WriteUnraisable(ctx);
|
||
|
Py_DECREF(ctx);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
static int __Pyx_ExportFunction(const char *name, void (*f)(void), const char *sig) {
|
||
|
PyObject *d = 0;
|
||
|
PyObject *cobj = 0;
|
||
|
union {
|
||
|
void (*fp)(void);
|
||
|
void *p;
|
||
|
} tmp;
|
||
|
|
||
|
d = PyObject_GetAttrString(__pyx_m, (char *)"__pyx_capi__");
|
||
|
if (!d) {
|
||
|
PyErr_Clear();
|
||
|
d = PyDict_New();
|
||
|
if (!d)
|
||
|
goto bad;
|
||
|
Py_INCREF(d);
|
||
|
if (PyModule_AddObject(__pyx_m, (char *)"__pyx_capi__", d) < 0)
|
||
|
goto bad;
|
||
|
}
|
||
|
tmp.fp = f;
|
||
|
#if PY_VERSION_HEX < 0x03010000
|
||
|
cobj = PyCObject_FromVoidPtrAndDesc(tmp.p, (void *)sig, 0);
|
||
|
#else
|
||
|
cobj = PyCapsule_New(tmp.p, sig, 0);
|
||
|
#endif
|
||
|
if (!cobj)
|
||
|
goto bad;
|
||
|
if (PyDict_SetItemString(d, name, cobj) < 0)
|
||
|
goto bad;
|
||
|
Py_DECREF(cobj);
|
||
|
Py_DECREF(d);
|
||
|
return 0;
|
||
|
bad:
|
||
|
Py_XDECREF(cobj);
|
||
|
Py_XDECREF(d);
|
||
|
return -1;
|
||
|
}
|
||
|
|
||
|
#ifndef __PYX_HAVE_RT_ImportType
|
||
|
#define __PYX_HAVE_RT_ImportType
|
||
|
static PyTypeObject *__Pyx_ImportType(const char *module_name, const char *class_name,
|
||
|
long size)
|
||
|
{
|
||
|
PyObject *py_module = 0;
|
||
|
PyObject *result = 0;
|
||
|
PyObject *py_name = 0;
|
||
|
|
||
|
py_module = __Pyx_ImportModule(module_name);
|
||
|
if (!py_module)
|
||
|
goto bad;
|
||
|
#if PY_MAJOR_VERSION < 3
|
||
|
py_name = PyString_FromString(class_name);
|
||
|
#else
|
||
|
py_name = PyUnicode_FromString(class_name);
|
||
|
#endif
|
||
|
if (!py_name)
|
||
|
goto bad;
|
||
|
result = PyObject_GetAttr(py_module, py_name);
|
||
|
Py_DECREF(py_name);
|
||
|
py_name = 0;
|
||
|
Py_DECREF(py_module);
|
||
|
py_module = 0;
|
||
|
if (!result)
|
||
|
goto bad;
|
||
|
if (!PyType_Check(result)) {
|
||
|
PyErr_Format(PyExc_TypeError,
|
||
|
"%s.%s is not a type object",
|
||
|
module_name, class_name);
|
||
|
goto bad;
|
||
|
}
|
||
|
if (((PyTypeObject *)result)->tp_basicsize != size) {
|
||
|
PyErr_Format(PyExc_ValueError,
|
||
|
"%s.%s does not appear to be the correct type object",
|
||
|
module_name, class_name);
|
||
|
goto bad;
|
||
|
}
|
||
|
return (PyTypeObject *)result;
|
||
|
bad:
|
||
|
Py_XDECREF(py_module);
|
||
|
Py_XDECREF(result);
|
||
|
return 0;
|
||
|
}
|
||
|
#endif
|
||
|
|
||
|
#ifndef __PYX_HAVE_RT_ImportModule
|
||
|
#define __PYX_HAVE_RT_ImportModule
|
||
|
static PyObject *__Pyx_ImportModule(const char *name) {
|
||
|
PyObject *py_name = 0;
|
||
|
PyObject *py_module = 0;
|
||
|
|
||
|
#if PY_MAJOR_VERSION < 3
|
||
|
py_name = PyString_FromString(name);
|
||
|
#else
|
||
|
py_name = PyUnicode_FromString(name);
|
||
|
#endif
|
||
|
if (!py_name)
|
||
|
goto bad;
|
||
|
py_module = PyImport_Import(py_name);
|
||
|
Py_DECREF(py_name);
|
||
|
return py_module;
|
||
|
bad:
|
||
|
Py_XDECREF(py_name);
|
||
|
return 0;
|
||
|
}
|
||
|
#endif
|
||
|
|
||
|
#ifndef __PYX_HAVE_RT_ImportFunction
|
||
|
#define __PYX_HAVE_RT_ImportFunction
|
||
|
static int __Pyx_ImportFunction(PyObject *module, const char *funcname, void (**f)(void), const char *sig) {
|
||
|
PyObject *d = 0;
|
||
|
PyObject *cobj = 0;
|
||
|
union {
|
||
|
void (*fp)(void);
|
||
|
void *p;
|
||
|
} tmp;
|
||
|
#if PY_VERSION_HEX < 0x03010000
|
||
|
const char *desc, *s1, *s2;
|
||
|
#endif
|
||
|
|
||
|
d = PyObject_GetAttrString(module, (char *)"__pyx_capi__");
|
||
|
if (!d)
|
||
|
goto bad;
|
||
|
cobj = PyDict_GetItemString(d, funcname);
|
||
|
if (!cobj) {
|
||
|
PyErr_Format(PyExc_ImportError,
|
||
|
"%s does not export expected C function %s",
|
||
|
PyModule_GetName(module), funcname);
|
||
|
goto bad;
|
||
|
}
|
||
|
#if PY_VERSION_HEX < 0x03010000
|
||
|
desc = (const char *)PyCObject_GetDesc(cobj);
|
||
|
if (!desc)
|
||
|
goto bad;
|
||
|
s1 = desc; s2 = sig;
|
||
|
while (*s1 != '\0' && *s1 == *s2) { s1++; s2++; }
|
||
|
if (*s1 != *s2) {
|
||
|
PyErr_Format(PyExc_TypeError,
|
||
|
"C function %s.%s has wrong signature (expected %s, got %s)",
|
||
|
PyModule_GetName(module), funcname, sig, desc);
|
||
|
goto bad;
|
||
|
}
|
||
|
tmp.p = PyCObject_AsVoidPtr(cobj);
|
||
|
#else
|
||
|
if (!PyCapsule_IsValid(cobj, sig)) {
|
||
|
PyErr_Format(PyExc_TypeError,
|
||
|
"C function %s.%s has wrong signature (expected %s, got %s)",
|
||
|
PyModule_GetName(module), funcname, sig, PyCapsule_GetName(cobj));
|
||
|
goto bad;
|
||
|
}
|
||
|
tmp.p = PyCapsule_GetPointer(cobj, sig);
|
||
|
#endif
|
||
|
*f = tmp.fp;
|
||
|
if (!(*f))
|
||
|
goto bad;
|
||
|
Py_DECREF(d);
|
||
|
return 0;
|
||
|
bad:
|
||
|
Py_XDECREF(d);
|
||
|
return -1;
|
||
|
}
|
||
|
#endif
|
||
|
|
||
|
#include "compile.h"
|
||
|
#include "frameobject.h"
|
||
|
#include "traceback.h"
|
||
|
|
||
|
static void __Pyx_AddTraceback(const char *funcname) {
|
||
|
PyObject *py_srcfile = 0;
|
||
|
PyObject *py_funcname = 0;
|
||
|
PyObject *py_globals = 0;
|
||
|
PyCodeObject *py_code = 0;
|
||
|
PyFrameObject *py_frame = 0;
|
||
|
|
||
|
#if PY_MAJOR_VERSION < 3
|
||
|
py_srcfile = PyString_FromString(__pyx_filename);
|
||
|
#else
|
||
|
py_srcfile = PyUnicode_FromString(__pyx_filename);
|
||
|
#endif
|
||
|
if (!py_srcfile) goto bad;
|
||
|
if (__pyx_clineno) {
|
||
|
#if PY_MAJOR_VERSION < 3
|
||
|
py_funcname = PyString_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, __pyx_clineno);
|
||
|
#else
|
||
|
py_funcname = PyUnicode_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, __pyx_clineno);
|
||
|
#endif
|
||
|
}
|
||
|
else {
|
||
|
#if PY_MAJOR_VERSION < 3
|
||
|
py_funcname = PyString_FromString(funcname);
|
||
|
#else
|
||
|
py_funcname = PyUnicode_FromString(funcname);
|
||
|
#endif
|
||
|
}
|
||
|
if (!py_funcname) goto bad;
|
||
|
py_globals = PyModule_GetDict(__pyx_m);
|
||
|
if (!py_globals) goto bad;
|
||
|
py_code = PyCode_New(
|
||
|
0, /*int argcount,*/
|
||
|
#if PY_MAJOR_VERSION >= 3
|
||
|
0, /*int kwonlyargcount,*/
|
||
|
#endif
|
||
|
0, /*int nlocals,*/
|
||
|
0, /*int stacksize,*/
|
||
|
0, /*int flags,*/
|
||
|
__pyx_empty_bytes, /*PyObject *code,*/
|
||
|
__pyx_empty_tuple, /*PyObject *consts,*/
|
||
|
__pyx_empty_tuple, /*PyObject *names,*/
|
||
|
__pyx_empty_tuple, /*PyObject *varnames,*/
|
||
|
__pyx_empty_tuple, /*PyObject *freevars,*/
|
||
|
__pyx_empty_tuple, /*PyObject *cellvars,*/
|
||
|
py_srcfile, /*PyObject *filename,*/
|
||
|
py_funcname, /*PyObject *name,*/
|
||
|
__pyx_lineno, /*int firstlineno,*/
|
||
|
__pyx_empty_bytes /*PyObject *lnotab*/
|
||
|
);
|
||
|
if (!py_code) goto bad;
|
||
|
py_frame = PyFrame_New(
|
||
|
PyThreadState_GET(), /*PyThreadState *tstate,*/
|
||
|
py_code, /*PyCodeObject *code,*/
|
||
|
py_globals, /*PyObject *globals,*/
|
||
|
0 /*PyObject *locals*/
|
||
|
);
|
||
|
if (!py_frame) goto bad;
|
||
|
py_frame->f_lineno = __pyx_lineno;
|
||
|
PyTraceBack_Here(py_frame);
|
||
|
bad:
|
||
|
Py_XDECREF(py_srcfile);
|
||
|
Py_XDECREF(py_funcname);
|
||
|
Py_XDECREF(py_code);
|
||
|
Py_XDECREF(py_frame);
|
||
|
}
|
||
|
|
||
|
static int __Pyx_InitStrings(__Pyx_StringTabEntry *t) {
|
||
|
while (t->p) {
|
||
|
#if PY_MAJOR_VERSION < 3
|
||
|
if (t->is_unicode) {
|
||
|
*t->p = PyUnicode_DecodeUTF8(t->s, t->n - 1, NULL);
|
||
|
} else if (t->intern) {
|
||
|
*t->p = PyString_InternFromString(t->s);
|
||
|
} else {
|
||
|
*t->p = PyString_FromStringAndSize(t->s, t->n - 1);
|
||
|
}
|
||
|
#else /* Python 3+ has unicode identifiers */
|
||
|
if (t->is_unicode | t->is_str) {
|
||
|
if (t->intern) {
|
||
|
*t->p = PyUnicode_InternFromString(t->s);
|
||
|
} else if (t->encoding) {
|
||
|
*t->p = PyUnicode_Decode(t->s, t->n - 1, t->encoding, NULL);
|
||
|
} else {
|
||
|
*t->p = PyUnicode_FromStringAndSize(t->s, t->n - 1);
|
||
|
}
|
||
|
} else {
|
||
|
*t->p = PyBytes_FromStringAndSize(t->s, t->n - 1);
|
||
|
}
|
||
|
#endif
|
||
|
if (!*t->p)
|
||
|
return -1;
|
||
|
++t;
|
||
|
}
|
||
|
return 0;
|
||
|
}
|
||
|
|
||
|
/* Type Conversion Functions */
|
||
|
|
||
|
static INLINE int __Pyx_PyObject_IsTrue(PyObject* x) {
|
||
|
if (x == Py_True) return 1;
|
||
|
else if ((x == Py_False) | (x == Py_None)) return 0;
|
||
|
else return PyObject_IsTrue(x);
|
||
|
}
|
||
|
|
||
|
static INLINE PyObject* __Pyx_PyNumber_Int(PyObject* x) {
|
||
|
PyNumberMethods *m;
|
||
|
const char *name = NULL;
|
||
|
PyObject *res = NULL;
|
||
|
#if PY_VERSION_HEX < 0x03000000
|
||
|
if (PyInt_Check(x) || PyLong_Check(x))
|
||
|
#else
|
||
|
if (PyLong_Check(x))
|
||
|
#endif
|
||
|
return Py_INCREF(x), x;
|
||
|
m = Py_TYPE(x)->tp_as_number;
|
||
|
#if PY_VERSION_HEX < 0x03000000
|
||
|
if (m && m->nb_int) {
|
||
|
name = "int";
|
||
|
res = PyNumber_Int(x);
|
||
|
}
|
||
|
else if (m && m->nb_long) {
|
||
|
name = "long";
|
||
|
res = PyNumber_Long(x);
|
||
|
}
|
||
|
#else
|
||
|
if (m && m->nb_int) {
|
||
|
name = "int";
|
||
|
res = PyNumber_Long(x);
|
||
|
}
|
||
|
#endif
|
||
|
if (res) {
|
||
|
#if PY_VERSION_HEX < 0x03000000
|
||
|
if (!PyInt_Check(res) && !PyLong_Check(res)) {
|
||
|
#else
|
||
|
if (!PyLong_Check(res)) {
|
||
|
#endif
|
||
|
PyErr_Format(PyExc_TypeError,
|
||
|
"__%s__ returned non-%s (type %.200s)",
|
||
|
name, name, Py_TYPE(res)->tp_name);
|
||
|
Py_DECREF(res);
|
||
|
return NULL;
|
||
|
}
|
||
|
}
|
||
|
else if (!PyErr_Occurred()) {
|
||
|
PyErr_SetString(PyExc_TypeError,
|
||
|
"an integer is required");
|
||
|
}
|
||
|
return res;
|
||
|
}
|
||
|
|
||
|
static INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject* b) {
|
||
|
Py_ssize_t ival;
|
||
|
PyObject* x = PyNumber_Index(b);
|
||
|
if (!x) return -1;
|
||
|
ival = PyInt_AsSsize_t(x);
|
||
|
Py_DECREF(x);
|
||
|
return ival;
|
||
|
}
|
||
|
|
||
|
static INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t ival) {
|
||
|
#if PY_VERSION_HEX < 0x02050000
|
||
|
if (ival <= LONG_MAX)
|
||
|
return PyInt_FromLong((long)ival);
|
||
|
else {
|
||
|
unsigned char *bytes = (unsigned char *) &ival;
|
||
|
int one = 1; int little = (int)*(unsigned char*)&one;
|
||
|
return _PyLong_FromByteArray(bytes, sizeof(size_t), little, 0);
|
||
|
}
|
||
|
#else
|
||
|
return PyInt_FromSize_t(ival);
|
||
|
#endif
|
||
|
}
|
||
|
|
||
|
static INLINE size_t __Pyx_PyInt_AsSize_t(PyObject* x) {
|
||
|
unsigned PY_LONG_LONG val = __Pyx_PyInt_AsUnsignedLongLong(x);
|
||
|
if (unlikely(val == (unsigned PY_LONG_LONG)-1 && PyErr_Occurred())) {
|
||
|
return (size_t)-1;
|
||
|
} else if (unlikely(val != (unsigned PY_LONG_LONG)(size_t)val)) {
|
||
|
PyErr_SetString(PyExc_OverflowError,
|
||
|
"value too large to convert to size_t");
|
||
|
return (size_t)-1;
|
||
|
}
|
||
|
return (size_t)val;
|
||
|
}
|
||
|
|
||
|
|
||
|
#endif /* Py_PYTHON_H */
|