/* Implementation of extcmethod */ static void __pyx_f_10extcmethod_4Spam_add_tons(struct __pyx_obj_10extcmethod_Spam *__pyx_v_self,int __pyx_v_x) { Py_INCREF(__pyx_v_self); __pyx_v_self->tons = (__pyx_v_self->tons + __pyx_v_x); Py_DECREF(__pyx_v_self); } static void __pyx_f_10extcmethod_4Spam_eat(struct __pyx_obj_10extcmethod_Spam *__pyx_v_self) { Py_INCREF(__pyx_v_self); __pyx_v_self->tons = 0; Py_DECREF(__pyx_v_self); } static void __pyx_f_10extcmethod_9SuperSpam_add_tons(struct __pyx_obj_10extcmethod_SuperSpam *__pyx_v_self,int __pyx_v_x) { Py_INCREF((PyObject *)__pyx_v_self); __pyx_v_self->__pyx_base.tons = (__pyx_v_self->__pyx_base.tons + (2 * __pyx_v_x)); Py_DECREF((PyObject *)__pyx_v_self); } static struct __pyx_vtabstruct_10extcmethod_Spam __pyx_vtable_10extcmethod_Spam; static PyObject *__pyx_tp_new_10extcmethod_Spam(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_10extcmethod_Spam *p; PyObject *o = (*t->tp_alloc)(t, 0); if (!o) return 0; p = ((struct __pyx_obj_10extcmethod_Spam *)o); *(struct __pyx_vtabstruct_10extcmethod_Spam **)&p->__pyx_vtab = __pyx_vtabptr_10extcmethod_Spam; return o; } static void __pyx_tp_dealloc_10extcmethod_Spam(PyObject *o) { (*o->ob_type->tp_free)(o); } static struct PyMethodDef __pyx_methods_10extcmethod_Spam[] = { {0, 0, 0, 0} }; static PyNumberMethods __pyx_tp_as_number_Spam = { 0, /*nb_add*/ 0, /*nb_subtract*/ 0, /*nb_multiply*/ 0, /*nb_divide*/ 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*/ 0, /*nb_coerce*/ 0, /*nb_int*/ 0, /*nb_long*/ 0, /*nb_float*/ 0, /*nb_oct*/ 0, /*nb_hex*/ 0, /*nb_inplace_add*/ 0, /*nb_inplace_subtract*/ 0, /*nb_inplace_multiply*/ 0, /*nb_inplace_divide*/ 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_TPFLAGS_DEFAULT & Py_TPFLAGS_HAVE_INDEX 0, /*nb_index*/ #endif }; static PySequenceMethods __pyx_tp_as_sequence_Spam = { 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_Spam = { 0, /*mp_length*/ 0, /*mp_subscript*/ 0, /*mp_ass_subscript*/ }; static PyBufferProcs __pyx_tp_as_buffer_Spam = { 0, /*bf_getreadbuffer*/ 0, /*bf_getwritebuffer*/ 0, /*bf_getsegcount*/ 0, /*bf_getcharbuffer*/ }; PyTypeObject __pyx_type_10extcmethod_Spam = { PyObject_HEAD_INIT(0) 0, /*ob_size*/ "extcmethod.Spam", /*tp_name*/ sizeof(struct __pyx_obj_10extcmethod_Spam), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_10extcmethod_Spam, /*tp_dealloc*/ 0, /*tp_print*/ 0, /*tp_getattr*/ 0, /*tp_setattr*/ 0, /*tp_compare*/ 0, /*tp_repr*/ &__pyx_tp_as_number_Spam, /*tp_as_number*/ &__pyx_tp_as_sequence_Spam, /*tp_as_sequence*/ &__pyx_tp_as_mapping_Spam, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ &__pyx_tp_as_buffer_Spam, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_BASETYPE, /*tp_flags*/ 0, /*tp_doc*/ 0, /*tp_traverse*/ 0, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_10extcmethod_Spam, /*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_10extcmethod_Spam, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ }; static struct __pyx_vtabstruct_10extcmethod_SuperSpam __pyx_vtable_10extcmethod_SuperSpam; static PyObject *__pyx_tp_new_10extcmethod_SuperSpam(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_10extcmethod_SuperSpam *p; PyObject *o = __pyx_ptype_10extcmethod_Spam->tp_new(t, a, k); if (!o) return 0; p = ((struct __pyx_obj_10extcmethod_SuperSpam *)o); *(struct __pyx_vtabstruct_10extcmethod_SuperSpam **)&p->__pyx_base.__pyx_vtab = __pyx_vtabptr_10extcmethod_SuperSpam; return o; } static void __pyx_tp_dealloc_10extcmethod_SuperSpam(PyObject *o) { __pyx_ptype_10extcmethod_Spam->tp_dealloc(o); } static struct PyMethodDef __pyx_methods_10extcmethod_SuperSpam[] = { {0, 0, 0, 0} }; static PyNumberMethods __pyx_tp_as_number_SuperSpam = { 0, /*nb_add*/ 0, /*nb_subtract*/ 0, /*nb_multiply*/ 0, /*nb_divide*/ 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*/ 0, /*nb_coerce*/ 0, /*nb_int*/ 0, /*nb_long*/ 0, /*nb_float*/ 0, /*nb_oct*/ 0, /*nb_hex*/ 0, /*nb_inplace_add*/ 0, /*nb_inplace_subtract*/ 0, /*nb_inplace_multiply*/ 0, /*nb_inplace_divide*/ 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_TPFLAGS_DEFAULT & Py_TPFLAGS_HAVE_INDEX 0, /*nb_index*/ #endif }; static PySequenceMethods __pyx_tp_as_sequence_SuperSpam = { 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_SuperSpam = { 0, /*mp_length*/ 0, /*mp_subscript*/ 0, /*mp_ass_subscript*/ }; static PyBufferProcs __pyx_tp_as_buffer_SuperSpam = { 0, /*bf_getreadbuffer*/ 0, /*bf_getwritebuffer*/ 0, /*bf_getsegcount*/ 0, /*bf_getcharbuffer*/ }; PyTypeObject __pyx_type_10extcmethod_SuperSpam = { PyObject_HEAD_INIT(0) 0, /*ob_size*/ "extcmethod.SuperSpam", /*tp_name*/ sizeof(struct __pyx_obj_10extcmethod_SuperSpam), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_10extcmethod_SuperSpam, /*tp_dealloc*/ 0, /*tp_print*/ 0, /*tp_getattr*/ 0, /*tp_setattr*/ 0, /*tp_compare*/ 0, /*tp_repr*/ &__pyx_tp_as_number_SuperSpam, /*tp_as_number*/ &__pyx_tp_as_sequence_SuperSpam, /*tp_as_sequence*/ &__pyx_tp_as_mapping_SuperSpam, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ &__pyx_tp_as_buffer_SuperSpam, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_BASETYPE, /*tp_flags*/ 0, /*tp_doc*/ 0, /*tp_traverse*/ 0, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_10extcmethod_SuperSpam, /*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_10extcmethod_SuperSpam, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ }; static struct PyMethodDef __pyx_methods[] = { {0, 0, 0, 0} }; static void __pyx_init_filenames(void); /*proto*/ PyMODINIT_FUNC initextcmethod(void); /*proto*/ PyMODINIT_FUNC initextcmethod(void) { __pyx_init_filenames(); __pyx_m = Py_InitModule4("extcmethod", __pyx_methods, 0, 0, PYTHON_API_VERSION); if (!__pyx_m) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;}; Py_INCREF(__pyx_m); __pyx_b = PyImport_AddModule("__builtin__"); if (!__pyx_b) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;}; if (PyObject_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;}; if (__Pyx_InitStrings(__pyx_string_tab) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;}; __pyx_vtabptr_10extcmethod_Spam = &__pyx_vtable_10extcmethod_Spam; *(void(**)(void))&__pyx_vtable_10extcmethod_Spam.add_tons = (void(*)(void))__pyx_f_10extcmethod_4Spam_add_tons; *(void(**)(void))&__pyx_vtable_10extcmethod_Spam.eat = (void(*)(void))__pyx_f_10extcmethod_4Spam_eat; if (PyType_Ready(&__pyx_type_10extcmethod_Spam) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;} if (__Pyx_SetVtable(__pyx_type_10extcmethod_Spam.tp_dict, __pyx_vtabptr_10extcmethod_Spam) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;} if (PyObject_SetAttrString(__pyx_m, "Spam", (PyObject *)&__pyx_type_10extcmethod_Spam) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;} __pyx_ptype_10extcmethod_Spam = &__pyx_type_10extcmethod_Spam; __pyx_vtabptr_10extcmethod_SuperSpam = &__pyx_vtable_10extcmethod_SuperSpam; __pyx_vtable_10extcmethod_SuperSpam.__pyx_base = *__pyx_vtabptr_10extcmethod_Spam; *(void(**)(void))&__pyx_vtable_10extcmethod_SuperSpam.__pyx_base.add_tons = (void(*)(void))__pyx_f_10extcmethod_9SuperSpam_add_tons; __pyx_type_10extcmethod_SuperSpam.tp_base = __pyx_ptype_10extcmethod_Spam; if (PyType_Ready(&__pyx_type_10extcmethod_SuperSpam) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 12; goto __pyx_L1;} if (__Pyx_SetVtable(__pyx_type_10extcmethod_SuperSpam.tp_dict, __pyx_vtabptr_10extcmethod_SuperSpam) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 12; goto __pyx_L1;} if (PyObject_SetAttrString(__pyx_m, "SuperSpam", (PyObject *)&__pyx_type_10extcmethod_SuperSpam) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 12; goto __pyx_L1;} __pyx_ptype_10extcmethod_SuperSpam = &__pyx_type_10extcmethod_SuperSpam; /* "/Local/Projects/D/Pyrex/Source/Tests/8/extcmethod.pyx":12 */ return; __pyx_L1:; __Pyx_AddTraceback("extcmethod"); }
/* "/home/richard/private/Working/snowball/pystemmer/src/Stemmer.pyx":218 */ Py_INCREF(__pyx_v_result); __pyx_r = __pyx_v_result; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_2); Py_XDECREF(__pyx_3); Py_XDECREF(__pyx_4); Py_XDECREF(__pyx_5); __Pyx_AddTraceback("Stemmer.Stemmer.stemWords"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_result); Py_DECREF(__pyx_v_word); Py_DECREF(__pyx_v_self); Py_DECREF(__pyx_v_words); return __pyx_r; } static PyObject *__pyx_tp_new_7Stemmer_Stemmer(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_7Stemmer_Stemmer *p; PyObject *o = (*t->tp_alloc)(t, 0); if (!o) return 0; p = ((struct __pyx_obj_7Stemmer_Stemmer *)o); p->cache = Py_None; Py_INCREF(Py_None); p->counter = Py_None; Py_INCREF(Py_None); return o; } static void __pyx_tp_dealloc_7Stemmer_Stemmer(PyObject *o) { struct __pyx_obj_7Stemmer_Stemmer *p = (struct __pyx_obj_7Stemmer_Stemmer *)o; { PyObject *etype, *eval, *etb; PyErr_Fetch(&etype, &eval, &etb); ++o->ob_refcnt; __pyx_f_7Stemmer_7Stemmer___dealloc__(o); if (PyErr_Occurred()) PyErr_WriteUnraisable(o); --o->ob_refcnt; PyErr_Restore(etype, eval, etb); } Py_XDECREF(p->cache); Py_XDECREF(p->counter); (*o->ob_type->tp_free)(o); } static int __pyx_tp_traverse_7Stemmer_Stemmer(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_7Stemmer_Stemmer *p = (struct __pyx_obj_7Stemmer_Stemmer *)o; if (p->cache) { e = (*v)(p->cache, a); if (e) return e; } if (p->counter) { e = (*v)(p->counter, a); if (e) return e; } return 0; } static int __pyx_tp_clear_7Stemmer_Stemmer(PyObject *o) { struct __pyx_obj_7Stemmer_Stemmer *p = (struct __pyx_obj_7Stemmer_Stemmer *)o; PyObject *t; t = p->cache; p->cache = Py_None; Py_INCREF(Py_None); Py_XDECREF(t); t = p->counter; p->counter = Py_None; Py_INCREF(Py_None); Py_XDECREF(t); return 0; } static PyObject *__pyx_getprop_7Stemmer_7Stemmer_maxCacheSize(PyObject *o, void *x) { return __pyx_f_7Stemmer_7Stemmer_12maxCacheSize___get__(o); } static int __pyx_setprop_7Stemmer_7Stemmer_maxCacheSize(PyObject *o, PyObject *v, void *x) { if (v) { return __pyx_f_7Stemmer_7Stemmer_12maxCacheSize___set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static struct PyMethodDef __pyx_methods_7Stemmer_Stemmer[] = { {"__purgeCache", (PyCFunction)__pyx_f_7Stemmer_7Stemmer___purgeCache, METH_VARARGS|METH_KEYWORDS, 0}, {"stemWord", (PyCFunction)__pyx_f_7Stemmer_7Stemmer_stemWord, METH_VARARGS|METH_KEYWORDS, __pyx_doc_7Stemmer_7Stemmer_stemWord}, {"stemWords", (PyCFunction)__pyx_f_7Stemmer_7Stemmer_stemWords, METH_VARARGS|METH_KEYWORDS, __pyx_doc_7Stemmer_7Stemmer_stemWords}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_7Stemmer_Stemmer[] = { {"maxCacheSize", __pyx_getprop_7Stemmer_7Stemmer_maxCacheSize, __pyx_setprop_7Stemmer_7Stemmer_maxCacheSize, __pyx_k12, 0}, {0, 0, 0, 0, 0} }; static PyNumberMethods __pyx_tp_as_number_Stemmer = { 0, /*nb_add*/ 0, /*nb_subtract*/ 0, /*nb_multiply*/ 0, /*nb_divide*/ 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*/ 0, /*nb_coerce*/ 0, /*nb_int*/ 0, /*nb_long*/ 0, /*nb_float*/ 0, /*nb_oct*/ 0, /*nb_hex*/ 0, /*nb_inplace_add*/ 0, /*nb_inplace_subtract*/ 0, /*nb_inplace_multiply*/ 0, /*nb_inplace_divide*/ 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_TPFLAGS_DEFAULT & Py_TPFLAGS_HAVE_INDEX 0, /*nb_index*/ #endif }; static PySequenceMethods __pyx_tp_as_sequence_Stemmer = { 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_Stemmer = { 0, /*mp_length*/ 0, /*mp_subscript*/ 0, /*mp_ass_subscript*/ }; static PyBufferProcs __pyx_tp_as_buffer_Stemmer = { 0, /*bf_getreadbuffer*/ 0, /*bf_getwritebuffer*/ 0, /*bf_getsegcount*/ 0, /*bf_getcharbuffer*/ }; PyTypeObject __pyx_type_7Stemmer_Stemmer = { PyObject_HEAD_INIT(0) 0, /*ob_size*/ "Stemmer.Stemmer", /*tp_name*/ sizeof(struct __pyx_obj_7Stemmer_Stemmer), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_7Stemmer_Stemmer, /*tp_dealloc*/ 0, /*tp_print*/ 0, /*tp_getattr*/ 0, /*tp_setattr*/ 0, /*tp_compare*/ 0, /*tp_repr*/ &__pyx_tp_as_number_Stemmer, /*tp_as_number*/ &__pyx_tp_as_sequence_Stemmer, /*tp_as_sequence*/ &__pyx_tp_as_mapping_Stemmer, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ &__pyx_tp_as_buffer_Stemmer, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ "An instance of a stemming algorithm.\n\n The algorithm has internal state, so must not be called concurrently.\n ie, only a single thread should access the instance at any given time.\n\n When creating a `Stemmer` object, there is one required argument: the\n name of the algorithm to use in the new stemmer. A list of the valid\n algorithm names may be obtained by calling the `algorithms()` function\n in this module. In addition, the appropriate stemming algorithm for a\n given language may be obtained by using the 2 or 3 letter ISO 639\n language codes.\n\n A second optional argument to the constructor for `Stemmer` is the size\n of cache to use. The cache implemented in this module is not terribly\n efficient, but benchmarks show that it approximately doubles\n performance for typical text processing operations, without too much\n memory overhead. The cache may be disabled by passing a size of 0.\n The default size (10000 words) is probably appropriate in most\n situations. In pathological cases (for example, when no word is\n presented to the stemming algorithm more than once, so the cache is\n useless), the cache can severely damage performance.\n\n The \"benchmark.py\" script supplied with the PyStemmer distribution can\n be used to test the performance of the stemming algorithms with various\n cache sizes.\n\n ", /*tp_doc*/ __pyx_tp_traverse_7Stemmer_Stemmer, /*tp_traverse*/ __pyx_tp_clear_7Stemmer_Stemmer, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_7Stemmer_Stemmer, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_7Stemmer_Stemmer, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ 0, /*tp_dictoffset*/ __pyx_f_7Stemmer_7Stemmer___init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_7Stemmer_Stemmer, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ }; static struct PyMethodDef __pyx_methods[] = { {"algorithms", (PyCFunction)__pyx_f_7Stemmer_algorithms, METH_VARARGS|METH_KEYWORDS, __pyx_doc_7Stemmer_algorithms}, {"version", (PyCFunction)__pyx_f_7Stemmer_version, METH_VARARGS|METH_KEYWORDS, __pyx_doc_7Stemmer_version}, {0, 0, 0, 0} }; static void __pyx_init_filenames(void); /*proto*/ PyMODINIT_FUNC initStemmer(void); /*proto*/ PyMODINIT_FUNC initStemmer(void) { __pyx_init_filenames(); __pyx_m = Py_InitModule4("Stemmer", __pyx_methods, __pyx_mdoc, 0, PYTHON_API_VERSION); if (!__pyx_m) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 22; goto __pyx_L1;}; Py_INCREF(__pyx_m); __pyx_b = PyImport_AddModule("__builtin__"); if (!__pyx_b) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 22; goto __pyx_L1;}; if (PyObject_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 22; goto __pyx_L1;}; if (__Pyx_InitStrings(__pyx_string_tab) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 22; goto __pyx_L1;}; __pyx_type_7Stemmer_Stemmer.tp_free = _PyObject_GC_Del; if (PyType_Ready(&__pyx_type_7Stemmer_Stemmer) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 79; goto __pyx_L1;} if (PyObject_SetAttrString(__pyx_m, "Stemmer", (PyObject *)&__pyx_type_7Stemmer_Stemmer) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 79; goto __pyx_L1;} __pyx_ptype_7Stemmer_Stemmer = &__pyx_type_7Stemmer_Stemmer; /* "/home/richard/private/Working/snowball/pystemmer/src/Stemmer.pyx":25 */ if (PyObject_SetAttr(__pyx_m, __pyx_n___docformat__, __pyx_k13p) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 25; goto __pyx_L1;} /* "/home/richard/private/Working/snowball/pystemmer/src/Stemmer.pyx":43 */ Py_INCREF(Py_False); __pyx_d1 = Py_False; /* "/home/richard/private/Working/snowball/pystemmer/src/Stemmer.pyx":112 */ __pyx_d2 = 10000; /* "/home/richard/private/Working/snowball/pystemmer/src/Stemmer.pyx":200 */ return; __pyx_L1:; __Pyx_AddTraceback("Stemmer"); }
/* Implementation of cdefexternblock */ static struct PyMethodDef __pyx_methods[] = { {0, 0, 0, 0} }; static void __pyx_init_filenames(void); /*proto*/ PyMODINIT_FUNC initcdefexternblock(void); /*proto*/ PyMODINIT_FUNC initcdefexternblock(void) { PyObject *__pyx_1 = 0; __pyx_init_filenames(); __pyx_m = Py_InitModule4("cdefexternblock", __pyx_methods, 0, 0, PYTHON_API_VERSION); if (!__pyx_m) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;}; Py_INCREF(__pyx_m); __pyx_b = PyImport_AddModule("__builtin__"); if (!__pyx_b) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;}; if (PyObject_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;}; if (__Pyx_InitStrings(__pyx_string_tab) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;}; __pyx_v_15cdefexternblock_r = ((struct runny_obj *)Py_None); Py_INCREF(Py_None); __pyx_ptype_15cdefexternblock_runny = __Pyx_ImportType("external", "runny", sizeof(struct runny_obj)); if (!__pyx_ptype_15cdefexternblock_runny) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 12; goto __pyx_L1;} /* "/Local/Projects/D/Pyrex/Source/Tests/6/cdefexternblock.pyx":18 */ __pyx_1 = __Pyx_GetName(__pyx_b, __pyx_n_x); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 18; goto __pyx_L1;} if (!__Pyx_TypeTest(__pyx_1, __pyx_ptype_15cdefexternblock_runny)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 18; goto __pyx_L1;} Py_DECREF(((PyObject *)__pyx_v_15cdefexternblock_r)); __pyx_v_15cdefexternblock_r = ((struct runny_obj *)__pyx_1); __pyx_1 = 0; /* "/Local/Projects/D/Pyrex/Source/Tests/6/cdefexternblock.pyx":19 */ __pyx_v_15cdefexternblock_r->a = 42; return; __pyx_L1:; Py_XDECREF(__pyx_1); __Pyx_AddTraceback("cdefexternblock"); }
/* "c:\src\ip\pymfc\pymfclib\_pymfclib_winhttp.pyx":128 */ Py_INCREF(((PyObject *)__pyx_v_ret)); __pyx_r = ((PyObject *)__pyx_v_ret); goto __pyx_L0; goto __pyx_L3; } __pyx_L3:; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_4); __Pyx_AddTraceback("_pymfclib_winhttp.WinHTTPSession.getProxyForUrl"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_ret); Py_DECREF(__pyx_v_self); Py_DECREF(__pyx_v_url); Py_DECREF(__pyx_v_configurl); return __pyx_r; } static PyObject *__pyx_tp_new_17_pymfclib_winhttp_CurrentUserIEProxyConfig(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_17_pymfclib_winhttp_CurrentUserIEProxyConfig *p; PyObject *o = (*t->tp_alloc)(t, 0); if (!o) return 0; p = ((struct __pyx_obj_17_pymfclib_winhttp_CurrentUserIEProxyConfig *)o); p->autodetect = Py_None; Py_INCREF(Py_None); p->autoconfigurl = Py_None; Py_INCREF(Py_None); p->proxy = Py_None; Py_INCREF(Py_None); p->proxybypass = Py_None; Py_INCREF(Py_None); return o; } static void __pyx_tp_dealloc_17_pymfclib_winhttp_CurrentUserIEProxyConfig(PyObject *o) { struct __pyx_obj_17_pymfclib_winhttp_CurrentUserIEProxyConfig *p = (struct __pyx_obj_17_pymfclib_winhttp_CurrentUserIEProxyConfig *)o; Py_XDECREF(p->autodetect); Py_XDECREF(p->autoconfigurl); Py_XDECREF(p->proxy); Py_XDECREF(p->proxybypass); (*o->ob_type->tp_free)(o); } static int __pyx_tp_traverse_17_pymfclib_winhttp_CurrentUserIEProxyConfig(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_17_pymfclib_winhttp_CurrentUserIEProxyConfig *p = (struct __pyx_obj_17_pymfclib_winhttp_CurrentUserIEProxyConfig *)o; if (p->autodetect) { e = (*v)(p->autodetect, a); if (e) return e; } if (p->autoconfigurl) { e = (*v)(p->autoconfigurl, a); if (e) return e; } if (p->proxy) { e = (*v)(p->proxy, a); if (e) return e; } if (p->proxybypass) { e = (*v)(p->proxybypass, a); if (e) return e; } return 0; } static int __pyx_tp_clear_17_pymfclib_winhttp_CurrentUserIEProxyConfig(PyObject *o) { struct __pyx_obj_17_pymfclib_winhttp_CurrentUserIEProxyConfig *p = (struct __pyx_obj_17_pymfclib_winhttp_CurrentUserIEProxyConfig *)o; PyObject *t; t = p->autodetect; p->autodetect = Py_None; Py_INCREF(Py_None); Py_XDECREF(t); t = p->autoconfigurl; p->autoconfigurl = Py_None; Py_INCREF(Py_None); Py_XDECREF(t); t = p->proxy; p->proxy = Py_None; Py_INCREF(Py_None); Py_XDECREF(t); t = p->proxybypass; p->proxybypass = Py_None; Py_INCREF(Py_None); Py_XDECREF(t); return 0; } static struct PyMethodDef __pyx_methods_17_pymfclib_winhttp_CurrentUserIEProxyConfig[] = { {0, 0, 0, 0} }; static struct PyMemberDef __pyx_members_17_pymfclib_winhttp_CurrentUserIEProxyConfig[] = { {"autodetect", T_OBJECT, offsetof(struct __pyx_obj_17_pymfclib_winhttp_CurrentUserIEProxyConfig, autodetect), 0, 0}, {"autoconfigurl", T_OBJECT, offsetof(struct __pyx_obj_17_pymfclib_winhttp_CurrentUserIEProxyConfig, autoconfigurl), 0, 0}, {"proxy", T_OBJECT, offsetof(struct __pyx_obj_17_pymfclib_winhttp_CurrentUserIEProxyConfig, proxy), 0, 0}, {"proxybypass", T_OBJECT, offsetof(struct __pyx_obj_17_pymfclib_winhttp_CurrentUserIEProxyConfig, proxybypass), 0, 0}, {0, 0, 0, 0, 0} }; static PyNumberMethods __pyx_tp_as_number_CurrentUserIEProxyConfig = { 0, /*nb_add*/ 0, /*nb_subtract*/ 0, /*nb_multiply*/ 0, /*nb_divide*/ 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*/ 0, /*nb_coerce*/ 0, /*nb_int*/ 0, /*nb_long*/ 0, /*nb_float*/ 0, /*nb_oct*/ 0, /*nb_hex*/ 0, /*nb_inplace_add*/ 0, /*nb_inplace_subtract*/ 0, /*nb_inplace_multiply*/ 0, /*nb_inplace_divide*/ 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_TPFLAGS_DEFAULT & Py_TPFLAGS_HAVE_INDEX 0, /*nb_index*/ #endif }; static PySequenceMethods __pyx_tp_as_sequence_CurrentUserIEProxyConfig = { 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_CurrentUserIEProxyConfig = { 0, /*mp_length*/ 0, /*mp_subscript*/ 0, /*mp_ass_subscript*/ }; static PyBufferProcs __pyx_tp_as_buffer_CurrentUserIEProxyConfig = { 0, /*bf_getreadbuffer*/ 0, /*bf_getwritebuffer*/ 0, /*bf_getsegcount*/ 0, /*bf_getcharbuffer*/ }; PyTypeObject __pyx_type_17_pymfclib_winhttp_CurrentUserIEProxyConfig = { PyObject_HEAD_INIT(0) 0, /*ob_size*/ "_pymfclib_winhttp.CurrentUserIEProxyConfig", /*tp_name*/ sizeof(struct __pyx_obj_17_pymfclib_winhttp_CurrentUserIEProxyConfig), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_17_pymfclib_winhttp_CurrentUserIEProxyConfig, /*tp_dealloc*/ 0, /*tp_print*/ 0, /*tp_getattr*/ 0, /*tp_setattr*/ 0, /*tp_compare*/ 0, /*tp_repr*/ &__pyx_tp_as_number_CurrentUserIEProxyConfig, /*tp_as_number*/ &__pyx_tp_as_sequence_CurrentUserIEProxyConfig, /*tp_as_sequence*/ &__pyx_tp_as_mapping_CurrentUserIEProxyConfig, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ &__pyx_tp_as_buffer_CurrentUserIEProxyConfig, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_17_pymfclib_winhttp_CurrentUserIEProxyConfig, /*tp_traverse*/ __pyx_tp_clear_17_pymfclib_winhttp_CurrentUserIEProxyConfig, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_17_pymfclib_winhttp_CurrentUserIEProxyConfig, /*tp_methods*/ __pyx_members_17_pymfclib_winhttp_CurrentUserIEProxyConfig, /*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_17_pymfclib_winhttp_CurrentUserIEProxyConfig, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ }; static PyObject *__pyx_tp_new_17_pymfclib_winhttp_ProxyInfo(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_17_pymfclib_winhttp_ProxyInfo *p; PyObject *o = (*t->tp_alloc)(t, 0); if (!o) return 0; p = ((struct __pyx_obj_17_pymfclib_winhttp_ProxyInfo *)o); p->noproxy = Py_None; Py_INCREF(Py_None); p->proxy = Py_None; Py_INCREF(Py_None); p->proxybypass = Py_None; Py_INCREF(Py_None); return o; } static void __pyx_tp_dealloc_17_pymfclib_winhttp_ProxyInfo(PyObject *o) { struct __pyx_obj_17_pymfclib_winhttp_ProxyInfo *p = (struct __pyx_obj_17_pymfclib_winhttp_ProxyInfo *)o; Py_XDECREF(p->noproxy); Py_XDECREF(p->proxy); Py_XDECREF(p->proxybypass); (*o->ob_type->tp_free)(o); } static int __pyx_tp_traverse_17_pymfclib_winhttp_ProxyInfo(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_17_pymfclib_winhttp_ProxyInfo *p = (struct __pyx_obj_17_pymfclib_winhttp_ProxyInfo *)o; if (p->noproxy) { e = (*v)(p->noproxy, a); if (e) return e; } if (p->proxy) { e = (*v)(p->proxy, a); if (e) return e; } if (p->proxybypass) { e = (*v)(p->proxybypass, a); if (e) return e; } return 0; } static int __pyx_tp_clear_17_pymfclib_winhttp_ProxyInfo(PyObject *o) { struct __pyx_obj_17_pymfclib_winhttp_ProxyInfo *p = (struct __pyx_obj_17_pymfclib_winhttp_ProxyInfo *)o; PyObject *t; t = p->noproxy; p->noproxy = Py_None; Py_INCREF(Py_None); Py_XDECREF(t); t = p->proxy; p->proxy = Py_None; Py_INCREF(Py_None); Py_XDECREF(t); t = p->proxybypass; p->proxybypass = Py_None; Py_INCREF(Py_None); Py_XDECREF(t); return 0; } static struct PyMethodDef __pyx_methods_17_pymfclib_winhttp_ProxyInfo[] = { {0, 0, 0, 0} }; static struct PyMemberDef __pyx_members_17_pymfclib_winhttp_ProxyInfo[] = { {"noproxy", T_OBJECT, offsetof(struct __pyx_obj_17_pymfclib_winhttp_ProxyInfo, noproxy), 0, 0}, {"proxy", T_OBJECT, offsetof(struct __pyx_obj_17_pymfclib_winhttp_ProxyInfo, proxy), 0, 0}, {"proxybypass", T_OBJECT, offsetof(struct __pyx_obj_17_pymfclib_winhttp_ProxyInfo, proxybypass), 0, 0}, {0, 0, 0, 0, 0} }; static PyNumberMethods __pyx_tp_as_number_ProxyInfo = { 0, /*nb_add*/ 0, /*nb_subtract*/ 0, /*nb_multiply*/ 0, /*nb_divide*/ 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*/ 0, /*nb_coerce*/ 0, /*nb_int*/ 0, /*nb_long*/ 0, /*nb_float*/ 0, /*nb_oct*/ 0, /*nb_hex*/ 0, /*nb_inplace_add*/ 0, /*nb_inplace_subtract*/ 0, /*nb_inplace_multiply*/ 0, /*nb_inplace_divide*/ 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_TPFLAGS_DEFAULT & Py_TPFLAGS_HAVE_INDEX 0, /*nb_index*/ #endif }; static PySequenceMethods __pyx_tp_as_sequence_ProxyInfo = { 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_ProxyInfo = { 0, /*mp_length*/ 0, /*mp_subscript*/ 0, /*mp_ass_subscript*/ }; static PyBufferProcs __pyx_tp_as_buffer_ProxyInfo = { 0, /*bf_getreadbuffer*/ 0, /*bf_getwritebuffer*/ 0, /*bf_getsegcount*/ 0, /*bf_getcharbuffer*/ }; PyTypeObject __pyx_type_17_pymfclib_winhttp_ProxyInfo = { PyObject_HEAD_INIT(0) 0, /*ob_size*/ "_pymfclib_winhttp.ProxyInfo", /*tp_name*/ sizeof(struct __pyx_obj_17_pymfclib_winhttp_ProxyInfo), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_17_pymfclib_winhttp_ProxyInfo, /*tp_dealloc*/ 0, /*tp_print*/ 0, /*tp_getattr*/ 0, /*tp_setattr*/ 0, /*tp_compare*/ 0, /*tp_repr*/ &__pyx_tp_as_number_ProxyInfo, /*tp_as_number*/ &__pyx_tp_as_sequence_ProxyInfo, /*tp_as_sequence*/ &__pyx_tp_as_mapping_ProxyInfo, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ &__pyx_tp_as_buffer_ProxyInfo, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_17_pymfclib_winhttp_ProxyInfo, /*tp_traverse*/ __pyx_tp_clear_17_pymfclib_winhttp_ProxyInfo, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_17_pymfclib_winhttp_ProxyInfo, /*tp_methods*/ __pyx_members_17_pymfclib_winhttp_ProxyInfo, /*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_17_pymfclib_winhttp_ProxyInfo, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ }; static PyObject *__pyx_tp_new_17_pymfclib_winhttp_WinHTTPSession(PyTypeObject *t, PyObject *a, PyObject *k) { PyObject *o = (*t->tp_alloc)(t, 0); if (!o) return 0; return o; } static void __pyx_tp_dealloc_17_pymfclib_winhttp_WinHTTPSession(PyObject *o) { { PyObject *etype, *eval, *etb; PyErr_Fetch(&etype, &eval, &etb); ++o->ob_refcnt; __pyx_f_17_pymfclib_winhttp_14WinHTTPSession___dealloc__(o); if (PyErr_Occurred()) PyErr_WriteUnraisable(o); --o->ob_refcnt; PyErr_Restore(etype, eval, etb); } (*o->ob_type->tp_free)(o); } static struct PyMethodDef __pyx_methods_17_pymfclib_winhttp_WinHTTPSession[] = { {"getProxyForUrl", (PyCFunction)__pyx_f_17_pymfclib_winhttp_14WinHTTPSession_getProxyForUrl, METH_VARARGS|METH_KEYWORDS, 0}, {0, 0, 0, 0} }; static PyNumberMethods __pyx_tp_as_number_WinHTTPSession = { 0, /*nb_add*/ 0, /*nb_subtract*/ 0, /*nb_multiply*/ 0, /*nb_divide*/ 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*/ 0, /*nb_coerce*/ 0, /*nb_int*/ 0, /*nb_long*/ 0, /*nb_float*/ 0, /*nb_oct*/ 0, /*nb_hex*/ 0, /*nb_inplace_add*/ 0, /*nb_inplace_subtract*/ 0, /*nb_inplace_multiply*/ 0, /*nb_inplace_divide*/ 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_TPFLAGS_DEFAULT & Py_TPFLAGS_HAVE_INDEX 0, /*nb_index*/ #endif }; static PySequenceMethods __pyx_tp_as_sequence_WinHTTPSession = { 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_WinHTTPSession = { 0, /*mp_length*/ 0, /*mp_subscript*/ 0, /*mp_ass_subscript*/ }; static PyBufferProcs __pyx_tp_as_buffer_WinHTTPSession = { 0, /*bf_getreadbuffer*/ 0, /*bf_getwritebuffer*/ 0, /*bf_getsegcount*/ 0, /*bf_getcharbuffer*/ }; PyTypeObject __pyx_type_17_pymfclib_winhttp_WinHTTPSession = { PyObject_HEAD_INIT(0) 0, /*ob_size*/ "_pymfclib_winhttp.WinHTTPSession", /*tp_name*/ sizeof(struct __pyx_obj_17_pymfclib_winhttp_WinHTTPSession), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_17_pymfclib_winhttp_WinHTTPSession, /*tp_dealloc*/ 0, /*tp_print*/ 0, /*tp_getattr*/ 0, /*tp_setattr*/ 0, /*tp_compare*/ 0, /*tp_repr*/ &__pyx_tp_as_number_WinHTTPSession, /*tp_as_number*/ &__pyx_tp_as_sequence_WinHTTPSession, /*tp_as_sequence*/ &__pyx_tp_as_mapping_WinHTTPSession, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ &__pyx_tp_as_buffer_WinHTTPSession, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_BASETYPE, /*tp_flags*/ 0, /*tp_doc*/ 0, /*tp_traverse*/ 0, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_17_pymfclib_winhttp_WinHTTPSession, /*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*/ __pyx_f_17_pymfclib_winhttp_14WinHTTPSession___init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_17_pymfclib_winhttp_WinHTTPSession, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ }; static struct PyMethodDef __pyx_methods[] = { {"getIEProxyConfigForCurrentUser", (PyCFunction)__pyx_f_17_pymfclib_winhttp_getIEProxyConfigForCurrentUser, METH_VARARGS|METH_KEYWORDS, 0}, {0, 0, 0, 0} }; static void __pyx_init_filenames(void); /*proto*/ PyMODINIT_FUNC init_pymfclib_winhttp(void); /*proto*/ PyMODINIT_FUNC init_pymfclib_winhttp(void) { __pyx_init_filenames(); __pyx_m = Py_InitModule4("_pymfclib_winhttp", __pyx_methods, 0, 0, PYTHON_API_VERSION); if (!__pyx_m) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 4; goto __pyx_L1;}; Py_INCREF(__pyx_m); __pyx_b = PyImport_AddModule("__builtin__"); if (!__pyx_b) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 4; goto __pyx_L1;}; if (PyObject_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 4; goto __pyx_L1;}; if (__Pyx_InitStrings(__pyx_string_tab) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 4; goto __pyx_L1;}; __pyx_type_17_pymfclib_winhttp_CurrentUserIEProxyConfig.tp_free = _PyObject_GC_Del; if (PyType_Ready(&__pyx_type_17_pymfclib_winhttp_CurrentUserIEProxyConfig) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 46; goto __pyx_L1;} if (PyObject_SetAttrString(__pyx_m, "CurrentUserIEProxyConfig", (PyObject *)&__pyx_type_17_pymfclib_winhttp_CurrentUserIEProxyConfig) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 46; goto __pyx_L1;} __pyx_ptype_17_pymfclib_winhttp_CurrentUserIEProxyConfig = &__pyx_type_17_pymfclib_winhttp_CurrentUserIEProxyConfig; __pyx_type_17_pymfclib_winhttp_ProxyInfo.tp_free = _PyObject_GC_Del; if (PyType_Ready(&__pyx_type_17_pymfclib_winhttp_ProxyInfo) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 52; goto __pyx_L1;} if (PyObject_SetAttrString(__pyx_m, "ProxyInfo", (PyObject *)&__pyx_type_17_pymfclib_winhttp_ProxyInfo) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 52; goto __pyx_L1;} __pyx_ptype_17_pymfclib_winhttp_ProxyInfo = &__pyx_type_17_pymfclib_winhttp_ProxyInfo; if (PyType_Ready(&__pyx_type_17_pymfclib_winhttp_WinHTTPSession) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 83; goto __pyx_L1;} if (PyObject_SetAttrString(__pyx_m, "WinHTTPSession", (PyObject *)&__pyx_type_17_pymfclib_winhttp_WinHTTPSession) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 83; goto __pyx_L1;} __pyx_ptype_17_pymfclib_winhttp_WinHTTPSession = &__pyx_type_17_pymfclib_winhttp_WinHTTPSession; /* "c:\src\ip\pymfc\pymfclib\_pymfclib_winhttp.pyx":97 */ return; __pyx_L1:; __Pyx_AddTraceback("_pymfclib_winhttp"); }
/* "/Local/Projects/D/Pyrex/Source/Tests/2/index.pyx":15 */ __pyx_3 = PyInt_FromLong(42); if (!__pyx_3) { __pyx_filename = __pyx_f[0]; __pyx_lineno = 15; goto __pyx_L1; } if (PyObject_SetItem(__pyx_v_obj1, __pyx_v_obj2, __pyx_3) < 0) { __pyx_filename = __pyx_f[0]; __pyx_lineno = 15; goto __pyx_L1; } Py_DECREF(__pyx_3); __pyx_3 = 0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1: ; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_3); __Pyx_AddTraceback("index.f"); __pyx_r = 0; __pyx_L0: ; Py_DECREF(__pyx_v_obj1); Py_DECREF(__pyx_v_obj2); Py_DECREF(__pyx_v_obj3); return __pyx_r; } static struct PyMethodDef __pyx_methods[] = { {"f", (PyCFunction)__pyx_f_5index_f, METH_VARARGS|METH_KEYWORDS, 0}, {0, 0, 0, 0} }; static void __pyx_init_filenames(void); /*proto*/ PyMODINIT_FUNC initindex(void); /*proto*/ PyMODINIT_FUNC initindex(void) { __pyx_init_filenames(); __pyx_m = Py_InitModule4("index", __pyx_methods, 0, 0, PYTHON_API_VERSION); if (!__pyx_m) { __pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1; }; Py_INCREF(__pyx_m); __pyx_b = PyImport_AddModule("__builtin__"); if (!__pyx_b) { __pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1; }; if (PyObject_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) { __pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1; }; if (__Pyx_InitStrings(__pyx_string_tab) < 0) { __pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1; }; return; __pyx_L1: ; __Pyx_AddTraceback("index"); }
/*else*/ { __pyx_2 = PyFloat_FromDouble(1.0); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 13; goto __pyx_L1;} __pyx_r = __pyx_2; __pyx_2 = 0; goto __pyx_L0; } __pyx_L2:; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_2); Py_XDECREF(__pyx_3); Py_XDECREF(__pyx_4); __Pyx_AddTraceback("Domain.CCS.utils.dactivation"); __pyx_r = 0; __pyx_L0:; return __pyx_r; } static struct PyMethodDef __pyx_methods[] = { {0, 0, 0, 0} }; static void __pyx_init_filenames(void); /*proto*/ PyMODINIT_FUNC initutils(void); /*proto*/ PyMODINIT_FUNC initutils(void) { PyObject *__pyx_1 = 0; PyObject *__pyx_2 = 0; __pyx_init_filenames(); __pyx_m = Py_InitModule4("utils", __pyx_methods, 0, 0, PYTHON_API_VERSION); if (!__pyx_m) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; goto __pyx_L1;}; Py_INCREF(__pyx_m); __pyx_b = PyImport_AddModule("__builtin__"); if (!__pyx_b) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; goto __pyx_L1;}; if (PyObject_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; goto __pyx_L1;}; if (__Pyx_InitStrings(__pyx_string_tab) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; goto __pyx_L1;}; /* "d:\Dropbox\Dropbox\devsimpy\Domain\CCS\utils.pyx":2 */ __pyx_1 = PyList_New(1); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; goto __pyx_L1;} Py_INCREF(__pyx_n_expit); PyList_SET_ITEM(__pyx_1, 0, __pyx_n_expit); __pyx_2 = __Pyx_Import(__pyx_k2p, __pyx_1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; __pyx_1 = PyObject_GetAttr(__pyx_2, __pyx_n_expit); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; goto __pyx_L1;} if (PyObject_SetAttr(__pyx_m, __pyx_n_expit, __pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; Py_DECREF(__pyx_2); __pyx_2 = 0; /* "d:\Dropbox\Dropbox\devsimpy\Domain\CCS\utils.pyx":7 */ return; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_2); __Pyx_AddTraceback("Domain.CCS.utils"); }
/* "/Local/Projects/D/Pyrex/Source/Tests/Bugs/huss/huss2.pyx":15 */ __pyx_v_i = (__pyx_v_e + 1); } static struct PyMethodDef __pyx_methods[] = { {0, 0, 0, 0} }; static void __pyx_init_filenames(void); /*proto*/ PyMODINIT_FUNC inithuss2(void); /*proto*/ PyMODINIT_FUNC inithuss2(void) { __pyx_init_filenames(); __pyx_m = Py_InitModule4("huss2", __pyx_methods, 0, 0, PYTHON_API_VERSION); if (!__pyx_m) { __pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1; }; Py_INCREF(__pyx_m); __pyx_b = PyImport_AddModule("__builtin__"); if (!__pyx_b) { __pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1; }; if (PyObject_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) { __pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1; }; if (__Pyx_InitStrings(__pyx_string_tab) < 0) { __pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1; }; /* "/Local/Projects/D/Pyrex/Source/Tests/Bugs/huss/huss2.pyx":6 */ return; __pyx_L1: ; __Pyx_AddTraceback("huss2"); }
/* Implementation of kostyrka2 */ static struct PyMethodDef __pyx_methods[] = { {0, 0, 0, 0} }; static void __pyx_init_filenames(void); /*proto*/ PyMODINIT_FUNC initkostyrka2(void); /*proto*/ PyMODINIT_FUNC initkostyrka2(void) { PyObject *__pyx_1 = 0; PyObject *__pyx_2 = 0; PyObject *__pyx_3 = 0; __pyx_init_filenames(); __pyx_m = Py_InitModule4("kostyrka2", __pyx_methods, 0, 0, PYTHON_API_VERSION); if (!__pyx_m) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;}; Py_INCREF(__pyx_m); __pyx_b = PyImport_AddModule("__builtin__"); if (!__pyx_b) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;}; if (PyObject_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;}; if (__Pyx_InitStrings(__pyx_string_tab) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;}; __pyx_1 = PyDict_New(); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;} __pyx_2 = PyTuple_New(0); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;} __pyx_3 = __Pyx_CreateClass(__pyx_2, __pyx_1, __pyx_n_X, "kostyrka2"); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; __pyx_2 = PyList_New(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; goto __pyx_L1;} Py_INCREF(__pyx_k2p); PyList_SET_ITEM(__pyx_2, 0, __pyx_k2p); if (PyObject_SetAttr(__pyx_3, __pyx_n_slots, __pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; if (PyObject_SetAttr(__pyx_m, __pyx_n_X, __pyx_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;} Py_DECREF(__pyx_3); __pyx_3 = 0; Py_DECREF(__pyx_1); __pyx_1 = 0; return; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_2); Py_XDECREF(__pyx_3); __Pyx_AddTraceback("kostyrka2"); }
/* "G:/Projekte/svn_mynew/svnroot/os2/usb/k8055/pyk8055/pyk8055lib.pyx":84 */ Py_INCREF(__pyx_v_strwrite); __pyx_r = __pyx_v_strwrite; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_2); Py_XDECREF(__pyx_5); __Pyx_AddTraceback("pyk8055lib.K8055LibClass.WriteasString"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_i); Py_DECREF(__pyx_v_strwrite); Py_DECREF(__pyx_v_self); Py_DECREF(__pyx_v_writedata); return __pyx_r; } static PyObject *__pyx_tp_new_10pyk8055lib_K8055LibClass(PyTypeObject *t, PyObject *a, PyObject *k) { PyObject *o = (*t->tp_alloc)(t, 0); if (!o) return 0; if (__pyx_f_10pyk8055lib_13K8055LibClass___cinit__(o, a, k) < 0) { Py_DECREF(o); o = 0; } return o; } static void __pyx_tp_dealloc_10pyk8055lib_K8055LibClass(PyObject *o) { { PyObject *etype, *eval, *etb; PyErr_Fetch(&etype, &eval, &etb); ++o->ob_refcnt; __pyx_f_10pyk8055lib_13K8055LibClass___dealloc__(o); if (PyErr_Occurred()) PyErr_WriteUnraisable(o); --o->ob_refcnt; PyErr_Restore(etype, eval, etb); } (*o->ob_type->tp_free)(o); } static struct PyMethodDef __pyx_methods_10pyk8055lib_K8055LibClass[] = { {"ReadasString", (PyCFunction)__pyx_f_10pyk8055lib_13K8055LibClass_ReadasString, METH_VARARGS|METH_KEYWORDS, 0}, {"ReadData", (PyCFunction)__pyx_f_10pyk8055lib_13K8055LibClass_ReadData, METH_VARARGS|METH_KEYWORDS, 0}, {"WriteData", (PyCFunction)__pyx_f_10pyk8055lib_13K8055LibClass_WriteData, METH_VARARGS|METH_KEYWORDS, 0}, {"WriteasString", (PyCFunction)__pyx_f_10pyk8055lib_13K8055LibClass_WriteasString, METH_VARARGS|METH_KEYWORDS, 0}, {0, 0, 0, 0} }; static PyNumberMethods __pyx_tp_as_number_K8055LibClass = { 0, /*nb_add*/ 0, /*nb_subtract*/ 0, /*nb_multiply*/ 0, /*nb_divide*/ 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*/ 0, /*nb_coerce*/ 0, /*nb_int*/ 0, /*nb_long*/ 0, /*nb_float*/ 0, /*nb_oct*/ 0, /*nb_hex*/ 0, /*nb_inplace_add*/ 0, /*nb_inplace_subtract*/ 0, /*nb_inplace_multiply*/ 0, /*nb_inplace_divide*/ 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_TPFLAGS_DEFAULT & Py_TPFLAGS_HAVE_INDEX 0, /*nb_index*/ #endif }; static PySequenceMethods __pyx_tp_as_sequence_K8055LibClass = { 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_K8055LibClass = { 0, /*mp_length*/ 0, /*mp_subscript*/ 0, /*mp_ass_subscript*/ }; static PyBufferProcs __pyx_tp_as_buffer_K8055LibClass = { 0, /*bf_getreadbuffer*/ 0, /*bf_getwritebuffer*/ 0, /*bf_getsegcount*/ 0, /*bf_getcharbuffer*/ }; PyTypeObject __pyx_type_10pyk8055lib_K8055LibClass = { PyObject_HEAD_INIT(0) 0, /*ob_size*/ "pyk8055lib.K8055LibClass", /*tp_name*/ sizeof(struct __pyx_obj_10pyk8055lib_K8055LibClass), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_10pyk8055lib_K8055LibClass, /*tp_dealloc*/ 0, /*tp_print*/ 0, /*tp_getattr*/ 0, /*tp_setattr*/ 0, /*tp_compare*/ 0, /*tp_repr*/ &__pyx_tp_as_number_K8055LibClass, /*tp_as_number*/ &__pyx_tp_as_sequence_K8055LibClass, /*tp_as_sequence*/ &__pyx_tp_as_mapping_K8055LibClass, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ &__pyx_tp_as_buffer_K8055LibClass, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_BASETYPE, /*tp_flags*/ 0, /*tp_doc*/ 0, /*tp_traverse*/ 0, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_10pyk8055lib_K8055LibClass, /*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*/ __pyx_f_10pyk8055lib_13K8055LibClass___init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_10pyk8055lib_K8055LibClass, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ }; static struct PyMethodDef __pyx_methods[] = { {0, 0, 0, 0} }; static void __pyx_init_filenames(void); /*proto*/ PyMODINIT_FUNC initpyk8055lib(void); /*proto*/ PyMODINIT_FUNC initpyk8055lib(void) { PyObject *__pyx_1 = 0; __pyx_init_filenames(); __pyx_m = Py_InitModule4("pyk8055lib", __pyx_methods, 0, 0, PYTHON_API_VERSION); if (!__pyx_m) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;}; Py_INCREF(__pyx_m); __pyx_b = PyImport_AddModule("__builtin__"); if (!__pyx_b) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;}; if (PyObject_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;}; if (__Pyx_InitStrings(__pyx_string_tab) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;}; if (PyType_Ready(&__pyx_type_10pyk8055lib_K8055LibClass) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 22; goto __pyx_L1;} if (PyObject_SetAttrString(__pyx_m, "K8055LibClass", (PyObject *)&__pyx_type_10pyk8055lib_K8055LibClass) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 22; goto __pyx_L1;} __pyx_ptype_10pyk8055lib_K8055LibClass = &__pyx_type_10pyk8055lib_K8055LibClass; /* "G:/Projekte/svn_mynew/svnroot/os2/usb/k8055/pyk8055/pyk8055lib.pyx":1 */ __pyx_1 = __Pyx_Import(__pyx_n_re, 0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;} if (PyObject_SetAttr(__pyx_m, __pyx_n_re, __pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; /* "G:/Projekte/svn_mynew/svnroot/os2/usb/k8055/pyk8055/pyk8055lib.pyx":2 */ __pyx_1 = __Pyx_Import(__pyx_n_struct, 0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; goto __pyx_L1;} if (PyObject_SetAttr(__pyx_m, __pyx_n_struct, __pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; /* "G:/Projekte/svn_mynew/svnroot/os2/usb/k8055/pyk8055/pyk8055lib.pyx":73 */ return; __pyx_L1:; Py_XDECREF(__pyx_1); __Pyx_AddTraceback("pyk8055lib"); }
/* "/Local/Projects/D/Pyrex/Source/Tests/8/extinherit.pyx":15 */ __pyx_v_polly->__pyx_base.alive = 0; goto __pyx_L0; __pyx_L1: ; __Pyx_WriteUnraisable("extinherit.rest"); __pyx_L0: ; Py_DECREF(__pyx_v_fred); Py_DECREF(__pyx_v_spam); Py_DECREF((PyObject *)__pyx_v_polly); } static PyObject *__pyx_tp_new_10extinherit_Parrot(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_10extinherit_Parrot *p; PyObject *o = (*t->tp_alloc)(t, 0); if (!o) return 0; p = ((struct __pyx_obj_10extinherit_Parrot *)o); p->name = Py_None; Py_INCREF(Py_None); return o; } static void __pyx_tp_dealloc_10extinherit_Parrot(PyObject *o) { struct __pyx_obj_10extinherit_Parrot *p = (struct __pyx_obj_10extinherit_Parrot *)o; Py_XDECREF(p->name); (*o->ob_type->tp_free)(o); } static int __pyx_tp_traverse_10extinherit_Parrot(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_10extinherit_Parrot *p = (struct __pyx_obj_10extinherit_Parrot *)o; if (p->name) { e = (*v)(p->name, a); if (e) return e; } return 0; } static int __pyx_tp_clear_10extinherit_Parrot(PyObject *o) { struct __pyx_obj_10extinherit_Parrot *p = (struct __pyx_obj_10extinherit_Parrot *)o; PyObject *t; t = p->name; p->name = Py_None; Py_INCREF(Py_None); Py_XDECREF(t); return 0; } static struct PyMethodDef __pyx_methods_10extinherit_Parrot[] = { {0, 0, 0, 0} }; static PyNumberMethods __pyx_tp_as_number_Parrot = { 0, /*nb_add*/ 0, /*nb_subtract*/ 0, /*nb_multiply*/ 0, /*nb_divide*/ 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*/ 0, /*nb_coerce*/ 0, /*nb_int*/ 0, /*nb_long*/ 0, /*nb_float*/ 0, /*nb_oct*/ 0, /*nb_hex*/ 0, /*nb_inplace_add*/ 0, /*nb_inplace_subtract*/ 0, /*nb_inplace_multiply*/ 0, /*nb_inplace_divide*/ 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_TPFLAGS_DEFAULT & Py_TPFLAGS_HAVE_INDEX 0, /*nb_index*/ #endif }; static PySequenceMethods __pyx_tp_as_sequence_Parrot = { 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_Parrot = { 0, /*mp_length*/ 0, /*mp_subscript*/ 0, /*mp_ass_subscript*/ }; static PyBufferProcs __pyx_tp_as_buffer_Parrot = { 0, /*bf_getreadbuffer*/ 0, /*bf_getwritebuffer*/ 0, /*bf_getsegcount*/ 0, /*bf_getcharbuffer*/ }; PyTypeObject __pyx_type_10extinherit_Parrot = { PyObject_HEAD_INIT(0) 0, /*ob_size*/ "extinherit.Parrot", /*tp_name*/ sizeof(struct __pyx_obj_10extinherit_Parrot), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_10extinherit_Parrot, /*tp_dealloc*/ 0, /*tp_print*/ 0, /*tp_getattr*/ 0, /*tp_setattr*/ 0, /*tp_compare*/ 0, /*tp_repr*/ &__pyx_tp_as_number_Parrot, /*tp_as_number*/ &__pyx_tp_as_sequence_Parrot, /*tp_as_sequence*/ &__pyx_tp_as_mapping_Parrot, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ &__pyx_tp_as_buffer_Parrot, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_10extinherit_Parrot, /*tp_traverse*/ __pyx_tp_clear_10extinherit_Parrot, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_10extinherit_Parrot, /*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_10extinherit_Parrot, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ }; static PyObject *__pyx_tp_new_10extinherit_Norwegian(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_10extinherit_Norwegian *p; PyObject *o = __pyx_ptype_10extinherit_Parrot->tp_new(t, a, k); if (!o) return 0; p = ((struct __pyx_obj_10extinherit_Norwegian *)o); p->plumage_colour = Py_None; Py_INCREF(Py_None); return o; } static void __pyx_tp_dealloc_10extinherit_Norwegian(PyObject *o) { struct __pyx_obj_10extinherit_Norwegian *p = (struct __pyx_obj_10extinherit_Norwegian *)o; Py_XDECREF(p->plumage_colour); __pyx_ptype_10extinherit_Parrot->tp_dealloc(o); } static int __pyx_tp_traverse_10extinherit_Norwegian(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_10extinherit_Norwegian *p = (struct __pyx_obj_10extinherit_Norwegian *)o; traverseproc t; if ((t = __pyx_ptype_10extinherit_Parrot->tp_traverse)) { e = t(o, v, a); if (e) return e; } if (p->plumage_colour) { e = (*v)(p->plumage_colour, a); if (e) return e; } return 0; } static int __pyx_tp_clear_10extinherit_Norwegian(PyObject *o) { struct __pyx_obj_10extinherit_Norwegian *p = (struct __pyx_obj_10extinherit_Norwegian *)o; PyObject *t; inquiry c; if ((c = __pyx_ptype_10extinherit_Parrot->tp_clear)) { c(o); } t = p->plumage_colour; p->plumage_colour = Py_None; Py_INCREF(Py_None); Py_XDECREF(t); return 0; } static struct PyMethodDef __pyx_methods_10extinherit_Norwegian[] = { {0, 0, 0, 0} }; static PyNumberMethods __pyx_tp_as_number_Norwegian = { 0, /*nb_add*/ 0, /*nb_subtract*/ 0, /*nb_multiply*/ 0, /*nb_divide*/ 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*/ 0, /*nb_coerce*/ 0, /*nb_int*/ 0, /*nb_long*/ 0, /*nb_float*/ 0, /*nb_oct*/ 0, /*nb_hex*/ 0, /*nb_inplace_add*/ 0, /*nb_inplace_subtract*/ 0, /*nb_inplace_multiply*/ 0, /*nb_inplace_divide*/ 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_TPFLAGS_DEFAULT & Py_TPFLAGS_HAVE_INDEX 0, /*nb_index*/ #endif }; static PySequenceMethods __pyx_tp_as_sequence_Norwegian = { 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_Norwegian = { 0, /*mp_length*/ 0, /*mp_subscript*/ 0, /*mp_ass_subscript*/ }; static PyBufferProcs __pyx_tp_as_buffer_Norwegian = { 0, /*bf_getreadbuffer*/ 0, /*bf_getwritebuffer*/ 0, /*bf_getsegcount*/ 0, /*bf_getcharbuffer*/ }; PyTypeObject __pyx_type_10extinherit_Norwegian = { PyObject_HEAD_INIT(0) 0, /*ob_size*/ "extinherit.Norwegian", /*tp_name*/ sizeof(struct __pyx_obj_10extinherit_Norwegian), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_10extinherit_Norwegian, /*tp_dealloc*/ 0, /*tp_print*/ 0, /*tp_getattr*/ 0, /*tp_setattr*/ 0, /*tp_compare*/ 0, /*tp_repr*/ &__pyx_tp_as_number_Norwegian, /*tp_as_number*/ &__pyx_tp_as_sequence_Norwegian, /*tp_as_sequence*/ &__pyx_tp_as_mapping_Norwegian, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ &__pyx_tp_as_buffer_Norwegian, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_10extinherit_Norwegian, /*tp_traverse*/ __pyx_tp_clear_10extinherit_Norwegian, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_10extinherit_Norwegian, /*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_10extinherit_Norwegian, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ }; static struct PyMethodDef __pyx_methods[] = { {0, 0, 0, 0} }; static void __pyx_init_filenames(void); /*proto*/ PyMODINIT_FUNC initextinherit(void); /*proto*/ PyMODINIT_FUNC initextinherit(void) { __pyx_init_filenames(); __pyx_m = Py_InitModule4("extinherit", __pyx_methods, 0, 0, PYTHON_API_VERSION); if (!__pyx_m) { __pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1; }; Py_INCREF(__pyx_m); __pyx_b = PyImport_AddModule("__builtin__"); if (!__pyx_b) { __pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1; }; if (PyObject_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) { __pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1; }; if (__Pyx_InitStrings(__pyx_string_tab) < 0) { __pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1; }; __pyx_type_10extinherit_Parrot.tp_free = _PyObject_GC_Del; if (PyType_Ready(&__pyx_type_10extinherit_Parrot) < 0) { __pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1; } if (PyObject_SetAttrString(__pyx_m, "Parrot", (PyObject *)&__pyx_type_10extinherit_Parrot) < 0) { __pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1; } __pyx_ptype_10extinherit_Parrot = &__pyx_type_10extinherit_Parrot; __pyx_type_10extinherit_Norwegian.tp_base = __pyx_ptype_10extinherit_Parrot; __pyx_type_10extinherit_Norwegian.tp_free = _PyObject_GC_Del; if (PyType_Ready(&__pyx_type_10extinherit_Norwegian) < 0) { __pyx_filename = __pyx_f[0]; __pyx_lineno = 5; goto __pyx_L1; } if (PyObject_SetAttrString(__pyx_m, "Norwegian", (PyObject *)&__pyx_type_10extinherit_Norwegian) < 0) { __pyx_filename = __pyx_f[0]; __pyx_lineno = 5; goto __pyx_L1; } __pyx_ptype_10extinherit_Norwegian = &__pyx_type_10extinherit_Norwegian; /* "/Local/Projects/D/Pyrex/Source/Tests/8/extinherit.pyx":8 */ return; __pyx_L1: ; __Pyx_AddTraceback("extinherit"); }
/* Implementation of l_capi */ static float f(float __pyx_v_x) { float __pyx_r; __pyx_r = ((0.5 * __pyx_v_x) * __pyx_v_x); goto __pyx_L0; __pyx_r = 0; __pyx_L0:; return __pyx_r; } static struct PyMethodDef __pyx_methods[] = { {0, 0, 0, 0} }; static void __pyx_init_filenames(void); /*proto*/ PyMODINIT_FUNC initl_capi(void); /*proto*/ PyMODINIT_FUNC initl_capi(void) { __pyx_init_filenames(); __pyx_m = Py_InitModule4("l_capi", __pyx_methods, 0, 0, PYTHON_API_VERSION); if (!__pyx_m) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;}; Py_INCREF(__pyx_m); __pyx_b = PyImport_AddModule("__builtin__"); if (!__pyx_b) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;}; if (PyObject_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;}; if (__Pyx_InitStrings(__pyx_string_tab) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;}; if (__Pyx_ExportFunction("f", (void*)f, "float (float)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;} return; __pyx_L1:; __Pyx_AddTraceback("l_capi"); }
/* "/Users/james/projects/bx-python/code/bx-python-central/lib/bx/align/_core.pyx":13 * start = start + 1 * col = col + 1 * return col # <<<<<<<<<<<<<< */ __pyx_2 = PyInt_FromLong(__pyx_v_col); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 13; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_r = __pyx_2; __pyx_2 = 0; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; Py_XDECREF(__pyx_2); __Pyx_AddTraceback("bx.align._core.coord_to_col"); __pyx_r = NULL; __pyx_L0:; return __pyx_r; } static struct PyMethodDef __pyx_methods[] = { {"coord_to_col", (PyCFunction)__pyx_pf_2bx_5align_5_core_coord_to_col, METH_VARARGS|METH_KEYWORDS, 0}, {0, 0, 0, 0} }; static void __pyx_init_filenames(void); /*proto*/ #if PY_MAJOR_VERSION >= 3 static struct PyModuleDef __pyx_moduledef = { PyModuleDef_HEAD_INIT, "_core", __pyx_mdoc, /* 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_start, __pyx_k_start, sizeof(__pyx_k_start), 1, 1, 1}, {&__pyx_kp_text, __pyx_k_text, sizeof(__pyx_k_text), 1, 1, 1}, {&__pyx_kp_pos, __pyx_k_pos, sizeof(__pyx_k_pos), 1, 1, 1}, {0, 0, 0, 0, 0, 0} }; static int __Pyx_InitCachedBuiltins(void) { return 0; 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;}; return 0; __pyx_L1_error:; return -1; } #if PY_MAJOR_VERSION < 3 PyMODINIT_FUNC init_core(void); /*proto*/ PyMODINIT_FUNC init_core(void) #else PyMODINIT_FUNC PyInit__core(void); /*proto*/ PyMODINIT_FUNC PyInit__core(void) #endif { __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;} /*--- Library function declarations ---*/ __pyx_init_filenames(); /*--- 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;} /*--- Module creation code ---*/ #if PY_MAJOR_VERSION < 3 __pyx_m = Py_InitModule4("_core", __pyx_methods, __pyx_mdoc, 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_BUILTIN_MODULE_NAME); if (!__pyx_b) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}; if (PyObject_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 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;} __pyx_skip_dispatch = 0; /*--- Global init code ---*/ /*--- Function export code ---*/ /*--- Type init code ---*/ /*--- Type import code ---*/ /*--- Function import code ---*/ /*--- Execution code ---*/ /* "/Users/james/projects/bx-python/code/bx-python-central/lib/bx/align/_core.pyx":5 * """ * * def coord_to_col( int start, char * text, int pos ): # <<<<<<<<<<<<<< * cdef int col * col = 0 */ #if PY_MAJOR_VERSION < 3 return; #else return __pyx_m; #endif __pyx_L1_error:; __Pyx_AddTraceback("bx.align._core"); #if PY_MAJOR_VERSION >= 3 return NULL; #endif }
/* "/Users/baas/src/cgkit/pyrex/pyx/_pointcloud.pyx":131 */ __pyx_v_n += 1; } __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_2); Py_XDECREF(__pyx_3); __Pyx_AddTraceback("_pointcloud.writeDataPoints"); __pyx_r = 0; __pyx_L0:; return __pyx_r; } static struct PyMethodDef __pyx_methods[] = { {"readDataPoints", (PyCFunction)__pyx_f_11_pointcloud_readDataPoints, METH_VARARGS|METH_KEYWORDS, __pyx_doc_11_pointcloud_readDataPoints}, {"writeDataPoints", (PyCFunction)__pyx_f_11_pointcloud_writeDataPoints, METH_VARARGS|METH_KEYWORDS, __pyx_doc_11_pointcloud_writeDataPoints}, {0, 0, 0, 0} }; static void __pyx_init_filenames(void); /*proto*/ PyMODINIT_FUNC init_pointcloud(void); /*proto*/ PyMODINIT_FUNC init_pointcloud(void) { __pyx_init_filenames(); __pyx_m = Py_InitModule4("_pointcloud", __pyx_methods, __pyx_mdoc, 0, PYTHON_API_VERSION); if (!__pyx_m) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 36; goto __pyx_L1;}; Py_INCREF(__pyx_m); __pyx_b = PyImport_AddModule("__builtin__"); if (!__pyx_b) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 36; goto __pyx_L1;}; if (PyObject_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 36; goto __pyx_L1;}; if (__Pyx_InitStrings(__pyx_string_tab) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 36; goto __pyx_L1;}; /* "/Users/baas/src/cgkit/pyrex/pyx/_pointcloud.pyx":90 */ return; __pyx_L1:; __Pyx_AddTraceback("_pointcloud"); }
/*else*/ { __pyx_6 = PyTuple_New(3); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 64; goto __pyx_L1;} Py_INCREF(__pyx_v_d2); PyTuple_SET_ITEM(__pyx_6, 0, __pyx_v_d2); Py_INCREF(__pyx_v_p21); PyTuple_SET_ITEM(__pyx_6, 1, __pyx_v_p21); Py_INCREF(__pyx_v_p22); PyTuple_SET_ITEM(__pyx_6, 2, __pyx_v_p22); __pyx_r = __pyx_6; __pyx_6 = 0; goto __pyx_L0; } __pyx_L16:; } __pyx_L2:; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_3); Py_XDECREF(__pyx_4); Py_XDECREF(__pyx_5); Py_XDECREF(__pyx_6); Py_XDECREF(__pyx_7); Py_XDECREF(__pyx_8); Py_XDECREF(__pyx_9); Py_XDECREF(__pyx_10); __Pyx_AddTraceback("closestpair.closest_pair"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_min_p1); Py_DECREF(__pyx_v_min_p2); Py_DECREF(__pyx_v_i); Py_DECREF(__pyx_v_point); Py_DECREF(__pyx_v_point2); Py_DECREF(__pyx_v_d); Py_DECREF(__pyx_v_split); Py_DECREF(__pyx_v_d1); Py_DECREF(__pyx_v_p11); Py_DECREF(__pyx_v_p12); Py_DECREF(__pyx_v_d2); Py_DECREF(__pyx_v_p21); Py_DECREF(__pyx_v_p22); Py_DECREF(__pyx_v_points_in_strip); Py_DECREF(__pyx_v_split_at); Py_DECREF(__pyx_v_max_i); Py_DECREF(__pyx_v_sd); Py_DECREF(__pyx_v_points); return __pyx_r; } static __Pyx_InternTabEntry __pyx_intern_tab[] = { {&__pyx_n_append, "append"}, {&__pyx_n_closest_pair, "closest_pair"}, {&__pyx_n_distance, "distance"}, {&__pyx_n_min, "min"}, {&__pyx_n_sort, "sort"}, {0, 0} }; static __Pyx_StringTabEntry __pyx_string_tab[] = { {&__pyx_k1p, __pyx_k1, sizeof(__pyx_k1)}, {0, 0, 0} }; static struct PyMethodDef __pyx_methods[] = { {"distance", (PyCFunction)__pyx_f_11closestpair_distance, METH_VARARGS|METH_KEYWORDS, __pyx_doc_11closestpair_distance}, {"closest_pair", (PyCFunction)__pyx_f_11closestpair_closest_pair, METH_VARARGS|METH_KEYWORDS, __pyx_doc_11closestpair_closest_pair}, {0, 0, 0, 0} }; static void __pyx_init_filenames(void); /*proto*/ PyMODINIT_FUNC initclosestpair(void); /*proto*/ PyMODINIT_FUNC initclosestpair(void) { __pyx_init_filenames(); __pyx_m = Py_InitModule4("closestpair", __pyx_methods, 0, 0, PYTHON_API_VERSION); if (!__pyx_m) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; goto __pyx_L1;}; Py_INCREF(__pyx_m); __pyx_b = PyImport_AddModule("__builtin__"); if (!__pyx_b) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; goto __pyx_L1;}; if (PyObject_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; goto __pyx_L1;}; if (__Pyx_InternStrings(__pyx_intern_tab) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; goto __pyx_L1;}; if (__Pyx_InitStrings(__pyx_string_tab) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; goto __pyx_L1;}; /* "/home/andrew/Programs/cluster/clusterer/closestpair.pyx":6 */ return; __pyx_L1:; __Pyx_AddTraceback("closestpair"); }
/* Implementation of ishimoto1 */ static PyObject *__pyx_f_9ishimoto1_1A___getitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_x); /*proto*/ static PyObject *__pyx_f_9ishimoto1_1A___getitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_x) { PyObject *__pyx_r; Py_INCREF(__pyx_v_self); Py_INCREF(__pyx_v_x); __pyx_r = Py_None; Py_INCREF(Py_None); Py_DECREF(__pyx_v_self); Py_DECREF(__pyx_v_x); return __pyx_r; } static PyObject *__pyx_tp_new_9ishimoto1_A(PyTypeObject *t, PyObject *a, PyObject *k) { PyObject *o = (*t->tp_alloc)(t, 0); if (!o) return 0; return o; } static void __pyx_tp_dealloc_9ishimoto1_A(PyObject *o) { (*o->ob_type->tp_free)(o); } static PyObject *__pyx_sq_item_9ishimoto1_A(PyObject *o, Py_ssize_t i) { PyObject *r; PyObject *x = PyInt_FromSsize_t(i); if(!x) return 0; r = o->ob_type->tp_as_mapping->mp_subscript(o, x); Py_DECREF(x); return r; } static struct PyMethodDef __pyx_methods_9ishimoto1_A[] = { {0, 0, 0, 0} }; static PyNumberMethods __pyx_tp_as_number_A = { 0, /*nb_add*/ 0, /*nb_subtract*/ 0, /*nb_multiply*/ 0, /*nb_divide*/ 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*/ 0, /*nb_coerce*/ 0, /*nb_int*/ 0, /*nb_long*/ 0, /*nb_float*/ 0, /*nb_oct*/ 0, /*nb_hex*/ 0, /*nb_inplace_add*/ 0, /*nb_inplace_subtract*/ 0, /*nb_inplace_multiply*/ 0, /*nb_inplace_divide*/ 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_TPFLAGS_DEFAULT & Py_TPFLAGS_HAVE_INDEX 0, /*nb_index*/ #endif }; static PySequenceMethods __pyx_tp_as_sequence_A = { 0, /*sq_length*/ 0, /*sq_concat*/ 0, /*sq_repeat*/ __pyx_sq_item_9ishimoto1_A, /*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_A = { 0, /*mp_length*/ __pyx_f_9ishimoto1_1A___getitem__, /*mp_subscript*/ 0, /*mp_ass_subscript*/ }; static PyBufferProcs __pyx_tp_as_buffer_A = { 0, /*bf_getreadbuffer*/ 0, /*bf_getwritebuffer*/ 0, /*bf_getsegcount*/ 0, /*bf_getcharbuffer*/ }; PyTypeObject __pyx_type_9ishimoto1_A = { PyObject_HEAD_INIT(0) 0, /*ob_size*/ "ishimoto1.A", /*tp_name*/ sizeof(struct __pyx_obj_9ishimoto1_A), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_9ishimoto1_A, /*tp_dealloc*/ 0, /*tp_print*/ 0, /*tp_getattr*/ 0, /*tp_setattr*/ 0, /*tp_compare*/ 0, /*tp_repr*/ &__pyx_tp_as_number_A, /*tp_as_number*/ &__pyx_tp_as_sequence_A, /*tp_as_sequence*/ &__pyx_tp_as_mapping_A, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ &__pyx_tp_as_buffer_A, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_BASETYPE, /*tp_flags*/ 0, /*tp_doc*/ 0, /*tp_traverse*/ 0, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_9ishimoto1_A, /*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_9ishimoto1_A, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ }; static struct PyMethodDef __pyx_methods[] = { {0, 0, 0, 0} }; static void __pyx_init_filenames(void); /*proto*/ PyMODINIT_FUNC initishimoto1(void); /*proto*/ PyMODINIT_FUNC initishimoto1(void) { __pyx_init_filenames(); __pyx_m = Py_InitModule4("ishimoto1", __pyx_methods, 0, 0, PYTHON_API_VERSION); if (!__pyx_m) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;}; Py_INCREF(__pyx_m); __pyx_b = PyImport_AddModule("__builtin__"); if (!__pyx_b) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;}; if (PyObject_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;}; if (__Pyx_InitStrings(__pyx_string_tab) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;}; if (PyType_Ready(&__pyx_type_9ishimoto1_A) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;} if (PyObject_SetAttrString(__pyx_m, "A", (PyObject *)&__pyx_type_9ishimoto1_A) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;} __pyx_ptype_9ishimoto1_A = &__pyx_type_9ishimoto1_A; return; __pyx_L1:; __Pyx_AddTraceback("ishimoto1"); }
/* Implementation of dalcin2 */ static PyObject *__pyx_tp_new_7dalcin2_Foo(PyTypeObject *t, PyObject *a, PyObject *k) { PyObject *o = (*t->tp_alloc)(t, 0); if (!o) return 0; return o; } static void __pyx_tp_dealloc_7dalcin2_Foo(PyObject *o) { (*o->ob_type->tp_free)(o); } static struct PyMethodDef __pyx_methods_7dalcin2_Foo[] = { {0, 0, 0, 0} }; static PyNumberMethods __pyx_tp_as_number_Foo = { 0, /*nb_add*/ 0, /*nb_subtract*/ 0, /*nb_multiply*/ 0, /*nb_divide*/ 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*/ 0, /*nb_coerce*/ 0, /*nb_int*/ 0, /*nb_long*/ 0, /*nb_float*/ 0, /*nb_oct*/ 0, /*nb_hex*/ 0, /*nb_inplace_add*/ 0, /*nb_inplace_subtract*/ 0, /*nb_inplace_multiply*/ 0, /*nb_inplace_divide*/ 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_TPFLAGS_DEFAULT & Py_TPFLAGS_HAVE_INDEX 0, /*nb_index*/ #endif }; static PySequenceMethods __pyx_tp_as_sequence_Foo = { 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_Foo = { 0, /*mp_length*/ 0, /*mp_subscript*/ 0, /*mp_ass_subscript*/ }; static PyBufferProcs __pyx_tp_as_buffer_Foo = { 0, /*bf_getreadbuffer*/ 0, /*bf_getwritebuffer*/ 0, /*bf_getsegcount*/ 0, /*bf_getcharbuffer*/ }; DL_EXPORT(PyTypeObject) PyFoo_Type = { PyObject_HEAD_INIT(0) 0, /*ob_size*/ "dalcin2.Foo", /*tp_name*/ sizeof(PyFooObject), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_7dalcin2_Foo, /*tp_dealloc*/ 0, /*tp_print*/ 0, /*tp_getattr*/ 0, /*tp_setattr*/ 0, /*tp_compare*/ 0, /*tp_repr*/ &__pyx_tp_as_number_Foo, /*tp_as_number*/ &__pyx_tp_as_sequence_Foo, /*tp_as_sequence*/ &__pyx_tp_as_mapping_Foo, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ &__pyx_tp_as_buffer_Foo, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_BASETYPE, /*tp_flags*/ 0, /*tp_doc*/ 0, /*tp_traverse*/ 0, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_7dalcin2_Foo, /*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_7dalcin2_Foo, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ }; static struct PyMethodDef __pyx_methods[] = { {0, 0, 0, 0} }; static void __pyx_init_filenames(void); /*proto*/ PyMODINIT_FUNC initdalcin2(void); /*proto*/ PyMODINIT_FUNC initdalcin2(void) { __pyx_init_filenames(); __pyx_m = Py_InitModule4("dalcin2", __pyx_methods, 0, 0, PYTHON_API_VERSION); if (!__pyx_m) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;}; Py_INCREF(__pyx_m); __pyx_b = PyImport_AddModule("__builtin__"); if (!__pyx_b) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;}; if (PyObject_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;}; if (__Pyx_InitStrings(__pyx_string_tab) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;}; if (PyType_Ready(&PyFoo_Type) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;} if (PyObject_SetAttrString(__pyx_m, "Foo", (PyObject *)&PyFoo_Type) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;} __pyx_ptype_7dalcin2_Foo = &PyFoo_Type; return; __pyx_L1:; __Pyx_AddTraceback("dalcin2"); }
/* Implementation of exttypenogc */ static PyObject *__pyx_tp_new_11exttypenogc_Spam(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_11exttypenogc_Spam *p; PyObject *o = (*t->tp_alloc)(t, 0); if (!o) return 0; p = ((struct __pyx_obj_11exttypenogc_Spam *)o); p->eggs = Py_None; Py_INCREF(Py_None); return o; } static void __pyx_tp_dealloc_11exttypenogc_Spam(PyObject *o) { struct __pyx_obj_11exttypenogc_Spam *p = (struct __pyx_obj_11exttypenogc_Spam *)o; Py_XDECREF(p->eggs); (*o->ob_type->tp_free)(o); } static int __pyx_tp_traverse_11exttypenogc_Spam(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_11exttypenogc_Spam *p = (struct __pyx_obj_11exttypenogc_Spam *)o; if (p->eggs) { e = (*v)(p->eggs, a); if (e) return e; } return 0; } static int __pyx_tp_clear_11exttypenogc_Spam(PyObject *o) { struct __pyx_obj_11exttypenogc_Spam *p = (struct __pyx_obj_11exttypenogc_Spam *)o; PyObject *t; t = p->eggs; p->eggs = Py_None; Py_INCREF(Py_None); Py_XDECREF(t); return 0; } static struct PyMethodDef __pyx_methods_11exttypenogc_Spam[] = { {0, 0, 0, 0} }; static PyNumberMethods __pyx_tp_as_number_Spam = { 0, /*nb_add*/ 0, /*nb_subtract*/ 0, /*nb_multiply*/ 0, /*nb_divide*/ 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*/ 0, /*nb_coerce*/ 0, /*nb_int*/ 0, /*nb_long*/ 0, /*nb_float*/ 0, /*nb_oct*/ 0, /*nb_hex*/ 0, /*nb_inplace_add*/ 0, /*nb_inplace_subtract*/ 0, /*nb_inplace_multiply*/ 0, /*nb_inplace_divide*/ 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_TPFLAGS_DEFAULT & Py_TPFLAGS_HAVE_INDEX 0, /*nb_index*/ #endif }; static PySequenceMethods __pyx_tp_as_sequence_Spam = { 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_Spam = { 0, /*mp_length*/ 0, /*mp_subscript*/ 0, /*mp_ass_subscript*/ }; static PyBufferProcs __pyx_tp_as_buffer_Spam = { 0, /*bf_getreadbuffer*/ 0, /*bf_getwritebuffer*/ 0, /*bf_getsegcount*/ 0, /*bf_getcharbuffer*/ }; PyTypeObject __pyx_type_11exttypenogc_Spam = { PyObject_HEAD_INIT(0) 0, /*ob_size*/ "exttypenogc.Spam", /*tp_name*/ sizeof(struct __pyx_obj_11exttypenogc_Spam), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_11exttypenogc_Spam, /*tp_dealloc*/ 0, /*tp_print*/ 0, /*tp_getattr*/ 0, /*tp_setattr*/ 0, /*tp_compare*/ 0, /*tp_repr*/ &__pyx_tp_as_number_Spam, /*tp_as_number*/ &__pyx_tp_as_sequence_Spam, /*tp_as_sequence*/ &__pyx_tp_as_mapping_Spam, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ &__pyx_tp_as_buffer_Spam, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_BASETYPE, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_11exttypenogc_Spam, /*tp_traverse*/ __pyx_tp_clear_11exttypenogc_Spam, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_11exttypenogc_Spam, /*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_11exttypenogc_Spam, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ }; static struct PyMethodDef __pyx_methods[] = { {0, 0, 0, 0} }; static void __pyx_init_filenames(void); /*proto*/ PyMODINIT_FUNC initexttypenogc(void); /*proto*/ PyMODINIT_FUNC initexttypenogc(void) { __pyx_init_filenames(); __pyx_m = Py_InitModule4("exttypenogc", __pyx_methods, 0, 0, PYTHON_API_VERSION); if (!__pyx_m) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;}; Py_INCREF(__pyx_m); __pyx_b = PyImport_AddModule("__builtin__"); if (!__pyx_b) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;}; if (PyObject_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;}; if (__Pyx_InitStrings(__pyx_string_tab) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;}; __pyx_type_11exttypenogc_Spam.tp_free = _PyObject_GC_Del; if (PyType_Ready(&__pyx_type_11exttypenogc_Spam) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;} if (PyObject_SetAttrString(__pyx_m, "Spam", (PyObject *)&__pyx_type_11exttypenogc_Spam) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;} __pyx_ptype_11exttypenogc_Spam = &__pyx_type_11exttypenogc_Spam; return; __pyx_L1:; __Pyx_AddTraceback("exttypenogc"); }
/* Implementation of withgil */ static void __pyx_f_7withgil_f(void) { PyObject *__pyx_v_x; PyObject *__pyx_1 = 0; PyGILState_STATE _save = PyGILState_Ensure(); __pyx_v_x = Py_None; Py_INCREF(Py_None); __pyx_1 = PyInt_FromLong(42); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; goto __pyx_L1;} Py_DECREF(__pyx_v_x); __pyx_v_x = __pyx_1; __pyx_1 = 0; goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); __Pyx_WriteUnraisable("withgil.f"); __pyx_L0:; Py_DECREF(__pyx_v_x); PyGILState_Release(_save); } static PyObject *__pyx_f_7withgil_g(PyObject *__pyx_v_x) { PyObject *__pyx_r; PyGILState_STATE _save = PyGILState_Ensure(); Py_INCREF(__pyx_v_x); __pyx_r = Py_None; Py_INCREF(Py_None); Py_DECREF(__pyx_v_x); PyGILState_Release(_save); return __pyx_r; } static struct PyMethodDef __pyx_methods[] = { {0, 0, 0, 0} }; static void __pyx_init_filenames(void); /*proto*/ PyMODINIT_FUNC initwithgil(void); /*proto*/ PyMODINIT_FUNC initwithgil(void) { #if PY_VERSION_HEX < 0x02040000 && defined(WITH_THREAD) PyEval_InitThreads(); #endif __pyx_init_filenames(); __pyx_m = Py_InitModule4("withgil", __pyx_methods, 0, 0, PYTHON_API_VERSION); if (!__pyx_m) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;}; Py_INCREF(__pyx_m); __pyx_b = PyImport_AddModule("__builtin__"); if (!__pyx_b) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;}; if (PyObject_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;}; if (__Pyx_InitStrings(__pyx_string_tab) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;}; /* "/Local/Projects/D/Pyrex/Source/Tests/9/withgil.pyx":4 */ return; __pyx_L1:; __Pyx_AddTraceback("withgil"); }
/* "/Local/Projects/D/Pyrex/Source/Tests/Bugs/szabo/szabo1.pyx":8 */ __pyx_1 = chunk_get_ptr(); Py_INCREF(((PyObject *)__pyx_1)); Py_DECREF(((PyObject *)__pyx_v_parent)); __pyx_v_parent = ((struct __pyx_obj_9martinez1_CoordSyst *)__pyx_1); __pyx_r = 0; Py_DECREF(__pyx_v_parent); return __pyx_r; } static PyObject *__pyx_tp_new_9martinez1_CoordSyst(PyTypeObject *t, PyObject *a, PyObject *k) { PyObject *o = (*t->tp_alloc)(t, 0); if (!o) return 0; return o; } static void __pyx_tp_dealloc_9martinez1_CoordSyst(PyObject *o) { (*o->ob_type->tp_free)(o); } static struct PyMethodDef __pyx_methods_9martinez1_CoordSyst[] = { {0, 0, 0, 0} }; static PyNumberMethods __pyx_tp_as_number_CoordSyst = { 0, /*nb_add*/ 0, /*nb_subtract*/ 0, /*nb_multiply*/ 0, /*nb_divide*/ 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*/ 0, /*nb_coerce*/ 0, /*nb_int*/ 0, /*nb_long*/ 0, /*nb_float*/ 0, /*nb_oct*/ 0, /*nb_hex*/ 0, /*nb_inplace_add*/ 0, /*nb_inplace_subtract*/ 0, /*nb_inplace_multiply*/ 0, /*nb_inplace_divide*/ 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_TPFLAGS_DEFAULT & Py_TPFLAGS_HAVE_INDEX 0, /*nb_index*/ #endif }; static PySequenceMethods __pyx_tp_as_sequence_CoordSyst = { 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_CoordSyst = { 0, /*mp_length*/ 0, /*mp_subscript*/ 0, /*mp_ass_subscript*/ }; static PyBufferProcs __pyx_tp_as_buffer_CoordSyst = { 0, /*bf_getreadbuffer*/ 0, /*bf_getwritebuffer*/ 0, /*bf_getsegcount*/ 0, /*bf_getcharbuffer*/ }; PyTypeObject __pyx_type_9martinez1_CoordSyst = { PyObject_HEAD_INIT(0) 0, /*ob_size*/ "martinez1.CoordSyst", /*tp_name*/ sizeof(struct __pyx_obj_9martinez1_CoordSyst), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_9martinez1_CoordSyst, /*tp_dealloc*/ 0, /*tp_print*/ 0, /*tp_getattr*/ 0, /*tp_setattr*/ 0, /*tp_compare*/ 0, /*tp_repr*/ &__pyx_tp_as_number_CoordSyst, /*tp_as_number*/ &__pyx_tp_as_sequence_CoordSyst, /*tp_as_sequence*/ &__pyx_tp_as_mapping_CoordSyst, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ &__pyx_tp_as_buffer_CoordSyst, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_BASETYPE, /*tp_flags*/ 0, /*tp_doc*/ 0, /*tp_traverse*/ 0, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_9martinez1_CoordSyst, /*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_9martinez1_CoordSyst, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ }; static struct PyMethodDef __pyx_methods[] = { {0, 0, 0, 0} }; static void __pyx_init_filenames(void); /*proto*/ PyMODINIT_FUNC initmartinez1(void); /*proto*/ PyMODINIT_FUNC initmartinez1(void) { __pyx_init_filenames(); __pyx_m = Py_InitModule4("martinez1", __pyx_methods, 0, 0, PYTHON_API_VERSION); if (!__pyx_m) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;}; Py_INCREF(__pyx_m); __pyx_b = PyImport_AddModule("__builtin__"); if (!__pyx_b) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;}; if (PyObject_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;}; if (__Pyx_InitStrings(__pyx_string_tab) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;}; if (PyType_Ready(&__pyx_type_9martinez1_CoordSyst) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;} if (PyObject_SetAttrString(__pyx_m, "CoordSyst", (PyObject *)&__pyx_type_9martinez1_CoordSyst) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;} __pyx_ptype_9martinez1_CoordSyst = &__pyx_type_9martinez1_CoordSyst; /* "/Local/Projects/D/Pyrex/Source/Tests/Bugs/szabo/martinez1.pyx":6 */ return; __pyx_L1:; __Pyx_AddTraceback("martinez1"); }
/* Implementation of foo */ static PyObject *__pyx_tp_new_3foo_Foo(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_3foo_Foo *p; PyObject *o = (*t->tp_alloc)(t, 0); if (!o) return 0; p = ((struct __pyx_obj_3foo_Foo *)o); p->name = Py_None; Py_INCREF(Py_None); p->blarg = ((struct __pyx_obj_5blarg_Blarg *)Py_None); Py_INCREF(Py_None); return o; } static void __pyx_tp_dealloc_3foo_Foo(PyObject *o) { struct __pyx_obj_3foo_Foo *p = (struct __pyx_obj_3foo_Foo *)o; Py_XDECREF(p->name); Py_XDECREF(((PyObject *)p->blarg)); (*o->ob_type->tp_free)(o); } static int __pyx_tp_traverse_3foo_Foo(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_3foo_Foo *p = (struct __pyx_obj_3foo_Foo *)o; if (p->name) { e = (*v)(p->name, a); if (e) return e; } if (p->blarg) { e = (*v)(((PyObject*)p->blarg), a); if (e) return e; } return 0; } static int __pyx_tp_clear_3foo_Foo(PyObject *o) { struct __pyx_obj_3foo_Foo *p = (struct __pyx_obj_3foo_Foo *)o; PyObject *t; t = p->name; p->name = Py_None; Py_INCREF(Py_None); Py_XDECREF(t); t = ((PyObject *)p->blarg); p->blarg = ((struct __pyx_obj_5blarg_Blarg *)Py_None); Py_INCREF(Py_None); Py_XDECREF(t); return 0; } static struct PyMethodDef __pyx_methods_3foo_Foo[] = { {0, 0, 0, 0} }; static PyNumberMethods __pyx_tp_as_number_Foo = { 0, /*nb_add*/ 0, /*nb_subtract*/ 0, /*nb_multiply*/ 0, /*nb_divide*/ 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*/ 0, /*nb_coerce*/ 0, /*nb_int*/ 0, /*nb_long*/ 0, /*nb_float*/ 0, /*nb_oct*/ 0, /*nb_hex*/ 0, /*nb_inplace_add*/ 0, /*nb_inplace_subtract*/ 0, /*nb_inplace_multiply*/ 0, /*nb_inplace_divide*/ 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_TPFLAGS_DEFAULT & Py_TPFLAGS_HAVE_INDEX 0, /*nb_index*/ #endif }; static PySequenceMethods __pyx_tp_as_sequence_Foo = { 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_Foo = { 0, /*mp_length*/ 0, /*mp_subscript*/ 0, /*mp_ass_subscript*/ }; static PyBufferProcs __pyx_tp_as_buffer_Foo = { 0, /*bf_getreadbuffer*/ 0, /*bf_getwritebuffer*/ 0, /*bf_getsegcount*/ 0, /*bf_getcharbuffer*/ }; PyTypeObject __pyx_type_3foo_Foo = { PyObject_HEAD_INIT(0) 0, /*ob_size*/ "foo.Foo", /*tp_name*/ sizeof(struct __pyx_obj_3foo_Foo), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_3foo_Foo, /*tp_dealloc*/ 0, /*tp_print*/ 0, /*tp_getattr*/ 0, /*tp_setattr*/ 0, /*tp_compare*/ 0, /*tp_repr*/ &__pyx_tp_as_number_Foo, /*tp_as_number*/ &__pyx_tp_as_sequence_Foo, /*tp_as_sequence*/ &__pyx_tp_as_mapping_Foo, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ &__pyx_tp_as_buffer_Foo, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_3foo_Foo, /*tp_traverse*/ __pyx_tp_clear_3foo_Foo, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_3foo_Foo, /*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_3foo_Foo, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ }; static struct PyMethodDef __pyx_methods[] = { {0, 0, 0, 0} }; static void __pyx_init_filenames(void); /*proto*/ PyMODINIT_FUNC initfoo(void); /*proto*/ PyMODINIT_FUNC initfoo(void) { __pyx_init_filenames(); __pyx_m = Py_InitModule4("foo", __pyx_methods, 0, 0, PYTHON_API_VERSION); if (!__pyx_m) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;}; Py_INCREF(__pyx_m); __pyx_b = PyImport_AddModule("__builtin__"); if (!__pyx_b) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;}; if (PyObject_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;}; if (__Pyx_InitStrings(__pyx_string_tab) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;}; __pyx_type_3foo_Foo.tp_free = _PyObject_GC_Del; if (PyType_Ready(&__pyx_type_3foo_Foo) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;} if (PyObject_SetAttrString(__pyx_m, "Foo", (PyObject *)&__pyx_type_3foo_Foo) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;} __pyx_ptype_3foo_Foo = &__pyx_type_3foo_Foo; __pyx_ptype_5blarg_Blarg = __Pyx_ImportType("blarg", "Blarg", sizeof(struct __pyx_obj_5blarg_Blarg)); if (!__pyx_ptype_5blarg_Blarg) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 6; goto __pyx_L1;} return; __pyx_L1:; __Pyx_AddTraceback("foo"); }
/* Implementation of concatcstrings */ static struct PyMethodDef __pyx_methods[] = { {0, 0, 0, 0} }; static void __pyx_init_filenames(void); /*proto*/ PyMODINIT_FUNC initconcatcstrings(void); /*proto*/ PyMODINIT_FUNC initconcatcstrings(void) { PyObject *__pyx_1 = 0; __pyx_init_filenames(); __pyx_m = Py_InitModule4("concatcstrings", __pyx_methods, 0, 0, PYTHON_API_VERSION); if (!__pyx_m) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;}; Py_INCREF(__pyx_m); __pyx_b = PyImport_AddModule("__builtin__"); if (!__pyx_b) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;}; if (PyObject_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;}; if (__Pyx_InitStrings(__pyx_string_tab) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;}; __pyx_1 = PyNumber_Add(__pyx_k1p, __pyx_k2p); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;} if (PyObject_SetAttr(__pyx_m, __pyx_n_spam, __pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; return; __pyx_L1:; Py_XDECREF(__pyx_1); __Pyx_AddTraceback("concatcstrings"); }
/* Implementation of vector */ static PyObject *__pyx_tp_new_6vector_Vector(PyTypeObject *t, PyObject *a, PyObject *k) { PyObject *o = (*t->tp_alloc)(t, 0); if (!o) return 0; return o; } static void __pyx_tp_dealloc_6vector_Vector(PyObject *o) { (*o->ob_type->tp_free)(o); } static struct PyMethodDef __pyx_methods_6vector_Vector[] = { {0, 0, 0, 0} }; static PyNumberMethods __pyx_tp_as_number_Vector = { 0, /*nb_add*/ 0, /*nb_subtract*/ 0, /*nb_multiply*/ 0, /*nb_divide*/ 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*/ 0, /*nb_coerce*/ 0, /*nb_int*/ 0, /*nb_long*/ 0, /*nb_float*/ 0, /*nb_oct*/ 0, /*nb_hex*/ 0, /*nb_inplace_add*/ 0, /*nb_inplace_subtract*/ 0, /*nb_inplace_multiply*/ 0, /*nb_inplace_divide*/ 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_TPFLAGS_DEFAULT & Py_TPFLAGS_HAVE_INDEX 0, /*nb_index*/ #endif }; static PySequenceMethods __pyx_tp_as_sequence_Vector = { 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_Vector = { 0, /*mp_length*/ 0, /*mp_subscript*/ 0, /*mp_ass_subscript*/ }; static PyBufferProcs __pyx_tp_as_buffer_Vector = { 0, /*bf_getreadbuffer*/ 0, /*bf_getwritebuffer*/ 0, /*bf_getsegcount*/ 0, /*bf_getcharbuffer*/ }; PyTypeObject __pyx_type_6vector_Vector = { PyObject_HEAD_INIT(0) 0, /*ob_size*/ "vector.Vector", /*tp_name*/ sizeof(struct __pyx_obj_6vector_Vector), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_6vector_Vector, /*tp_dealloc*/ 0, /*tp_print*/ 0, /*tp_getattr*/ 0, /*tp_setattr*/ 0, /*tp_compare*/ 0, /*tp_repr*/ &__pyx_tp_as_number_Vector, /*tp_as_number*/ &__pyx_tp_as_sequence_Vector, /*tp_as_sequence*/ &__pyx_tp_as_mapping_Vector, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ &__pyx_tp_as_buffer_Vector, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_BASETYPE, /*tp_flags*/ 0, /*tp_doc*/ 0, /*tp_traverse*/ 0, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_6vector_Vector, /*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_6vector_Vector, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ }; static struct PyMethodDef __pyx_methods[] = { {0, 0, 0, 0} }; static void __pyx_init_filenames(void); /*proto*/ PyMODINIT_FUNC initvector(void); /*proto*/ PyMODINIT_FUNC initvector(void) { __pyx_init_filenames(); __pyx_m = Py_InitModule4("vector", __pyx_methods, 0, 0, PYTHON_API_VERSION); if (!__pyx_m) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;}; Py_INCREF(__pyx_m); __pyx_b = PyImport_AddModule("__builtin__"); if (!__pyx_b) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;}; if (PyObject_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;}; if (__Pyx_InitStrings(__pyx_string_tab) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;}; if (PyType_Ready(&__pyx_type_6vector_Vector) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 1; goto __pyx_L1;} if (PyObject_SetAttrString(__pyx_m, "Vector", (PyObject *)&__pyx_type_6vector_Vector) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 1; goto __pyx_L1;} __pyx_ptype_6vector_Vector = &__pyx_type_6vector_Vector; __pyx_ptype_6matrix_Matrix = __Pyx_ImportType("matrix", "Matrix", sizeof(struct __pyx_obj_6matrix_Matrix)); if (!__pyx_ptype_6matrix_Matrix) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 1; goto __pyx_L1;} /* "/Local/Projects/D/Pyrex/Source/Tests/Bugs/wyatt/vector.pyx":1 */ return; __pyx_L1:; __Pyx_AddTraceback("vector"); }
/* Implementation of specmethextarg */ static PyObject *__pyx_f_14specmethextarg_4Spam___iadd__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/ static PyObject *__pyx_f_14specmethextarg_4Spam___iadd__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) { PyObject *__pyx_r; Py_INCREF(__pyx_v_self); Py_INCREF(__pyx_v_other); if (!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_other), __pyx_ptype_14specmethextarg_Spam, 1, "other")) { __pyx_filename = __pyx_f[0]; __pyx_lineno = 4; goto __pyx_L1; } ((struct __pyx_obj_14specmethextarg_Spam *)__pyx_v_self)->eggs = (((struct __pyx_obj_14specmethextarg_Spam *)__pyx_v_self)->eggs + ((struct __pyx_obj_14specmethextarg_Spam *)__pyx_v_other)->eggs); __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1: ; __Pyx_AddTraceback("specmethextarg.Spam.__iadd__"); __pyx_r = 0; __pyx_L0: ; Py_DECREF(__pyx_v_self); Py_DECREF(__pyx_v_other); return __pyx_r; } static PyObject *__pyx_tp_new_14specmethextarg_Spam(PyTypeObject *t, PyObject *a, PyObject *k) { PyObject *o = (*t->tp_alloc)(t, 0); if (!o) return 0; return o; } static void __pyx_tp_dealloc_14specmethextarg_Spam(PyObject *o) { (*o->ob_type->tp_free)(o); } static struct PyMethodDef __pyx_methods_14specmethextarg_Spam[] = { {0, 0, 0, 0} }; static PyNumberMethods __pyx_tp_as_number_Spam = { 0, /*nb_add*/ 0, /*nb_subtract*/ 0, /*nb_multiply*/ 0, /*nb_divide*/ 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*/ 0, /*nb_coerce*/ 0, /*nb_int*/ 0, /*nb_long*/ 0, /*nb_float*/ 0, /*nb_oct*/ 0, /*nb_hex*/ __pyx_f_14specmethextarg_4Spam___iadd__, /*nb_inplace_add*/ 0, /*nb_inplace_subtract*/ 0, /*nb_inplace_multiply*/ 0, /*nb_inplace_divide*/ 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_TPFLAGS_DEFAULT & Py_TPFLAGS_HAVE_INDEX 0, /*nb_index*/ #endif }; static PySequenceMethods __pyx_tp_as_sequence_Spam = { 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_Spam = { 0, /*mp_length*/ 0, /*mp_subscript*/ 0, /*mp_ass_subscript*/ }; static PyBufferProcs __pyx_tp_as_buffer_Spam = { 0, /*bf_getreadbuffer*/ 0, /*bf_getwritebuffer*/ 0, /*bf_getsegcount*/ 0, /*bf_getcharbuffer*/ }; PyTypeObject __pyx_type_14specmethextarg_Spam = { PyObject_HEAD_INIT(0) 0, /*ob_size*/ "specmethextarg.Spam", /*tp_name*/ sizeof(struct __pyx_obj_14specmethextarg_Spam), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_14specmethextarg_Spam, /*tp_dealloc*/ 0, /*tp_print*/ 0, /*tp_getattr*/ 0, /*tp_setattr*/ 0, /*tp_compare*/ 0, /*tp_repr*/ &__pyx_tp_as_number_Spam, /*tp_as_number*/ &__pyx_tp_as_sequence_Spam, /*tp_as_sequence*/ &__pyx_tp_as_mapping_Spam, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ &__pyx_tp_as_buffer_Spam, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_BASETYPE, /*tp_flags*/ 0, /*tp_doc*/ 0, /*tp_traverse*/ 0, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_14specmethextarg_Spam, /*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_14specmethextarg_Spam, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ }; static struct PyMethodDef __pyx_methods[] = { {0, 0, 0, 0} }; static void __pyx_init_filenames(void); /*proto*/ PyMODINIT_FUNC initspecmethextarg(void); /*proto*/ PyMODINIT_FUNC initspecmethextarg(void) { __pyx_init_filenames(); __pyx_m = Py_InitModule4("specmethextarg", __pyx_methods, 0, 0, PYTHON_API_VERSION); if (!__pyx_m) { __pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1; }; Py_INCREF(__pyx_m); __pyx_b = PyImport_AddModule("__builtin__"); if (!__pyx_b) { __pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1; }; if (PyObject_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) { __pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1; }; if (__Pyx_InitStrings(__pyx_string_tab) < 0) { __pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1; }; if (PyType_Ready(&__pyx_type_14specmethextarg_Spam) < 0) { __pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1; } if (PyObject_SetAttrString(__pyx_m, "Spam", (PyObject *)&__pyx_type_14specmethextarg_Spam) < 0) { __pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1; } __pyx_ptype_14specmethextarg_Spam = &__pyx_type_14specmethextarg_Spam; /* "/Local/Projects/D/Pyrex/Source/Tests/6/specmethextarg.pyx":4 */ return; __pyx_L1: ; __Pyx_AddTraceback("specmethextarg"); }
/* Implementation of ctypedefstruct */ static struct PyMethodDef __pyx_methods[] = { {0, 0, 0, 0} }; static void __pyx_init_filenames(void); /*proto*/ PyMODINIT_FUNC initctypedefstruct(void); /*proto*/ PyMODINIT_FUNC initctypedefstruct(void) { __pyx_init_filenames(); __pyx_m = Py_InitModule4("ctypedefstruct", __pyx_methods, 0, 0, PYTHON_API_VERSION); if (!__pyx_m) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;}; Py_INCREF(__pyx_m); __pyx_b = PyImport_AddModule("__builtin__"); if (!__pyx_b) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;}; if (PyObject_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;}; if (__Pyx_InitStrings(__pyx_string_tab) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;}; /* "/Local/Projects/D/Pyrex/Source/Tests/6/ctypedefstruct.pyx":7 */ __pyx_v_14ctypedefstruct_order1.spam = 7; /* "/Local/Projects/D/Pyrex/Source/Tests/6/ctypedefstruct.pyx":8 */ __pyx_v_14ctypedefstruct_order1.eggs = 2; return; __pyx_L1:; __Pyx_AddTraceback("ctypedefstruct"); }
/* Implementation of ewing3 */ static PyObject *__pyx_f_6ewing3_1C_f(struct __pyx_obj_6ewing3_C *__pyx_v_self) { PyObject *__pyx_r; Py_INCREF(__pyx_v_self); __pyx_r = Py_None; Py_INCREF(Py_None); Py_DECREF(__pyx_v_self); return __pyx_r; } static struct __pyx_vtabstruct_6ewing3_C __pyx_vtable_6ewing3_C; static PyObject *__pyx_tp_new_6ewing3_C(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_6ewing3_C *p; PyObject *o = (*t->tp_alloc)(t, 0); if (!o) return 0; p = ((struct __pyx_obj_6ewing3_C *)o); *(struct __pyx_vtabstruct_6ewing3_C **)&p->__pyx_vtab = __pyx_vtabptr_6ewing3_C; return o; } static void __pyx_tp_dealloc_6ewing3_C(PyObject *o) { (*o->ob_type->tp_free)(o); } static struct PyMethodDef __pyx_methods_6ewing3_C[] = { {0, 0, 0, 0} }; static PyNumberMethods __pyx_tp_as_number_C = { 0, /*nb_add*/ 0, /*nb_subtract*/ 0, /*nb_multiply*/ 0, /*nb_divide*/ 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*/ 0, /*nb_coerce*/ 0, /*nb_int*/ 0, /*nb_long*/ 0, /*nb_float*/ 0, /*nb_oct*/ 0, /*nb_hex*/ 0, /*nb_inplace_add*/ 0, /*nb_inplace_subtract*/ 0, /*nb_inplace_multiply*/ 0, /*nb_inplace_divide*/ 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_TPFLAGS_DEFAULT & Py_TPFLAGS_HAVE_INDEX 0, /*nb_index*/ #endif }; static PySequenceMethods __pyx_tp_as_sequence_C = { 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_C = { 0, /*mp_length*/ 0, /*mp_subscript*/ 0, /*mp_ass_subscript*/ }; static PyBufferProcs __pyx_tp_as_buffer_C = { 0, /*bf_getreadbuffer*/ 0, /*bf_getwritebuffer*/ 0, /*bf_getsegcount*/ 0, /*bf_getcharbuffer*/ }; PyTypeObject __pyx_type_6ewing3_C = { PyObject_HEAD_INIT(0) 0, /*ob_size*/ "ewing3.C", /*tp_name*/ sizeof(struct __pyx_obj_6ewing3_C), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_6ewing3_C, /*tp_dealloc*/ 0, /*tp_print*/ 0, /*tp_getattr*/ 0, /*tp_setattr*/ 0, /*tp_compare*/ 0, /*tp_repr*/ &__pyx_tp_as_number_C, /*tp_as_number*/ &__pyx_tp_as_sequence_C, /*tp_as_sequence*/ &__pyx_tp_as_mapping_C, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ &__pyx_tp_as_buffer_C, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_BASETYPE, /*tp_flags*/ 0, /*tp_doc*/ 0, /*tp_traverse*/ 0, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_6ewing3_C, /*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_6ewing3_C, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ }; static struct PyMethodDef __pyx_methods[] = { {0, 0, 0, 0} }; static void __pyx_init_filenames(void); /*proto*/ PyMODINIT_FUNC initewing3(void); /*proto*/ PyMODINIT_FUNC initewing3(void) { __pyx_init_filenames(); __pyx_m = Py_InitModule4("ewing3", __pyx_methods, 0, 0, PYTHON_API_VERSION); if (!__pyx_m) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;}; Py_INCREF(__pyx_m); __pyx_b = PyImport_AddModule("__builtin__"); if (!__pyx_b) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;}; if (PyObject_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;}; if (__Pyx_InitStrings(__pyx_string_tab) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;}; __pyx_vtabptr_6ewing3_C = &__pyx_vtable_6ewing3_C; *(void(**)(void))&__pyx_vtable_6ewing3_C.f = (void(*)(void))__pyx_f_6ewing3_1C_f; if (PyType_Ready(&__pyx_type_6ewing3_C) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;} if (__Pyx_SetVtable(__pyx_type_6ewing3_C.tp_dict, __pyx_vtabptr_6ewing3_C) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;} if (PyObject_SetAttrString(__pyx_m, "C", (PyObject *)&__pyx_type_6ewing3_C) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;} __pyx_ptype_6ewing3_C = &__pyx_type_6ewing3_C; return; __pyx_L1:; __Pyx_AddTraceback("ewing3"); }
/* Implementation of pkg.cimport */ static struct PyMethodDef __pyx_methods[] = { {0, 0, 0, 0} }; static void __pyx_init_filenames(void); /*proto*/ PyMODINIT_FUNC initcimport(void); /*proto*/ PyMODINIT_FUNC initcimport(void) { __pyx_init_filenames(); __pyx_m = Py_InitModule4("cimport", __pyx_methods, 0, 0, PYTHON_API_VERSION); if (!__pyx_m) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;}; Py_INCREF(__pyx_m); __pyx_b = PyImport_AddModule("__builtin__"); if (!__pyx_b) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;}; if (PyObject_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;}; if (__Pyx_InitStrings(__pyx_string_tab) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;}; __pyx_v_3pkg_7cimport_fried = ((struct __pyx_obj_3pkg_4eggs_Eggs *)Py_None); Py_INCREF(Py_None); __pyx_ptype_3pkg_4eggs_Eggs = __Pyx_ImportType("pkg.eggs", "Eggs", sizeof(struct __pyx_obj_3pkg_4eggs_Eggs)); if (!__pyx_ptype_3pkg_4eggs_Eggs) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 1; goto __pyx_L1;} /* "/Local/Projects/D/Pyrex/Source/Tests/8/pkg.cimport.pyx":6 */ Py_INCREF(Py_None); Py_DECREF(((PyObject *)__pyx_v_3pkg_7cimport_fried)); __pyx_v_3pkg_7cimport_fried = ((struct __pyx_obj_3pkg_4eggs_Eggs *)Py_None); return; __pyx_L1:; __Pyx_AddTraceback("pkg.cimport"); }
/* Implementation of argdefault */ static PyObject *__pyx_f_10argdefault_spam(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static PyObject *__pyx_f_10argdefault_spam(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_w = 0; int __pyx_v_x; PyObject *__pyx_v_y = 0; PyObject *__pyx_v_z = 0; PyObject *__pyx_r; static char *__pyx_argnames[] = {"w","x","y","z",0}; __pyx_v_x = __pyx_d1; __pyx_v_y = __pyx_d2; __pyx_v_z = __pyx_d3; if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "O|iOO", __pyx_argnames, &__pyx_v_w, &__pyx_v_x, &__pyx_v_y, &__pyx_v_z)) return 0; Py_INCREF(__pyx_v_w); Py_INCREF(__pyx_v_y); Py_INCREF(__pyx_v_z); __pyx_r = Py_None; Py_INCREF(Py_None); Py_DECREF(__pyx_v_w); Py_DECREF(__pyx_v_y); Py_DECREF(__pyx_v_z); return __pyx_r; } static struct PyMethodDef __pyx_methods[] = { {"spam", (PyCFunction)__pyx_f_10argdefault_spam, METH_VARARGS|METH_KEYWORDS, 0}, {0, 0, 0, 0} }; static void __pyx_init_filenames(void); /*proto*/ PyMODINIT_FUNC initargdefault(void); /*proto*/ PyMODINIT_FUNC initargdefault(void) { __pyx_init_filenames(); __pyx_m = Py_InitModule4("argdefault", __pyx_methods, 0, 0, PYTHON_API_VERSION); if (!__pyx_m) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;}; Py_INCREF(__pyx_m); __pyx_b = PyImport_AddModule("__builtin__"); if (!__pyx_b) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;}; if (PyObject_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;}; if (__Pyx_InitStrings(__pyx_string_tab) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;}; __pyx_v_10argdefault_swallow = Py_None; Py_INCREF(Py_None); /* "/Local/Projects/D/Pyrex/Source/Tests/5/argdefault.pyx":3 */ __pyx_d1 = 42; Py_INCREF(__pyx_n_grail); __pyx_d2 = __pyx_n_grail; Py_INCREF(__pyx_v_10argdefault_swallow); __pyx_d3 = __pyx_v_10argdefault_swallow; return; __pyx_L1:; __Pyx_AddTraceback("argdefault"); }
/* Implementation of sreeram1 */ static PyObject *__pyx_f_8sreeram1_6Person_copy_name(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static PyObject *__pyx_f_8sreeram1_6Person_copy_name(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { struct __pyx_obj_8sreeram1_Name *__pyx_v_name = 0; PyObject *__pyx_r; static char *__pyx_argnames[] = {"name",0}; if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "O", __pyx_argnames, &__pyx_v_name)) return 0; Py_INCREF(__pyx_v_self); Py_INCREF(__pyx_v_name); if (!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_name), __pyx_ptype_8sreeram1_Name, 1, "name")) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 6; goto __pyx_L1;} __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; __Pyx_AddTraceback("sreeram1.Person.copy_name"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_self); Py_DECREF(__pyx_v_name); return __pyx_r; } static PyObject *__pyx_tp_new_8sreeram1_Person(PyTypeObject *t, PyObject *a, PyObject *k) { PyObject *o = (*t->tp_alloc)(t, 0); if (!o) return 0; return o; } static void __pyx_tp_dealloc_8sreeram1_Person(PyObject *o) { (*o->ob_type->tp_free)(o); } static struct PyMethodDef __pyx_methods_8sreeram1_Person[] = { {"copy_name", (PyCFunction)__pyx_f_8sreeram1_6Person_copy_name, METH_VARARGS|METH_KEYWORDS, 0}, {0, 0, 0, 0} }; static PyNumberMethods __pyx_tp_as_number_Person = { 0, /*nb_add*/ 0, /*nb_subtract*/ 0, /*nb_multiply*/ 0, /*nb_divide*/ 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*/ 0, /*nb_coerce*/ 0, /*nb_int*/ 0, /*nb_long*/ 0, /*nb_float*/ 0, /*nb_oct*/ 0, /*nb_hex*/ 0, /*nb_inplace_add*/ 0, /*nb_inplace_subtract*/ 0, /*nb_inplace_multiply*/ 0, /*nb_inplace_divide*/ 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_TPFLAGS_DEFAULT & Py_TPFLAGS_HAVE_INDEX 0, /*nb_index*/ #endif }; static PySequenceMethods __pyx_tp_as_sequence_Person = { 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_Person = { 0, /*mp_length*/ 0, /*mp_subscript*/ 0, /*mp_ass_subscript*/ }; static PyBufferProcs __pyx_tp_as_buffer_Person = { 0, /*bf_getreadbuffer*/ 0, /*bf_getwritebuffer*/ 0, /*bf_getsegcount*/ 0, /*bf_getcharbuffer*/ }; PyTypeObject __pyx_type_8sreeram1_Person = { PyObject_HEAD_INIT(0) 0, /*ob_size*/ "sreeram1.Person", /*tp_name*/ sizeof(struct __pyx_obj_8sreeram1_Person), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_8sreeram1_Person, /*tp_dealloc*/ 0, /*tp_print*/ 0, /*tp_getattr*/ 0, /*tp_setattr*/ 0, /*tp_compare*/ 0, /*tp_repr*/ &__pyx_tp_as_number_Person, /*tp_as_number*/ &__pyx_tp_as_sequence_Person, /*tp_as_sequence*/ &__pyx_tp_as_mapping_Person, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ &__pyx_tp_as_buffer_Person, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_BASETYPE, /*tp_flags*/ 0, /*tp_doc*/ 0, /*tp_traverse*/ 0, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_8sreeram1_Person, /*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_8sreeram1_Person, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ }; static PyObject *__pyx_tp_new_8sreeram1_Name(PyTypeObject *t, PyObject *a, PyObject *k) { PyObject *o = (*t->tp_alloc)(t, 0); if (!o) return 0; return o; } static void __pyx_tp_dealloc_8sreeram1_Name(PyObject *o) { (*o->ob_type->tp_free)(o); } static struct PyMethodDef __pyx_methods_8sreeram1_Name[] = { {0, 0, 0, 0} }; static PyNumberMethods __pyx_tp_as_number_Name = { 0, /*nb_add*/ 0, /*nb_subtract*/ 0, /*nb_multiply*/ 0, /*nb_divide*/ 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*/ 0, /*nb_coerce*/ 0, /*nb_int*/ 0, /*nb_long*/ 0, /*nb_float*/ 0, /*nb_oct*/ 0, /*nb_hex*/ 0, /*nb_inplace_add*/ 0, /*nb_inplace_subtract*/ 0, /*nb_inplace_multiply*/ 0, /*nb_inplace_divide*/ 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_TPFLAGS_DEFAULT & Py_TPFLAGS_HAVE_INDEX 0, /*nb_index*/ #endif }; static PySequenceMethods __pyx_tp_as_sequence_Name = { 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_Name = { 0, /*mp_length*/ 0, /*mp_subscript*/ 0, /*mp_ass_subscript*/ }; static PyBufferProcs __pyx_tp_as_buffer_Name = { 0, /*bf_getreadbuffer*/ 0, /*bf_getwritebuffer*/ 0, /*bf_getsegcount*/ 0, /*bf_getcharbuffer*/ }; PyTypeObject __pyx_type_8sreeram1_Name = { PyObject_HEAD_INIT(0) 0, /*ob_size*/ "sreeram1.Name", /*tp_name*/ sizeof(struct __pyx_obj_8sreeram1_Name), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_8sreeram1_Name, /*tp_dealloc*/ 0, /*tp_print*/ 0, /*tp_getattr*/ 0, /*tp_setattr*/ 0, /*tp_compare*/ 0, /*tp_repr*/ &__pyx_tp_as_number_Name, /*tp_as_number*/ &__pyx_tp_as_sequence_Name, /*tp_as_sequence*/ &__pyx_tp_as_mapping_Name, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ &__pyx_tp_as_buffer_Name, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_BASETYPE, /*tp_flags*/ 0, /*tp_doc*/ 0, /*tp_traverse*/ 0, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_8sreeram1_Name, /*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_8sreeram1_Name, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ }; static struct PyMethodDef __pyx_methods[] = { {0, 0, 0, 0} }; static void __pyx_init_filenames(void); /*proto*/ PyMODINIT_FUNC initsreeram1(void); /*proto*/ PyMODINIT_FUNC initsreeram1(void) { __pyx_init_filenames(); __pyx_m = Py_InitModule4("sreeram1", __pyx_methods, 0, 0, PYTHON_API_VERSION); if (!__pyx_m) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;}; Py_INCREF(__pyx_m); __pyx_b = PyImport_AddModule("__builtin__"); if (!__pyx_b) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;}; if (PyObject_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;}; if (__Pyx_InitStrings(__pyx_string_tab) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;}; if (PyType_Ready(&__pyx_type_8sreeram1_Person) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 4; goto __pyx_L1;} if (PyObject_SetAttrString(__pyx_m, "Person", (PyObject *)&__pyx_type_8sreeram1_Person) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 4; goto __pyx_L1;} __pyx_ptype_8sreeram1_Person = &__pyx_type_8sreeram1_Person; if (PyType_Ready(&__pyx_type_8sreeram1_Name) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;} if (PyObject_SetAttrString(__pyx_m, "Name", (PyObject *)&__pyx_type_8sreeram1_Name) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;} __pyx_ptype_8sreeram1_Name = &__pyx_type_8sreeram1_Name; /* "/Local/Projects/D/Pyrex/Source/Tests/Bugs/sreeram/sreeram1.pyx":4 */ return; __pyx_L1:; __Pyx_AddTraceback("sreeram1"); }
/* Implementation of extargdefault */ static PyObject *__pyx_f_13extargdefault_spam(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static PyObject *__pyx_f_13extargdefault_spam(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_x = 0; struct __pyx_obj_13extargdefault_Swallow *__pyx_v_y = 0; PyObject *__pyx_r; static char *__pyx_argnames[] = {"x","y",0}; __pyx_v_x = __pyx_d1; __pyx_v_y = __pyx_d2; if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "|OO", __pyx_argnames, &__pyx_v_x, &__pyx_v_y)) return 0; Py_INCREF(__pyx_v_x); Py_INCREF(__pyx_v_y); if (!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_y), __pyx_ptype_13extargdefault_Swallow, 1, "y")) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 6; goto __pyx_L1;} __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; __Pyx_AddTraceback("extargdefault.spam"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_x); Py_DECREF(__pyx_v_y); return __pyx_r; } static struct PyMethodDef __pyx_methods[] = { {"spam", (PyCFunction)__pyx_f_13extargdefault_spam, METH_VARARGS|METH_KEYWORDS, 0}, {0, 0, 0, 0} }; static void __pyx_init_filenames(void); /*proto*/ PyMODINIT_FUNC initextargdefault(void); /*proto*/ PyMODINIT_FUNC initextargdefault(void) { __pyx_init_filenames(); __pyx_m = Py_InitModule4("extargdefault", __pyx_methods, 0, 0, PYTHON_API_VERSION); if (!__pyx_m) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;}; Py_INCREF(__pyx_m); __pyx_b = PyImport_AddModule("__builtin__"); if (!__pyx_b) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;}; if (PyObject_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;}; if (__Pyx_InitStrings(__pyx_string_tab) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;}; __pyx_v_13extargdefault_swallow = ((struct __pyx_obj_13extargdefault_Swallow *)Py_None); Py_INCREF(Py_None); __pyx_ptype_13extargdefault_Swallow = __Pyx_ImportType("somewhere", "Swallow", sizeof(struct __pyx_obj_13extargdefault_Swallow)); if (!__pyx_ptype_13extargdefault_Swallow) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;} /* "/Local/Projects/D/Pyrex/Source/Tests/5/extargdefault.pyx":6 */ Py_INCREF(((PyObject *)__pyx_v_13extargdefault_swallow)); __pyx_d1 = ((PyObject *)__pyx_v_13extargdefault_swallow); Py_INCREF(((PyObject *)__pyx_v_13extargdefault_swallow)); __pyx_d2 = __pyx_v_13extargdefault_swallow; return; __pyx_L1:; __Pyx_AddTraceback("extargdefault"); }
/* Implementation of baas6 */ static PyObject *__pyx_tp_new_5baas6_DoIHaveEmptyDel(PyTypeObject *t, PyObject *a, PyObject *k) { PyObject *o = (*t->tp_alloc)(t, 0); if (!o) return 0; return o; } static void __pyx_tp_dealloc_5baas6_DoIHaveEmptyDel(PyObject *o) { (*o->ob_type->tp_free)(o); } static struct PyMethodDef __pyx_methods_5baas6_DoIHaveEmptyDel[] = { {0, 0, 0, 0} }; static PyNumberMethods __pyx_tp_as_number_DoIHaveEmptyDel = { 0, /*nb_add*/ 0, /*nb_subtract*/ 0, /*nb_multiply*/ 0, /*nb_divide*/ 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*/ 0, /*nb_coerce*/ 0, /*nb_int*/ 0, /*nb_long*/ 0, /*nb_float*/ 0, /*nb_oct*/ 0, /*nb_hex*/ 0, /*nb_inplace_add*/ 0, /*nb_inplace_subtract*/ 0, /*nb_inplace_multiply*/ 0, /*nb_inplace_divide*/ 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_TPFLAGS_DEFAULT & Py_TPFLAGS_HAVE_INDEX 0, /*nb_index*/ #endif }; static PySequenceMethods __pyx_tp_as_sequence_DoIHaveEmptyDel = { 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_DoIHaveEmptyDel = { 0, /*mp_length*/ 0, /*mp_subscript*/ 0, /*mp_ass_subscript*/ }; static PyBufferProcs __pyx_tp_as_buffer_DoIHaveEmptyDel = { 0, /*bf_getreadbuffer*/ 0, /*bf_getwritebuffer*/ 0, /*bf_getsegcount*/ 0, /*bf_getcharbuffer*/ }; PyTypeObject __pyx_type_5baas6_DoIHaveEmptyDel = { PyObject_HEAD_INIT(0) 0, /*ob_size*/ "baas6.DoIHaveEmptyDel", /*tp_name*/ sizeof(struct __pyx_obj_5baas6_DoIHaveEmptyDel), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_5baas6_DoIHaveEmptyDel, /*tp_dealloc*/ 0, /*tp_print*/ 0, /*tp_getattr*/ 0, /*tp_setattr*/ 0, /*tp_compare*/ 0, /*tp_repr*/ &__pyx_tp_as_number_DoIHaveEmptyDel, /*tp_as_number*/ &__pyx_tp_as_sequence_DoIHaveEmptyDel, /*tp_as_sequence*/ &__pyx_tp_as_mapping_DoIHaveEmptyDel, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ &__pyx_tp_as_buffer_DoIHaveEmptyDel, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_BASETYPE, /*tp_flags*/ 0, /*tp_doc*/ 0, /*tp_traverse*/ 0, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_5baas6_DoIHaveEmptyDel, /*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_5baas6_DoIHaveEmptyDel, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ }; static PyObject *__pyx_tp_new_5baas6_DoIHaveGCDel(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_5baas6_DoIHaveGCDel *p; PyObject *o = (*t->tp_alloc)(t, 0); if (!o) return 0; p = ((struct __pyx_obj_5baas6_DoIHaveGCDel *)o); p->foo = Py_None; Py_INCREF(Py_None); return o; } static void __pyx_tp_dealloc_5baas6_DoIHaveGCDel(PyObject *o) { struct __pyx_obj_5baas6_DoIHaveGCDel *p = (struct __pyx_obj_5baas6_DoIHaveGCDel *)o; Py_XDECREF(p->foo); (*o->ob_type->tp_free)(o); } static int __pyx_tp_traverse_5baas6_DoIHaveGCDel(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_5baas6_DoIHaveGCDel *p = (struct __pyx_obj_5baas6_DoIHaveGCDel *)o; if (p->foo) { e = (*v)(p->foo, a); if (e) return e; } return 0; } static int __pyx_tp_clear_5baas6_DoIHaveGCDel(PyObject *o) { struct __pyx_obj_5baas6_DoIHaveGCDel *p = (struct __pyx_obj_5baas6_DoIHaveGCDel *)o; PyObject *t; t = p->foo; p->foo = Py_None; Py_INCREF(Py_None); Py_XDECREF(t); return 0; } static struct PyMethodDef __pyx_methods_5baas6_DoIHaveGCDel[] = { {0, 0, 0, 0} }; static PyNumberMethods __pyx_tp_as_number_DoIHaveGCDel = { 0, /*nb_add*/ 0, /*nb_subtract*/ 0, /*nb_multiply*/ 0, /*nb_divide*/ 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*/ 0, /*nb_coerce*/ 0, /*nb_int*/ 0, /*nb_long*/ 0, /*nb_float*/ 0, /*nb_oct*/ 0, /*nb_hex*/ 0, /*nb_inplace_add*/ 0, /*nb_inplace_subtract*/ 0, /*nb_inplace_multiply*/ 0, /*nb_inplace_divide*/ 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_TPFLAGS_DEFAULT & Py_TPFLAGS_HAVE_INDEX 0, /*nb_index*/ #endif }; static PySequenceMethods __pyx_tp_as_sequence_DoIHaveGCDel = { 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_DoIHaveGCDel = { 0, /*mp_length*/ 0, /*mp_subscript*/ 0, /*mp_ass_subscript*/ }; static PyBufferProcs __pyx_tp_as_buffer_DoIHaveGCDel = { 0, /*bf_getreadbuffer*/ 0, /*bf_getwritebuffer*/ 0, /*bf_getsegcount*/ 0, /*bf_getcharbuffer*/ }; PyTypeObject __pyx_type_5baas6_DoIHaveGCDel = { PyObject_HEAD_INIT(0) 0, /*ob_size*/ "baas6.DoIHaveGCDel", /*tp_name*/ sizeof(struct __pyx_obj_5baas6_DoIHaveGCDel), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_5baas6_DoIHaveGCDel, /*tp_dealloc*/ 0, /*tp_print*/ 0, /*tp_getattr*/ 0, /*tp_setattr*/ 0, /*tp_compare*/ 0, /*tp_repr*/ &__pyx_tp_as_number_DoIHaveGCDel, /*tp_as_number*/ &__pyx_tp_as_sequence_DoIHaveGCDel, /*tp_as_sequence*/ &__pyx_tp_as_mapping_DoIHaveGCDel, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ &__pyx_tp_as_buffer_DoIHaveGCDel, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_5baas6_DoIHaveGCDel, /*tp_traverse*/ __pyx_tp_clear_5baas6_DoIHaveGCDel, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_5baas6_DoIHaveGCDel, /*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_5baas6_DoIHaveGCDel, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ }; static struct PyMethodDef __pyx_methods[] = { {0, 0, 0, 0} }; static void __pyx_init_filenames(void); /*proto*/ PyMODINIT_FUNC initbaas6(void); /*proto*/ PyMODINIT_FUNC initbaas6(void) { __pyx_init_filenames(); __pyx_m = Py_InitModule4("baas6", __pyx_methods, 0, 0, PYTHON_API_VERSION); if (!__pyx_m) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;}; Py_INCREF(__pyx_m); __pyx_b = PyImport_AddModule("__builtin__"); if (!__pyx_b) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;}; if (PyObject_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;}; if (__Pyx_InitStrings(__pyx_string_tab) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;}; if (PyType_Ready(&__pyx_type_5baas6_DoIHaveEmptyDel) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;} if (PyObject_SetAttrString(__pyx_m, "DoIHaveEmptyDel", (PyObject *)&__pyx_type_5baas6_DoIHaveEmptyDel) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;} __pyx_ptype_5baas6_DoIHaveEmptyDel = &__pyx_type_5baas6_DoIHaveEmptyDel; __pyx_type_5baas6_DoIHaveGCDel.tp_free = _PyObject_GC_Del; if (PyType_Ready(&__pyx_type_5baas6_DoIHaveGCDel) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 4; goto __pyx_L1;} if (PyObject_SetAttrString(__pyx_m, "DoIHaveGCDel", (PyObject *)&__pyx_type_5baas6_DoIHaveGCDel) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 4; goto __pyx_L1;} __pyx_ptype_5baas6_DoIHaveGCDel = &__pyx_type_5baas6_DoIHaveGCDel; /* "/Local/Projects/D/Pyrex/Source/Tests/Bugs/baas/baas6.pyx":4 */ return; __pyx_L1:; __Pyx_AddTraceback("baas6"); }