PageRenderTime 12ms CodeModel.GetById 4ms app.highlight 60ms RepoModel.GetById 1ms app.codeStats 1ms

/zmq/core/error.c

https://bitbucket.org/fatbox/pyzmq-static
C | 2382 lines | 1850 code | 225 blank | 307 comment | 378 complexity | 88fa36db50b2ee4bfc97b882eb65a688 MD5 | raw file

Large files files are truncated, but you can click here to view the full file

   1/* Generated by Cython 0.15.1 on Mon Dec 19 01:21:30 2011 */
   2
   3#define PY_SSIZE_T_CLEAN
   4#include "Python.h"
   5#ifndef Py_PYTHON_H
   6    #error Python headers needed to compile C extensions, please install development version of Python.
   7#else
   8
   9#include <stddef.h> /* For offsetof */
  10#ifndef offsetof
  11#define offsetof(type, member) ( (size_t) & ((type*)0) -> member )
  12#endif
  13
  14#if !defined(WIN32) && !defined(MS_WINDOWS)
  15  #ifndef __stdcall
  16    #define __stdcall
  17  #endif
  18  #ifndef __cdecl
  19    #define __cdecl
  20  #endif
  21  #ifndef __fastcall
  22    #define __fastcall
  23  #endif
  24#endif
  25
  26#ifndef DL_IMPORT
  27  #define DL_IMPORT(t) t
  28#endif
  29#ifndef DL_EXPORT
  30  #define DL_EXPORT(t) t
  31#endif
  32
  33#ifndef PY_LONG_LONG
  34  #define PY_LONG_LONG LONG_LONG
  35#endif
  36
  37#if PY_VERSION_HEX < 0x02040000
  38  #define METH_COEXIST 0
  39  #define PyDict_CheckExact(op) (Py_TYPE(op) == &PyDict_Type)
  40  #define PyDict_Contains(d,o)   PySequence_Contains(d,o)
  41#endif
  42
  43#if PY_VERSION_HEX < 0x02050000
  44  typedef int Py_ssize_t;
  45  #define PY_SSIZE_T_MAX INT_MAX
  46  #define PY_SSIZE_T_MIN INT_MIN
  47  #define PY_FORMAT_SIZE_T ""
  48  #define PyInt_FromSsize_t(z) PyInt_FromLong(z)
  49  #define PyInt_AsSsize_t(o)   __Pyx_PyInt_AsInt(o)
  50  #define PyNumber_Index(o)    PyNumber_Int(o)
  51  #define PyIndex_Check(o)     PyNumber_Check(o)
  52  #define PyErr_WarnEx(category, message, stacklevel) PyErr_Warn(category, message)
  53#endif
  54
  55#if PY_VERSION_HEX < 0x02060000
  56  #define Py_REFCNT(ob) (((PyObject*)(ob))->ob_refcnt)
  57  #define Py_TYPE(ob)   (((PyObject*)(ob))->ob_type)
  58  #define Py_SIZE(ob)   (((PyVarObject*)(ob))->ob_size)
  59  #define PyVarObject_HEAD_INIT(type, size) \
  60          PyObject_HEAD_INIT(type) size,
  61  #define PyType_Modified(t)
  62
  63  typedef struct {
  64     void *buf;
  65     PyObject *obj;
  66     Py_ssize_t len;
  67     Py_ssize_t itemsize;
  68     int readonly;
  69     int ndim;
  70     char *format;
  71     Py_ssize_t *shape;
  72     Py_ssize_t *strides;
  73     Py_ssize_t *suboffsets;
  74     void *internal;
  75  } Py_buffer;
  76
  77  #define PyBUF_SIMPLE 0
  78  #define PyBUF_WRITABLE 0x0001
  79  #define PyBUF_FORMAT 0x0004
  80  #define PyBUF_ND 0x0008
  81  #define PyBUF_STRIDES (0x0010 | PyBUF_ND)
  82  #define PyBUF_C_CONTIGUOUS (0x0020 | PyBUF_STRIDES)
  83  #define PyBUF_F_CONTIGUOUS (0x0040 | PyBUF_STRIDES)
  84  #define PyBUF_ANY_CONTIGUOUS (0x0080 | PyBUF_STRIDES)
  85  #define PyBUF_INDIRECT (0x0100 | PyBUF_STRIDES)
  86
  87#endif
  88
  89#if PY_MAJOR_VERSION < 3
  90  #define __Pyx_BUILTIN_MODULE_NAME "__builtin__"
  91#else
  92  #define __Pyx_BUILTIN_MODULE_NAME "builtins"
  93#endif
  94
  95#if PY_MAJOR_VERSION >= 3
  96  #define Py_TPFLAGS_CHECKTYPES 0
  97  #define Py_TPFLAGS_HAVE_INDEX 0
  98#endif
  99
 100#if (PY_VERSION_HEX < 0x02060000) || (PY_MAJOR_VERSION >= 3)
 101  #define Py_TPFLAGS_HAVE_NEWBUFFER 0
 102#endif
 103
 104#if PY_MAJOR_VERSION >= 3
 105  #define PyBaseString_Type            PyUnicode_Type
 106  #define PyStringObject               PyUnicodeObject
 107  #define PyString_Type                PyUnicode_Type
 108  #define PyString_Check               PyUnicode_Check
 109  #define PyString_CheckExact          PyUnicode_CheckExact
 110#endif
 111
 112#if PY_VERSION_HEX < 0x02060000
 113  #define PyBytesObject                PyStringObject
 114  #define PyBytes_Type                 PyString_Type
 115  #define PyBytes_Check                PyString_Check
 116  #define PyBytes_CheckExact           PyString_CheckExact
 117  #define PyBytes_FromString           PyString_FromString
 118  #define PyBytes_FromStringAndSize    PyString_FromStringAndSize
 119  #define PyBytes_FromFormat           PyString_FromFormat
 120  #define PyBytes_DecodeEscape         PyString_DecodeEscape
 121  #define PyBytes_AsString             PyString_AsString
 122  #define PyBytes_AsStringAndSize      PyString_AsStringAndSize
 123  #define PyBytes_Size                 PyString_Size
 124  #define PyBytes_AS_STRING            PyString_AS_STRING
 125  #define PyBytes_GET_SIZE             PyString_GET_SIZE
 126  #define PyBytes_Repr                 PyString_Repr
 127  #define PyBytes_Concat               PyString_Concat
 128  #define PyBytes_ConcatAndDel         PyString_ConcatAndDel
 129#endif
 130
 131#if PY_VERSION_HEX < 0x02060000
 132  #define PySet_Check(obj)             PyObject_TypeCheck(obj, &PySet_Type)
 133  #define PyFrozenSet_Check(obj)       PyObject_TypeCheck(obj, &PyFrozenSet_Type)
 134#endif
 135#ifndef PySet_CheckExact
 136  #define PySet_CheckExact(obj)        (Py_TYPE(obj) == &PySet_Type)
 137#endif
 138
 139#define __Pyx_TypeCheck(obj, type) PyObject_TypeCheck(obj, (PyTypeObject *)type)
 140
 141#if PY_MAJOR_VERSION >= 3
 142  #define PyIntObject                  PyLongObject
 143  #define PyInt_Type                   PyLong_Type
 144  #define PyInt_Check(op)              PyLong_Check(op)
 145  #define PyInt_CheckExact(op)         PyLong_CheckExact(op)
 146  #define PyInt_FromString             PyLong_FromString
 147  #define PyInt_FromUnicode            PyLong_FromUnicode
 148  #define PyInt_FromLong               PyLong_FromLong
 149  #define PyInt_FromSize_t             PyLong_FromSize_t
 150  #define PyInt_FromSsize_t            PyLong_FromSsize_t
 151  #define PyInt_AsLong                 PyLong_AsLong
 152  #define PyInt_AS_LONG                PyLong_AS_LONG
 153  #define PyInt_AsSsize_t              PyLong_AsSsize_t
 154  #define PyInt_AsUnsignedLongMask     PyLong_AsUnsignedLongMask
 155  #define PyInt_AsUnsignedLongLongMask PyLong_AsUnsignedLongLongMask
 156#endif
 157
 158#if PY_MAJOR_VERSION >= 3
 159  #define PyBoolObject                 PyLongObject
 160#endif
 161
 162#if PY_VERSION_HEX < 0x03020000
 163  typedef long Py_hash_t;
 164  #define __Pyx_PyInt_FromHash_t PyInt_FromLong
 165  #define __Pyx_PyInt_AsHash_t   PyInt_AsLong
 166#else
 167  #define __Pyx_PyInt_FromHash_t PyInt_FromSsize_t
 168  #define __Pyx_PyInt_AsHash_t   PyInt_AsSsize_t
 169#endif
 170
 171
 172#if PY_MAJOR_VERSION >= 3
 173  #define __Pyx_PyNumber_Divide(x,y)         PyNumber_TrueDivide(x,y)
 174  #define __Pyx_PyNumber_InPlaceDivide(x,y)  PyNumber_InPlaceTrueDivide(x,y)
 175#else
 176  #define __Pyx_PyNumber_Divide(x,y)         PyNumber_Divide(x,y)
 177  #define __Pyx_PyNumber_InPlaceDivide(x,y)  PyNumber_InPlaceDivide(x,y)
 178#endif
 179
 180#if (PY_MAJOR_VERSION < 3) || (PY_VERSION_HEX >= 0x03010300)
 181  #define __Pyx_PySequence_GetSlice(obj, a, b) PySequence_GetSlice(obj, a, b)
 182  #define __Pyx_PySequence_SetSlice(obj, a, b, value) PySequence_SetSlice(obj, a, b, value)
 183  #define __Pyx_PySequence_DelSlice(obj, a, b) PySequence_DelSlice(obj, a, b)
 184#else
 185  #define __Pyx_PySequence_GetSlice(obj, a, b) (unlikely(!(obj)) ? \
 186        (PyErr_SetString(PyExc_SystemError, "null argument to internal routine"), (PyObject*)0) : \
 187        (likely((obj)->ob_type->tp_as_mapping) ? (PySequence_GetSlice(obj, a, b)) : \
 188            (PyErr_Format(PyExc_TypeError, "'%.200s' object is unsliceable", (obj)->ob_type->tp_name), (PyObject*)0)))
 189  #define __Pyx_PySequence_SetSlice(obj, a, b, value) (unlikely(!(obj)) ? \
 190        (PyErr_SetString(PyExc_SystemError, "null argument to internal routine"), -1) : \
 191        (likely((obj)->ob_type->tp_as_mapping) ? (PySequence_SetSlice(obj, a, b, value)) : \
 192            (PyErr_Format(PyExc_TypeError, "'%.200s' object doesn't support slice assignment", (obj)->ob_type->tp_name), -1)))
 193  #define __Pyx_PySequence_DelSlice(obj, a, b) (unlikely(!(obj)) ? \
 194        (PyErr_SetString(PyExc_SystemError, "null argument to internal routine"), -1) : \
 195        (likely((obj)->ob_type->tp_as_mapping) ? (PySequence_DelSlice(obj, a, b)) : \
 196            (PyErr_Format(PyExc_TypeError, "'%.200s' object doesn't support slice deletion", (obj)->ob_type->tp_name), -1)))
 197#endif
 198
 199#if PY_MAJOR_VERSION >= 3
 200  #define PyMethod_New(func, self, klass) ((self) ? PyMethod_New(func, self) : PyInstanceMethod_New(func))
 201#endif
 202
 203#if PY_VERSION_HEX < 0x02050000
 204  #define __Pyx_GetAttrString(o,n)   PyObject_GetAttrString((o),((char *)(n)))
 205  #define __Pyx_SetAttrString(o,n,a) PyObject_SetAttrString((o),((char *)(n)),(a))
 206  #define __Pyx_DelAttrString(o,n)   PyObject_DelAttrString((o),((char *)(n)))
 207#else
 208  #define __Pyx_GetAttrString(o,n)   PyObject_GetAttrString((o),(n))
 209  #define __Pyx_SetAttrString(o,n,a) PyObject_SetAttrString((o),(n),(a))
 210  #define __Pyx_DelAttrString(o,n)   PyObject_DelAttrString((o),(n))
 211#endif
 212
 213#if PY_VERSION_HEX < 0x02050000
 214  #define __Pyx_NAMESTR(n) ((char *)(n))
 215  #define __Pyx_DOCSTR(n)  ((char *)(n))
 216#else
 217  #define __Pyx_NAMESTR(n) (n)
 218  #define __Pyx_DOCSTR(n)  (n)
 219#endif
 220
 221#ifndef __PYX_EXTERN_C
 222  #ifdef __cplusplus
 223    #define __PYX_EXTERN_C extern "C"
 224  #else
 225    #define __PYX_EXTERN_C extern
 226  #endif
 227#endif
 228
 229#if defined(WIN32) || defined(MS_WINDOWS)
 230#define _USE_MATH_DEFINES
 231#endif
 232#include <math.h>
 233#define __PYX_HAVE__zmq__core__error
 234#define __PYX_HAVE_API__zmq__core__error
 235#include "stdio.h"
 236#include "pythread.h"
 237#include "allocate.h"
 238#include "errno.h"
 239#include "string.h"
 240#include "zmq_compat.h"
 241#include "zmq.h"
 242#include "zmq_utils.h"
 243#ifdef _OPENMP
 244#include <omp.h>
 245#endif /* _OPENMP */
 246
 247#ifdef PYREX_WITHOUT_ASSERTIONS
 248#define CYTHON_WITHOUT_ASSERTIONS
 249#endif
 250
 251
 252/* inline attribute */
 253#ifndef CYTHON_INLINE
 254  #if defined(__GNUC__)
 255    #define CYTHON_INLINE __inline__
 256  #elif defined(_MSC_VER)
 257    #define CYTHON_INLINE __inline
 258  #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
 259    #define CYTHON_INLINE inline
 260  #else
 261    #define CYTHON_INLINE
 262  #endif
 263#endif
 264
 265/* unused attribute */
 266#ifndef CYTHON_UNUSED
 267# if defined(__GNUC__)
 268#   if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
 269#     define CYTHON_UNUSED __attribute__ ((__unused__))
 270#   else
 271#     define CYTHON_UNUSED
 272#   endif
 273# elif defined(__ICC) || defined(__INTEL_COMPILER)
 274#   define CYTHON_UNUSED __attribute__ ((__unused__))
 275# else
 276#   define CYTHON_UNUSED
 277# endif
 278#endif
 279
 280typedef 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*/
 281
 282
 283/* Type Conversion Predeclarations */
 284
 285#define __Pyx_PyBytes_FromUString(s) PyBytes_FromString((char*)s)
 286#define __Pyx_PyBytes_AsUString(s)   ((unsigned char*) PyBytes_AsString(s))
 287
 288#define __Pyx_Owned_Py_None(b) (Py_INCREF(Py_None), Py_None)
 289#define __Pyx_PyBool_FromLong(b) ((b) ? (Py_INCREF(Py_True), Py_True) : (Py_INCREF(Py_False), Py_False))
 290static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject*);
 291static CYTHON_INLINE PyObject* __Pyx_PyNumber_Int(PyObject* x);
 292
 293static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject*);
 294static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t);
 295static CYTHON_INLINE size_t __Pyx_PyInt_AsSize_t(PyObject*);
 296
 297#define __pyx_PyFloat_AsDouble(x) (PyFloat_CheckExact(x) ? PyFloat_AS_DOUBLE(x) : PyFloat_AsDouble(x))
 298
 299
 300#ifdef __GNUC__
 301  /* Test for GCC > 2.95 */
 302  #if __GNUC__ > 2 || (__GNUC__ == 2 && (__GNUC_MINOR__ > 95))
 303    #define likely(x)   __builtin_expect(!!(x), 1)
 304    #define unlikely(x) __builtin_expect(!!(x), 0)
 305  #else /* __GNUC__ > 2 ... */
 306    #define likely(x)   (x)
 307    #define unlikely(x) (x)
 308  #endif /* __GNUC__ > 2 ... */
 309#else /* __GNUC__ */
 310  #define likely(x)   (x)
 311  #define unlikely(x) (x)
 312#endif /* __GNUC__ */
 313    
 314static PyObject *__pyx_m;
 315static PyObject *__pyx_b;
 316static PyObject *__pyx_empty_tuple;
 317static PyObject *__pyx_empty_bytes;
 318static int __pyx_lineno;
 319static int __pyx_clineno = 0;
 320static const char * __pyx_cfilenm= __FILE__;
 321static const char *__pyx_filename;
 322
 323
 324static const char *__pyx_f[] = {
 325  "error.pyx",
 326  "bool.pxd",
 327  "complex.pxd",
 328};
 329
 330/*--- Type declarations ---*/
 331
 332#ifndef CYTHON_REFNANNY
 333  #define CYTHON_REFNANNY 0
 334#endif
 335
 336#if CYTHON_REFNANNY
 337  typedef struct {
 338    void (*INCREF)(void*, PyObject*, int);
 339    void (*DECREF)(void*, PyObject*, int);
 340    void (*GOTREF)(void*, PyObject*, int);
 341    void (*GIVEREF)(void*, PyObject*, int);
 342    void* (*SetupContext)(const char*, int, const char*);
 343    void (*FinishContext)(void**);
 344  } __Pyx_RefNannyAPIStruct;
 345  static __Pyx_RefNannyAPIStruct *__Pyx_RefNanny = NULL;
 346  static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(const char *modname); /*proto*/
 347  #define __Pyx_RefNannyDeclarations void *__pyx_refnanny = NULL;
 348  #define __Pyx_RefNannySetupContext(name)           __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__)
 349  #define __Pyx_RefNannyFinishContext()           __Pyx_RefNanny->FinishContext(&__pyx_refnanny)
 350  #define __Pyx_INCREF(r)  __Pyx_RefNanny->INCREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
 351  #define __Pyx_DECREF(r)  __Pyx_RefNanny->DECREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
 352  #define __Pyx_GOTREF(r)  __Pyx_RefNanny->GOTREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
 353  #define __Pyx_GIVEREF(r) __Pyx_RefNanny->GIVEREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
 354  #define __Pyx_XINCREF(r)  do { if((r) != NULL) {__Pyx_INCREF(r); }} while(0)
 355  #define __Pyx_XDECREF(r)  do { if((r) != NULL) {__Pyx_DECREF(r); }} while(0)
 356  #define __Pyx_XGOTREF(r)  do { if((r) != NULL) {__Pyx_GOTREF(r); }} while(0)
 357  #define __Pyx_XGIVEREF(r) do { if((r) != NULL) {__Pyx_GIVEREF(r);}} while(0)
 358#else
 359  #define __Pyx_RefNannyDeclarations
 360  #define __Pyx_RefNannySetupContext(name)
 361  #define __Pyx_RefNannyFinishContext()
 362  #define __Pyx_INCREF(r) Py_INCREF(r)
 363  #define __Pyx_DECREF(r) Py_DECREF(r)
 364  #define __Pyx_GOTREF(r)
 365  #define __Pyx_GIVEREF(r)
 366  #define __Pyx_XINCREF(r) Py_XINCREF(r)
 367  #define __Pyx_XDECREF(r) Py_XDECREF(r)
 368  #define __Pyx_XGOTREF(r)
 369  #define __Pyx_XGIVEREF(r)
 370#endif /* CYTHON_REFNANNY */
 371
 372static PyObject *__Pyx_GetName(PyObject *dict, PyObject *name); /*proto*/
 373
 374#include <string.h>
 375
 376static void __Pyx_RaiseDoubleKeywordsError(
 377    const char* func_name, PyObject* kw_name); /*proto*/
 378
 379static int __Pyx_ParseOptionalKeywords(PyObject *kwds, PyObject **argnames[],     PyObject *kwds2, PyObject *values[], Py_ssize_t num_pos_args,     const char* function_name); /*proto*/
 380
 381static void __Pyx_RaiseArgtupleInvalid(const char* func_name, int exact,
 382    Py_ssize_t num_min, Py_ssize_t num_max, Py_ssize_t num_found); /*proto*/
 383
 384static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list, long level); /*proto*/
 385
 386static PyObject *__Pyx_FindPy2Metaclass(PyObject *bases); /*proto*/
 387
 388static PyObject *__Pyx_CreateClass(PyObject *bases, PyObject *dict, PyObject *name,
 389                                   PyObject *modname); /*proto*/
 390
 391#define __pyx_binding_PyCFunctionType_USED 1
 392
 393typedef struct {
 394    PyCFunctionObject func;
 395} __pyx_binding_PyCFunctionType_object;
 396
 397static PyTypeObject __pyx_binding_PyCFunctionType_type;
 398static PyTypeObject *__pyx_binding_PyCFunctionType = NULL;
 399
 400static PyObject *__pyx_binding_PyCFunctionType_NewEx(PyMethodDef *ml, PyObject *self, PyObject *module); /* proto */
 401#define __pyx_binding_PyCFunctionType_New(ml, self) __pyx_binding_PyCFunctionType_NewEx(ml, self, NULL)
 402
 403static int __pyx_binding_PyCFunctionType_init(void); /* proto */
 404
 405#ifndef __PYX_FORCE_INIT_THREADS
 406  #if PY_VERSION_HEX < 0x02040200
 407    #define __PYX_FORCE_INIT_THREADS 1
 408  #else
 409    #define __PYX_FORCE_INIT_THREADS 0
 410  #endif
 411#endif
 412
 413static CYTHON_INLINE unsigned char __Pyx_PyInt_AsUnsignedChar(PyObject *);
 414
 415static CYTHON_INLINE unsigned short __Pyx_PyInt_AsUnsignedShort(PyObject *);
 416
 417static CYTHON_INLINE unsigned int __Pyx_PyInt_AsUnsignedInt(PyObject *);
 418
 419static CYTHON_INLINE char __Pyx_PyInt_AsChar(PyObject *);
 420
 421static CYTHON_INLINE short __Pyx_PyInt_AsShort(PyObject *);
 422
 423static CYTHON_INLINE int __Pyx_PyInt_AsInt(PyObject *);
 424
 425static CYTHON_INLINE signed char __Pyx_PyInt_AsSignedChar(PyObject *);
 426
 427static CYTHON_INLINE signed short __Pyx_PyInt_AsSignedShort(PyObject *);
 428
 429static CYTHON_INLINE signed int __Pyx_PyInt_AsSignedInt(PyObject *);
 430
 431static CYTHON_INLINE int __Pyx_PyInt_AsLongDouble(PyObject *);
 432
 433static CYTHON_INLINE unsigned long __Pyx_PyInt_AsUnsignedLong(PyObject *);
 434
 435static CYTHON_INLINE unsigned PY_LONG_LONG __Pyx_PyInt_AsUnsignedLongLong(PyObject *);
 436
 437static CYTHON_INLINE long __Pyx_PyInt_AsLong(PyObject *);
 438
 439static CYTHON_INLINE PY_LONG_LONG __Pyx_PyInt_AsLongLong(PyObject *);
 440
 441static CYTHON_INLINE signed long __Pyx_PyInt_AsSignedLong(PyObject *);
 442
 443static CYTHON_INLINE signed PY_LONG_LONG __Pyx_PyInt_AsSignedLongLong(PyObject *);
 444
 445static int __Pyx_check_binary_version(void);
 446
 447static PyTypeObject *__Pyx_ImportType(const char *module_name, const char *class_name, size_t size, int strict);  /*proto*/
 448
 449static PyObject *__Pyx_ImportModule(const char *name); /*proto*/
 450
 451static void __Pyx_AddTraceback(const char *funcname, int __pyx_clineno,
 452                               int __pyx_lineno, const char *__pyx_filename); /*proto*/
 453
 454static int __Pyx_InitStrings(__Pyx_StringTabEntry *t); /*proto*/
 455
 456/* Module declarations from 'cpython.version' */
 457
 458/* Module declarations from 'cpython.ref' */
 459
 460/* Module declarations from 'cpython.exc' */
 461
 462/* Module declarations from 'cpython.module' */
 463
 464/* Module declarations from 'cpython.mem' */
 465
 466/* Module declarations from 'cpython.tuple' */
 467
 468/* Module declarations from 'cpython.list' */
 469
 470/* Module declarations from 'libc.stdio' */
 471
 472/* Module declarations from 'cpython.object' */
 473
 474/* Module declarations from 'cpython.sequence' */
 475
 476/* Module declarations from 'cpython.mapping' */
 477
 478/* Module declarations from 'cpython.iterator' */
 479
 480/* Module declarations from 'cpython.type' */
 481
 482/* Module declarations from 'cpython.number' */
 483
 484/* Module declarations from 'cpython.int' */
 485
 486/* Module declarations from '__builtin__' */
 487
 488/* Module declarations from 'cpython.bool' */
 489static PyTypeObject *__pyx_ptype_7cpython_4bool_bool = 0;
 490
 491/* Module declarations from 'cpython.long' */
 492
 493/* Module declarations from 'cpython.float' */
 494
 495/* Module declarations from '__builtin__' */
 496
 497/* Module declarations from 'cpython.complex' */
 498static PyTypeObject *__pyx_ptype_7cpython_7complex_complex = 0;
 499
 500/* Module declarations from 'cpython.string' */
 501
 502/* Module declarations from 'cpython.unicode' */
 503
 504/* Module declarations from 'cpython.dict' */
 505
 506/* Module declarations from 'cpython.instance' */
 507
 508/* Module declarations from 'cpython.function' */
 509
 510/* Module declarations from 'cpython.method' */
 511
 512/* Module declarations from 'cpython.weakref' */
 513
 514/* Module declarations from 'cpython.getargs' */
 515
 516/* Module declarations from 'cpython.pythread' */
 517
 518/* Module declarations from 'cpython.pystate' */
 519
 520/* Module declarations from 'cpython.cobject' */
 521
 522/* Module declarations from 'cpython.oldbuffer' */
 523
 524/* Module declarations from 'cpython.set' */
 525
 526/* Module declarations from 'cpython.buffer' */
 527
 528/* Module declarations from 'cpython.bytes' */
 529
 530/* Module declarations from 'cpython.pycapsule' */
 531
 532/* Module declarations from 'cpython' */
 533
 534/* Module declarations from 'zmq.core.libzmq' */
 535
 536/* Module declarations from 'zmq.core.error' */
 537#define __Pyx_MODULE_NAME "zmq.core.error"
 538int __pyx_module_is_main_zmq__core__error = 0;
 539
 540/* Implementation of 'zmq.core.error' */
 541static PyObject *__pyx_builtin_Exception;
 542static char __pyx_k_1[] = "ZMQError('%s')";
 543static char __pyx_k_2[] = "0MQ Error classes and functions.";
 544static char __pyx_k_3[] = "zmq.utils.strtypes";
 545static char __pyx_k_4[] = "zmq.core.error";
 546static char __pyx_k_5[] = "Base exception class for 0MQ errors in Python.";
 547static char __pyx_k_6[] = "Wrap an errno style error.\n\n    Parameters\n    ----------\n    error : int\n        The ZMQ errno or None.  If None, then ``zmq_errno()`` is called and\n        used.\n    ";
 548static char __pyx_k_7[] = "An error for ``Socket.bind_to_random_port()``.\n    \n    See Also\n    --------\n    .Socket.bind_to_random_port\n    ";
 549static char __pyx_k_8[] = "Raised when timeout is reached while waiting for 0MQ to finish with a Message\n    \n    See Also\n    --------\n    .MessageTracker.wait : object for tracking when ZeroMQ is done\n    ";
 550static char __pyx_k__self[] = "self";
 551static char __pyx_k__bytes[] = "bytes";
 552static char __pyx_k__errno[] = "errno";
 553static char __pyx_k__error[] = "error";
 554static char __pyx_k__NotDone[] = "NotDone";
 555static char __pyx_k____all__[] = "__all__";
 556static char __pyx_k____str__[] = "__str__";
 557static char __pyx_k__ZMQError[] = "ZMQError";
 558static char __pyx_k____init__[] = "__init__";
 559static char __pyx_k____main__[] = "__main__";
 560static char __pyx_k____repr__[] = "__repr__";
 561static char __pyx_k____test__[] = "__test__";
 562static char __pyx_k__strerror[] = "strerror";
 563static char __pyx_k__Exception[] = "Exception";
 564static char __pyx_k__ZMQBaseError[] = "ZMQBaseError";
 565static char __pyx_k__ZMQBindError[] = "ZMQBindError";
 566static PyObject *__pyx_kp_s_1;
 567static PyObject *__pyx_n_s_3;
 568static PyObject *__pyx_n_s_4;
 569static PyObject *__pyx_kp_s_5;
 570static PyObject *__pyx_kp_s_6;
 571static PyObject *__pyx_kp_s_7;
 572static PyObject *__pyx_kp_s_8;
 573static PyObject *__pyx_n_s__Exception;
 574static PyObject *__pyx_n_s__NotDone;
 575static PyObject *__pyx_n_s__ZMQBaseError;
 576static PyObject *__pyx_n_s__ZMQBindError;
 577static PyObject *__pyx_n_s__ZMQError;
 578static PyObject *__pyx_n_s____all__;
 579static PyObject *__pyx_n_s____init__;
 580static PyObject *__pyx_n_s____main__;
 581static PyObject *__pyx_n_s____repr__;
 582static PyObject *__pyx_n_s____str__;
 583static PyObject *__pyx_n_s____test__;
 584static PyObject *__pyx_n_s__bytes;
 585static PyObject *__pyx_n_s__errno;
 586static PyObject *__pyx_n_s__error;
 587static PyObject *__pyx_n_s__self;
 588static PyObject *__pyx_n_s__strerror;
 589
 590/* "zmq/core/error.pyx":36
 591 * from zmq.utils.strtypes import bytes
 592 * 
 593 * def strerror(int errnum):             # <<<<<<<<<<<<<<
 594 *     """strerror(errnum)
 595 * 
 596 */
 597
 598static PyObject *__pyx_pf_3zmq_4core_5error_strerror(PyObject *__pyx_self, PyObject *__pyx_arg_errnum); /*proto*/
 599static char __pyx_doc_3zmq_4core_5error_strerror[] = "strerror(errnum)\n\n    Return the error string given the error number.\n    ";
 600static PyMethodDef __pyx_mdef_3zmq_4core_5error_strerror = {__Pyx_NAMESTR("strerror"), (PyCFunction)__pyx_pf_3zmq_4core_5error_strerror, METH_O, __Pyx_DOCSTR(__pyx_doc_3zmq_4core_5error_strerror)};
 601static PyObject *__pyx_pf_3zmq_4core_5error_strerror(PyObject *__pyx_self, PyObject *__pyx_arg_errnum) {
 602  int __pyx_v_errnum;
 603  const char* __pyx_v_str_e;
 604  PyObject *__pyx_r = NULL;
 605  __Pyx_RefNannyDeclarations
 606  PyObject *__pyx_t_1 = NULL;
 607  int __pyx_t_2;
 608  int __pyx_lineno = 0;
 609  const char *__pyx_filename = NULL;
 610  int __pyx_clineno = 0;
 611  __Pyx_RefNannySetupContext("strerror");
 612  __pyx_self = __pyx_self;
 613  assert(__pyx_arg_errnum); {
 614    __pyx_v_errnum = __Pyx_PyInt_AsInt(__pyx_arg_errnum); if (unlikely((__pyx_v_errnum == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 36; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 615  }
 616  goto __pyx_L4_argument_unpacking_done;
 617  __pyx_L3_error:;
 618  __Pyx_AddTraceback("zmq.core.error.strerror", __pyx_clineno, __pyx_lineno, __pyx_filename);
 619  __Pyx_RefNannyFinishContext();
 620  return NULL;
 621  __pyx_L4_argument_unpacking_done:;
 622
 623  /* "zmq/core/error.pyx":43
 624 *     cdef const_char_ptr str_e
 625 *     # char * will be a bytes object:
 626 *     with nogil:             # <<<<<<<<<<<<<<
 627 *         str_e = zmq_strerror(errnum)
 628 *     if str is bytes:
 629 */
 630  {
 631      #ifdef WITH_THREAD
 632      PyThreadState *_save = NULL;
 633      #endif
 634      Py_UNBLOCK_THREADS
 635      /*try:*/ {
 636
 637        /* "zmq/core/error.pyx":44
 638 *     # char * will be a bytes object:
 639 *     with nogil:
 640 *         str_e = zmq_strerror(errnum)             # <<<<<<<<<<<<<<
 641 *     if str is bytes:
 642 *         # Python 2: str is bytes, so we already have the right type
 643 */
 644        __pyx_v_str_e = zmq_strerror(__pyx_v_errnum);
 645      }
 646
 647      /* "zmq/core/error.pyx":43
 648 *     cdef const_char_ptr str_e
 649 *     # char * will be a bytes object:
 650 *     with nogil:             # <<<<<<<<<<<<<<
 651 *         str_e = zmq_strerror(errnum)
 652 *     if str is bytes:
 653 */
 654      /*finally:*/ {
 655        Py_BLOCK_THREADS
 656      }
 657  }
 658
 659  /* "zmq/core/error.pyx":45
 660 *     with nogil:
 661 *         str_e = zmq_strerror(errnum)
 662 *     if str is bytes:             # <<<<<<<<<<<<<<
 663 *         # Python 2: str is bytes, so we already have the right type
 664 *         return str_e
 665 */
 666  __pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__bytes); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 45; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 667  __Pyx_GOTREF(__pyx_t_1);
 668  __pyx_t_2 = (((PyObject*)(&PyString_Type)) == ((PyObject*)__pyx_t_1));
 669  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 670  if (__pyx_t_2) {
 671
 672    /* "zmq/core/error.pyx":47
 673 *     if str is bytes:
 674 *         # Python 2: str is bytes, so we already have the right type
 675 *         return str_e             # <<<<<<<<<<<<<<
 676 *     else:
 677 *         # Python 3: decode bytes to unicode str
 678 */
 679    __Pyx_XDECREF(__pyx_r);
 680    __pyx_t_1 = PyBytes_FromString(__pyx_v_str_e); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 47; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 681    __Pyx_GOTREF(((PyObject *)__pyx_t_1));
 682    __pyx_r = ((PyObject *)__pyx_t_1);
 683    __pyx_t_1 = 0;
 684    goto __pyx_L0;
 685    goto __pyx_L8;
 686  }
 687  /*else*/ {
 688
 689    /* "zmq/core/error.pyx":50
 690 *     else:
 691 *         # Python 3: decode bytes to unicode str
 692 *         return str_e.decode()             # <<<<<<<<<<<<<<
 693 * 
 694 * 
 695 */
 696    __Pyx_XDECREF(__pyx_r);
 697    __pyx_t_1 = ((PyObject *)PyUnicode_Decode(__pyx_v_str_e, strlen(__pyx_v_str_e), NULL, NULL)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 50; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 698    __Pyx_GOTREF(((PyObject *)__pyx_t_1));
 699    __pyx_r = ((PyObject *)__pyx_t_1);
 700    __pyx_t_1 = 0;
 701    goto __pyx_L0;
 702  }
 703  __pyx_L8:;
 704
 705  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
 706  goto __pyx_L0;
 707  __pyx_L1_error:;
 708  __Pyx_XDECREF(__pyx_t_1);
 709  __Pyx_AddTraceback("zmq.core.error.strerror", __pyx_clineno, __pyx_lineno, __pyx_filename);
 710  __pyx_r = NULL;
 711  __pyx_L0:;
 712  __Pyx_XGIVEREF(__pyx_r);
 713  __Pyx_RefNannyFinishContext();
 714  return __pyx_r;
 715}
 716
 717/* "zmq/core/error.pyx":68
 718 *     """
 719 * 
 720 *     def __init__(self, error=None):             # <<<<<<<<<<<<<<
 721 *         """Wrap an errno style error.
 722 * 
 723 */
 724
 725static PyObject *__pyx_pf_3zmq_4core_5error_8ZMQError___init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
 726static char __pyx_doc_3zmq_4core_5error_8ZMQError___init__[] = "Wrap an errno style error.\n\n        Parameters\n        ----------\n        error : int\n            The ZMQ errno or None.  If None, then ``zmq_errno()`` is called and\n            used.\n        ";
 727static PyMethodDef __pyx_mdef_3zmq_4core_5error_8ZMQError___init__ = {__Pyx_NAMESTR("__init__"), (PyCFunction)__pyx_pf_3zmq_4core_5error_8ZMQError___init__, METH_VARARGS|METH_KEYWORDS, __Pyx_DOCSTR(__pyx_doc_3zmq_4core_5error_8ZMQError___init__)};
 728static PyObject *__pyx_pf_3zmq_4core_5error_8ZMQError___init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
 729  PyObject *__pyx_v_self = 0;
 730  PyObject *__pyx_v_error = 0;
 731  int __pyx_v_errno;
 732  PyObject *__pyx_r = NULL;
 733  __Pyx_RefNannyDeclarations
 734  int __pyx_t_1;
 735  PyObject *__pyx_t_2 = NULL;
 736  PyObject *__pyx_t_3 = NULL;
 737  PyObject *__pyx_t_4 = NULL;
 738  int __pyx_t_5;
 739  int __pyx_lineno = 0;
 740  const char *__pyx_filename = NULL;
 741  int __pyx_clineno = 0;
 742  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__self,&__pyx_n_s__error,0};
 743  __Pyx_RefNannySetupContext("__init__");
 744  __pyx_self = __pyx_self;
 745  {
 746    PyObject* values[2] = {0,0};
 747    values[1] = ((PyObject *)Py_None);
 748    if (unlikely(__pyx_kwds)) {
 749      Py_ssize_t kw_args;
 750      switch (PyTuple_GET_SIZE(__pyx_args)) {
 751        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
 752        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
 753        case  0: break;
 754        default: goto __pyx_L5_argtuple_error;
 755      }
 756      kw_args = PyDict_Size(__pyx_kwds);
 757      switch (PyTuple_GET_SIZE(__pyx_args)) {
 758        case  0:
 759        values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__self);
 760        if (likely(values[0])) kw_args--;
 761        else goto __pyx_L5_argtuple_error;
 762        case  1:
 763        if (kw_args > 0) {
 764          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s__error);
 765          if (value) { values[1] = value; kw_args--; }
 766        }
 767      }
 768      if (unlikely(kw_args > 0)) {
 769        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "__init__") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 68; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 770      }
 771    } else {
 772      switch (PyTuple_GET_SIZE(__pyx_args)) {
 773        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
 774        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
 775        break;
 776        default: goto __pyx_L5_argtuple_error;
 777      }
 778    }
 779    __pyx_v_self = values[0];
 780    __pyx_v_error = values[1];
 781  }
 782  goto __pyx_L4_argument_unpacking_done;
 783  __pyx_L5_argtuple_error:;
 784  __Pyx_RaiseArgtupleInvalid("__init__", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 68; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 785  __pyx_L3_error:;
 786  __Pyx_AddTraceback("zmq.core.error.ZMQError.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
 787  __Pyx_RefNannyFinishContext();
 788  return NULL;
 789  __pyx_L4_argument_unpacking_done:;
 790  __Pyx_INCREF(__pyx_v_error);
 791
 792  /* "zmq/core/error.pyx":78
 793 *         """
 794 *         cdef int errno
 795 *         if error is None:             # <<<<<<<<<<<<<<
 796 *             with nogil:
 797 *                 errno = zmq_errno()
 798 */
 799  __pyx_t_1 = (__pyx_v_error == Py_None);
 800  if (__pyx_t_1) {
 801
 802    /* "zmq/core/error.pyx":79
 803 *         cdef int errno
 804 *         if error is None:
 805 *             with nogil:             # <<<<<<<<<<<<<<
 806 *                 errno = zmq_errno()
 807 *             error = errno
 808 */
 809    {
 810        #ifdef WITH_THREAD
 811        PyThreadState *_save = NULL;
 812        #endif
 813        Py_UNBLOCK_THREADS
 814        /*try:*/ {
 815
 816          /* "zmq/core/error.pyx":80
 817 *         if error is None:
 818 *             with nogil:
 819 *                 errno = zmq_errno()             # <<<<<<<<<<<<<<
 820 *             error = errno
 821 *         if type(error) == int:
 822 */
 823          __pyx_v_errno = zmq_errno();
 824        }
 825
 826        /* "zmq/core/error.pyx":79
 827 *         cdef int errno
 828 *         if error is None:
 829 *             with nogil:             # <<<<<<<<<<<<<<
 830 *                 errno = zmq_errno()
 831 *             error = errno
 832 */
 833        /*finally:*/ {
 834          Py_BLOCK_THREADS
 835        }
 836    }
 837
 838    /* "zmq/core/error.pyx":81
 839 *             with nogil:
 840 *                 errno = zmq_errno()
 841 *             error = errno             # <<<<<<<<<<<<<<
 842 *         if type(error) == int:
 843 *             self.strerror = strerror(error)
 844 */
 845    __pyx_t_2 = PyInt_FromLong(__pyx_v_errno); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 81; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 846    __Pyx_GOTREF(__pyx_t_2);
 847    __Pyx_DECREF(__pyx_v_error);
 848    __pyx_v_error = __pyx_t_2;
 849    __pyx_t_2 = 0;
 850    goto __pyx_L6;
 851  }
 852  __pyx_L6:;
 853
 854  /* "zmq/core/error.pyx":82
 855 *                 errno = zmq_errno()
 856 *             error = errno
 857 *         if type(error) == int:             # <<<<<<<<<<<<<<
 858 *             self.strerror = strerror(error)
 859 *             self.errno = error
 860 */
 861  __pyx_t_2 = PyObject_RichCompare(((PyObject *)Py_TYPE(__pyx_v_error)), ((PyObject *)((PyObject*)(&PyInt_Type))), Py_EQ); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 82; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 862  __Pyx_GOTREF(__pyx_t_2);
 863  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 82; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 864  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 865  if (__pyx_t_1) {
 866
 867    /* "zmq/core/error.pyx":83
 868 *             error = errno
 869 *         if type(error) == int:
 870 *             self.strerror = strerror(error)             # <<<<<<<<<<<<<<
 871 *             self.errno = error
 872 *         else:
 873 */
 874    __pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__strerror); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 83; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 875    __Pyx_GOTREF(__pyx_t_2);
 876    __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 83; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 877    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
 878    __Pyx_INCREF(__pyx_v_error);
 879    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_error);
 880    __Pyx_GIVEREF(__pyx_v_error);
 881    __pyx_t_4 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 83; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 882    __Pyx_GOTREF(__pyx_t_4);
 883    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 884    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
 885    if (PyObject_SetAttr(__pyx_v_self, __pyx_n_s__strerror, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 83; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 886    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
 887
 888    /* "zmq/core/error.pyx":84
 889 *         if type(error) == int:
 890 *             self.strerror = strerror(error)
 891 *             self.errno = error             # <<<<<<<<<<<<<<
 892 *         else:
 893 *             self.strerror = str(error)
 894 */
 895    if (PyObject_SetAttr(__pyx_v_self, __pyx_n_s__errno, __pyx_v_error) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 84; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 896    goto __pyx_L10;
 897  }
 898  /*else*/ {
 899
 900    /* "zmq/core/error.pyx":86
 901 *             self.errno = error
 902 *         else:
 903 *             self.strerror = str(error)             # <<<<<<<<<<<<<<
 904 *             self.errno = None
 905 *         # flush signals, because there could be a SIGINT
 906 */
 907    __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 86; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 908    __Pyx_GOTREF(((PyObject *)__pyx_t_4));
 909    __Pyx_INCREF(__pyx_v_error);
 910    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_error);
 911    __Pyx_GIVEREF(__pyx_v_error);
 912    __pyx_t_3 = PyObject_Call(((PyObject *)((PyObject*)(&PyString_Type))), ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 86; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 913    __Pyx_GOTREF(__pyx_t_3);
 914    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
 915    if (PyObject_SetAttr(__pyx_v_self, __pyx_n_s__strerror, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 86; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 916    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
 917
 918    /* "zmq/core/error.pyx":87
 919 *         else:
 920 *             self.strerror = str(error)
 921 *             self.errno = None             # <<<<<<<<<<<<<<
 922 *         # flush signals, because there could be a SIGINT
 923 *         # waiting to pounce, resulting in uncaught exceptions.
 924 */
 925    if (PyObject_SetAttr(__pyx_v_self, __pyx_n_s__errno, Py_None) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 87; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 926  }
 927  __pyx_L10:;
 928
 929  /* "zmq/core/error.pyx":92
 930 *         # Doing this here means getting SIGINT during a blocking
 931 *         # libzmq call will raise a *catchable* KeyboardInterrupt
 932 *         PyErr_CheckSignals()             # <<<<<<<<<<<<<<
 933 * 
 934 *     def __str__(self):
 935 */
 936  __pyx_t_5 = PyErr_CheckSignals(); if (unlikely(__pyx_t_5 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 92; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 937
 938  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
 939  goto __pyx_L0;
 940  __pyx_L1_error:;
 941  __Pyx_XDECREF(__pyx_t_2);
 942  __Pyx_XDECREF(__pyx_t_3);
 943  __Pyx_XDECREF(__pyx_t_4);
 944  __Pyx_AddTraceback("zmq.core.error.ZMQError.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
 945  __pyx_r = NULL;
 946  __pyx_L0:;
 947  __Pyx_XDECREF(__pyx_v_error);
 948  __Pyx_XGIVEREF(__pyx_r);
 949  __Pyx_RefNannyFinishContext();
 950  return __pyx_r;
 951}
 952
 953/* "zmq/core/error.pyx":94
 954 *         PyErr_CheckSignals()
 955 * 
 956 *     def __str__(self):             # <<<<<<<<<<<<<<
 957 *         return self.strerror
 958 * 
 959 */
 960
 961static PyObject *__pyx_pf_3zmq_4core_5error_8ZMQError_1__str__(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/
 962static PyMethodDef __pyx_mdef_3zmq_4core_5error_8ZMQError_1__str__ = {__Pyx_NAMESTR("__str__"), (PyCFunction)__pyx_pf_3zmq_4core_5error_8ZMQError_1__str__, METH_O, __Pyx_DOCSTR(0)};
 963static PyObject *__pyx_pf_3zmq_4core_5error_8ZMQError_1__str__(PyObject *__pyx_self, PyObject *__pyx_v_self) {
 964  PyObject *__pyx_r = NULL;
 965  __Pyx_RefNannyDeclarations
 966  PyObject *__pyx_t_1 = NULL;
 967  int __pyx_lineno = 0;
 968  const char *__pyx_filename = NULL;
 969  int __pyx_clineno = 0;
 970  __Pyx_RefNannySetupContext("__str__");
 971  __pyx_self = __pyx_self;
 972
 973  /* "zmq/core/error.pyx":95
 974 * 
 975 *     def __str__(self):
 976 *         return self.strerror             # <<<<<<<<<<<<<<
 977 * 
 978 *     def __repr__(self):
 979 */
 980  __Pyx_XDECREF(__pyx_r);
 981  __pyx_t_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n_s__strerror); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 95; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 982  __Pyx_GOTREF(__pyx_t_1);
 983  __pyx_r = __pyx_t_1;
 984  __pyx_t_1 = 0;
 985  goto __pyx_L0;
 986
 987  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
 988  goto __pyx_L0;
 989  __pyx_L1_error:;
 990  __Pyx_XDECREF(__pyx_t_1);
 991  __Pyx_AddTraceback("zmq.core.error.ZMQError.__str__", __pyx_clineno, __pyx_lineno, __pyx_filename);
 992  __pyx_r = NULL;
 993  __pyx_L0:;
 994  __Pyx_XGIVEREF(__pyx_r);
 995  __Pyx_RefNannyFinishContext();
 996  return __pyx_r;
 997}
 998
 999/* "zmq/core/error.pyx":97
1000 *         return self.strerror
1001 * 
1002 *     def __repr__(self):             # <<<<<<<<<<<<<<
1003 *         return "ZMQError('%s')"%self.strerror
1004 * 
1005 */
1006
1007static PyObject *__pyx_pf_3zmq_4core_5error_8ZMQError_2__repr__(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/
1008static PyMethodDef __pyx_mdef_3zmq_4core_5error_8ZMQError_2__repr__ = {__Pyx_NAMESTR("__repr__"), (PyCFunction)__pyx_pf_3zmq_4core_5error_8ZMQError_2__repr__, METH_O, __Pyx_DOCSTR(0)};
1009static PyObject *__pyx_pf_3zmq_4core_5error_8ZMQError_2__repr__(PyObject *__pyx_self, PyObject *__pyx_v_self) {
1010  PyObject *__pyx_r = NULL;
1011  __Pyx_RefNannyDeclarations
1012  PyObject *__pyx_t_1 = NULL;
1013  PyObject *__pyx_t_2 = NULL;
1014  int __pyx_lineno = 0;
1015  const char *__pyx_filename = NULL;
1016  int __pyx_clineno = 0;
1017  __Pyx_RefNannySetupContext("__repr__");
1018  __pyx_self = __pyx_self;
1019
1020  /* "zmq/core/error.pyx":98
1021 * 
1022 *     def __repr__(self):
1023 *         return "ZMQError('%s')"%self.strerror             # <<<<<<<<<<<<<<
1024 * 
1025 * 
1026 */
1027  __Pyx_XDECREF(__pyx_r);
1028  __pyx_t_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n_s__strerror); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 98; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1029  __Pyx_GOTREF(__pyx_t_1);
1030  __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_1), __pyx_t_1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 98; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1031  __Pyx_GOTREF(((PyObject *)__pyx_t_2));
1032  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
1033  __pyx_r = ((PyObject *)__pyx_t_2);
1034  __pyx_t_2 = 0;
1035  goto __pyx_L0;
1036
1037  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
1038  goto __pyx_L0;
1039  __pyx_L1_error:;
1040  __Pyx_XDECREF(__pyx_t_1);
1041  __Pyx_XDECREF(__pyx_t_2);
1042  __Pyx_AddTraceback("zmq.core.error.ZMQError.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
1043  __pyx_r = NULL;
1044  __pyx_L0:;
1045  __Pyx_XGIVEREF(__pyx_r);
1046  __Pyx_RefNannyFinishContext();
1047  return __pyx_r;
1048}
1049
1050static PyMethodDef __pyx_methods[] = {
1051  {0, 0, 0, 0}
1052};
1053
1054#if PY_MAJOR_VERSION >= 3
1055static struct PyModuleDef __pyx_moduledef = {
1056    PyModuleDef_HEAD_INIT,
1057    __Pyx_NAMESTR("error"),
1058    __Pyx_DOCSTR(__pyx_k_2), /* m_doc */
1059    -1, /* m_size */
1060    __pyx_methods /* m_methods */,
1061    NULL, /* m_reload */
1062    NULL, /* m_traverse */
1063    NULL, /* m_clear */
1064    NULL /* m_free */
1065};
1066#endif
1067
1068static __Pyx_StringTabEntry __pyx_string_tab[] = {
1069  {&__pyx_kp_s_1, __pyx_k_1, sizeof(__pyx_k_1), 0, 0, 1, 0},
1070  {&__pyx_n_s_3, __pyx_k_3, sizeof(__pyx_k_3), 0, 0, 1, 1},
1071  {&__pyx_n_s_4, __pyx_k_4, sizeof(__pyx_k_4), 0, 0, 1, 1},
1072  {&__pyx_kp_s_5, __pyx_k_5, sizeof(__pyx_k_5), 0, 0, 1, 0},
1073  {&__pyx_kp_s_6, __pyx_k_6, sizeof(__pyx_k_6), 0, 0, 1, 0},
1074  {&__pyx_kp_s_7, __pyx_k_7, sizeof(__pyx_k_7), 0, 0, 1, 0},
1075  {&__pyx_kp_s_8, __pyx_k_8, sizeof(__pyx_k_8), 0, 0, 1, 0},
1076  {&__pyx_n_s__Exception, __pyx_k__Exception, sizeof(__pyx_k__Exception), 0, 0, 1, 1},
1077  {&__pyx_n_s__NotDone, __pyx_k__NotDone, sizeof(__pyx_k__NotDone), 0, 0, 1, 1},
1078  {&__pyx_n_s__ZMQBaseError, __pyx_k__ZMQBaseError, sizeof(__pyx_k__ZMQBaseError), 0, 0, 1, 1},
1079  {&__pyx_n_s__ZMQBindError, __pyx_k__ZMQBindError, sizeof(__pyx_k__ZMQBindError), 0, 0, 1, 1},
1080  {&__pyx_n_s__ZMQError, __pyx_k__ZMQError, sizeof(__pyx_k__ZMQError), 0, 0, 1, 1},
1081  {&__pyx_n_s____all__, __pyx_k____all__, sizeof(__pyx_k____all__), 0, 0, 1, 1},
1082  {&__pyx_n_s____init__, __pyx_k____init__, sizeof(__pyx_k____init__), 0, 0, 1, 1},
1083  {&__pyx_n_s____main__, __pyx_k____main__, sizeof(__pyx_k____main__), 0, 0, 1, 1},
1084  {&__pyx_n_s____repr__, __pyx_k____repr__, sizeof(__pyx_k____repr__), 0, 0, 1, 1},
1085  {&__pyx_n_s____str__, __pyx_k____str__, sizeof(__pyx_k____str__), 0, 0, 1, 1},
1086  {&__pyx_n_s____test__, __pyx_k____test__, sizeof(__pyx_k____test__), 0, 0, 1, 1},
1087  {&__pyx_n_s__bytes, __pyx_k__bytes, sizeof(__pyx_k__bytes), 0, 0, 1, 1},
1088  {&__pyx_n_s__errno, __pyx_k__errno, sizeof(__pyx_k__errno), 0, 0, 1, 1},
1089  {&__pyx_n_s__error, __pyx_k__error, sizeof(__pyx_k__error), 0, 0, 1, 1},
1090  {&__pyx_n_s__self, __pyx_k__self, sizeof(__pyx_k__self), 0, 0, 1, 1},
1091  {&__pyx_n_s__strerror, __pyx_k__strerror, sizeof(__pyx_k__strerror), 0, 0, 1, 1},
1092  {0, 0, 0, 0, 0, 0, 0}
1093};
1094static int __Pyx_InitCachedBuiltins(void) {
1095  __pyx_builtin_Exception = __Pyx_GetName(__pyx_b, __pyx_n_s__Exception); if (!__pyx_builtin_Exception) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 53; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1096  return 0;
1097  __pyx_L1_error:;
1098  return -1;
1099}
1100
1101static int __Pyx_InitCachedConstants(void) {
1102  __Pyx_RefNannyDeclarations
1103  __Pyx_RefNannySetupContext("__Pyx_InitCachedConstants");
1104  __Pyx_RefNannyFinishContext();
1105  return 0;
1106}
1107
1108static int __Pyx_InitGlobals(void) {
1109  if (__Pyx_InitStrings(__pyx_string_tab) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
1110  return 0;
1111  __pyx_L1_error:;
1112  return -1;
1113}
1114
1115#if PY_MAJOR_VERSION < 3
1116PyMODINIT_FUNC initerror(void); /*proto*/
1117PyMODINIT_FUNC initerror(void)
1118#else
1119PyMODINIT_FUNC PyInit_error(void); /*proto*/
1120PyMODINIT_FUNC PyInit_error(void)
1121#endif
1122{
1123  PyObject *__pyx_t_1 = NULL;
1124  PyObject *__pyx_t_2 = NULL;
1125  PyObject *__pyx_t_3 = NULL;
1126  __Pyx_RefNannyDeclarations
1127  #if CYTHON_REFNANNY
1128  __Pyx_RefNanny = __Pyx_RefNannyImportAPI("refnanny");
1129  if (!__Pyx_RefNanny) {
1130      PyErr_Clear();
1131      __Pyx_RefNanny = __Pyx_RefNannyImportAPI("Cython.Runtime.refnanny");
1132      if (!__Pyx_RefNanny)
1133          Py_FatalError("failed to import 'refnanny' module");
1134  }
1135  #endif
1136  __Pyx_RefNannySetupContext("PyMODINIT_FUNC PyInit_error(void)");
1137  if ( __Pyx_check_binary_version() < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1138  __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;}
1139  __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;}
1140  #ifdef __pyx_binding_PyCFunctionType_USED
1141  if (__pyx_binding_PyCFunctionType_init() < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1142  #endif
1143  /*--- Library function declarations ---*/
1144  /*--- Threads initialization code ---*/
1145  #if defined(__PYX_FORCE_INIT_THREADS) && __PYX_FORCE_INIT_THREADS
1146  #ifdef WITH_THREAD /* Python build with threading support? */
1147  PyEval_InitThreads();
1148  #endif
1149  #endif
1150  /*--- Module creation code ---*/
1151  #if PY_MAJOR_VERSION < 3
1152  __pyx_m = Py_InitModule4(__Pyx_NAMESTR("error"), __pyx_methods, __Pyx_DOCSTR(__pyx_k_2), 0, PYTHON_API_VERSION);
1153  #else
1154  __pyx_m = PyModule_Create(&__pyx_moduledef);
1155  #endif
1156  if (!__pyx_m) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
1157  #if PY_MAJOR_VERSION < 3
1158  Py_INCREF(__pyx_m);
1159  #endif
1160  __pyx_b = PyImport_AddModule(__Pyx_NAMESTR(__Pyx_BUILTIN_MODULE_NAME));
1161  if (!__pyx_b) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
1162  if (__Pyx_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
1163  /*--- Initialize various global constants etc. ---*/
1164  if (unlikely(__Pyx_InitGlobals() < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1165  if (__pyx_module_is_main_zmq__core__error) {
1166    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;};
1167  }
1168  /*--- Builtin init code ---*/
1169  if (unlikely(__Pyx_InitCachedBuiltins() < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1170  /*--- Constants init code ---*/
1171  if (unlikely(__Pyx_InitCachedConstants() < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1172  /*--- Global init code ---*/
1173  /*--- Variable export code ---*/
1174  /*--- Function export code ---*/
1175  /*--- Type init code ---*/
1176  /*--- Type import code ---*/
1177  __pyx_ptype_7cpython_4bool_bool = __Pyx_ImportType(__Pyx_BUILTIN_MODULE_NAME, "bool", sizeof(PyBoolObject), 0); if (unlikely(!__pyx_ptype_7cpython_4bool_bool)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 8; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1178  __pyx_ptype_7cpython_7complex_complex = __Pyx_ImportType(__Pyx_BUILTIN_MODULE_NAME, "complex", sizeof(PyComplexObject), 0); if (unlikely(!__pyx_ptype_7cpython_7complex_complex)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 15; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1179  /*--- Variable import code ---*/
1180  /*--- Function import code ---*/
1181  /*--- Execution code ---*/
1182
1183  /* "zmq/core/error.pyx":34
1184 * from libzmq cimport zmq_strerror, zmq_errno
1185 * 
1186 * from zmq.utils.strtypes import bytes             # <<<<<<<<<<<<<<
1187 * 
1188 * def strerror(int errnum):
1189 */
1190  __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 34; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1191  __Pyx_GOTREF(((PyObject *)__pyx_t_1));
1192  __Pyx_INCREF(((PyObject *)__pyx_n_s__bytes));
1193  PyList_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_n_s__bytes));
1194  __Pyx_GIVEREF(((PyObject *)__pyx_n_s__bytes));
1195  __pyx_t_2 = __Pyx_Import(((PyObject *)__pyx_n_s_3), ((PyObject *)__pyx_t_1), -1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 34; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1196  __Pyx_GOTREF(__pyx_t_2);
1197  __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
1198  __pyx_t_1 = PyObject_GetAttr(__pyx_t_2, __pyx_n_s__bytes); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 34; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1199  __Pyx_GOTREF(__pyx_t_1);
1200  if (PyObject_SetAttr(__pyx_m, __pyx_n_s__bytes, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 34; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1201  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
1202  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
1203
1204  /* "zmq/core/error.pyx":36
1205 * from zmq.utils.strtypes import bytes
1206 * 
1207 * def strerror(int errnum):             # <<<<<<<<<<<<<<
1208 *     """strerror(errnum)
1209 * 
1210 */
1211  __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_3zmq_4core_5error_strerror, NULL, __pyx_n_s_4); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 36; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1212  __Pyx_GOTREF(__pyx_t_2);
1213  if (PyObject_SetAttr(__pyx_m, __pyx_n_s__strerror, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 36; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1214  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
1215
1216  /* "zmq/core/error.pyx":53
1217 * 
1218 * 
1219 * class ZMQBaseError(Exception):             # <<<<<<<<<<<<<<
1220 *     """Base exception class for 0MQ errors in Python."""
1221 *     pass
1222 */
1223  __pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 53; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1224  __Pyx_GOTREF(((PyObject *)__pyx_t_2));
1225  __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 53; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1226  __Pyx_GOTREF(((PyObject *)__pyx_t_1));
1227  __Pyx_INCREF(__pyx_builtin_Exception);
1228  PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_builtin_Exception);
1229  __Pyx_GIVEREF(__pyx_builtin_Exception);
1230  if (PyDict_SetItemString(((PyObject *)__pyx_t_2), "__doc__", ((PyObject *)__pyx_kp_s_5)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 53; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1231  __pyx_t_3 = __Pyx_CreateClass(((PyObject *)__pyx_t_1), ((PyObject *)__pyx_t_2), __pyx_n_s__ZMQBaseError, __pyx_n_s_4); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 53; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1232  __Pyx_GOTREF(__pyx_t_3);
1233  __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
1234  if (PyObject_SetAttr(__pyx_m, __pyx_n_s__ZMQBaseError, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 53; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1235  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
1236  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
1237
1238  /* "zmq/core/error.pyx":58
1239 * 
1240 * 
1241 * class ZMQError(ZMQBaseError):             # <<<<<<<<<<<<<<
1242 *     """Wrap an errno style error.
1243 * 
1244 */
1245  __pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 58; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1246  __Pyx_GOTREF(((PyObject *)__pyx_t_2));
1247
1248  /* "zmq/core/error.pyx":68
1249 *     """
1250 * 
1251 *     def __init__(self, error=None):             # <<<<<<<<<<<<<<
1252 *         """Wrap an errno style error.
1253 * 
1254 */
1255  __pyx_t_3 = __pyx_binding_PyCFunctionType_NewEx(&__pyx_mdef_3zmq_4core_5error_8ZMQError___init__, NULL, __pyx_n_s_4); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 68; __pyx_clineno = __LINE__; goto __pyx_L1_er

Large files files are truncated, but you can click here to view the full file