Generated by Cython 0.13 on Fri Apr 15 09:56:20 2011
Raw output: _sagenb_flask_sage_notebook_sagenb_home_openidSfmMv1OuVE_31_code_sage9_spyx_0.c
1:
2: include "interrupt.pxi" # ctrl-c interrupt block support
/* "/tmp/sagenbflask/temp/boxen/9653/spyx/_sagenb_flask_sage_notebook_sagenb_home_openidSfmMv1OuVE_31_code_sage9_spyx/_sagenb_flask_sage_notebook_sagenb_home_openidSfmMv1OuVE_31_code_sage9_spyx_0.pyx":2 * * include "interrupt.pxi" # ctrl-c interrupt block support #<
<
<
<
<
<
<
<
<
<
<
<
<
<
* include "stdsage.pxi" # ctrl-c interrupt block support * */ __pyx_t_1 = PyDict_New(); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(((PyObject *)__pyx_t_1)); if (PyObject_SetAttr(__pyx_m, __pyx_n_s____test__, ((PyObject *)__pyx_t_1))<
0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
3: include "stdsage.pxi" # ctrl-c interrupt block support
4:
5: include "cdefs.pxi"
6: def type_example2(x, y):
/* "/tmp/sagenbflask/temp/boxen/9653/spyx/_sagenb_flask_sage_notebook_sagenb_home_openidSfmMv1OuVE_31_code_sage9_spyx/_sagenb_flask_sage_notebook_sagenb_home_openidSfmMv1OuVE_31_code_sage9_spyx_0.pyx":6 * * include "cdefs.pxi" * def type_example2(x, y): #<
<
<
<
<
<
<
<
<
<
<
<
<
<
* cdef list v * cdef dict z */ static PyObject *__pyx_pf_77_sagenb_flask_sage_notebook_sagenb_home_openidSfmMv1OuVE_31_code_sage9_spyx_0_type_example2(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_77_sagenb_flask_sage_notebook_sagenb_home_openidSfmMv1OuVE_31_code_sage9_spyx_0_type_example2[] = "File: _sagenb_flask_sage_notebook_sagenb_home_openidSfmMv1OuVE_31_code_sage9_spyx_0.pyx (starting at line 6)"; static PyObject *__pyx_pf_77_sagenb_flask_sage_notebook_sagenb_home_openidSfmMv1OuVE_31_code_sage9_spyx_0_type_example2(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_x = 0; PyObject *__pyx_v_y = 0; PyObject *__pyx_v_v; PyObject *__pyx_v_z; PyObject *__pyx_r = NULL; static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__x,&__pyx_n_s__y,0}; __Pyx_RefNannySetupContext("type_example2"); __pyx_self = __pyx_self; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args = PyDict_Size(__pyx_kwds); PyObject* values[2] = {0,0}; switch (PyTuple_GET_SIZE(__pyx_args)) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); case 0: break; default: goto __pyx_L5_argtuple_error; } switch (PyTuple_GET_SIZE(__pyx_args)) { case 0: values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__x); if (likely(values[0])) kw_args--; else goto __pyx_L5_argtuple_error; case 1: values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__y); if (likely(values[1])) kw_args--; else { __Pyx_RaiseArgtupleInvalid("type_example2", 1, 2, 2, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 6; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "type_example2")<
0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 6; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } __pyx_v_x = values[0]; __pyx_v_y = values[1]; } else if (PyTuple_GET_SIZE(__pyx_args) != 2) { goto __pyx_L5_argtuple_error; } else { __pyx_v_x = PyTuple_GET_ITEM(__pyx_args, 0); __pyx_v_y = PyTuple_GET_ITEM(__pyx_args, 1); } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("type_example2", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 6; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __pyx_L3_error:; __Pyx_AddTraceback("_sagenb_flask_sage_notebook_sagenb_home_openidSfmMv1OuVE_31_code_sage9_spyx_0.type_example2"); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_v_v = ((PyObject *)Py_None); __Pyx_INCREF(Py_None); __pyx_v_z = ((PyObject *)Py_None); __Pyx_INCREF(Py_None);
7: cdef list v
8: cdef dict z
9: v = x
/* "/tmp/sagenbflask/temp/boxen/9653/spyx/_sagenb_flask_sage_notebook_sagenb_home_openidSfmMv1OuVE_31_code_sage9_spyx/_sagenb_flask_sage_notebook_sagenb_home_openidSfmMv1OuVE_31_code_sage9_spyx_0.pyx":9 * cdef list v * cdef dict z * v = x #<
<
<
<
<
<
<
<
<
<
<
<
<
<
* z = y */ if (!(likely(PyList_CheckExact(__pyx_v_x))||((__pyx_v_x) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected list, got %.200s", Py_TYPE(__pyx_v_x)->tp_name), 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 9; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_INCREF(__pyx_v_x); __Pyx_DECREF(((PyObject *)__pyx_v_v)); __pyx_v_v = ((PyObject *)__pyx_v_x);
10: z = y
/* "/tmp/sagenbflask/temp/boxen/9653/spyx/_sagenb_flask_sage_notebook_sagenb_home_openidSfmMv1OuVE_31_code_sage9_spyx/_sagenb_flask_sage_notebook_sagenb_home_openidSfmMv1OuVE_31_code_sage9_spyx_0.pyx":10 * cdef dict z * v = x * z = y #<
<
<
<
<
<
<
<
<
<
<
<
<
<
*/ if (!(likely(PyDict_CheckExact(__pyx_v_y))||((__pyx_v_y) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected dict, got %.200s", Py_TYPE(__pyx_v_y)->tp_name), 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 10; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_INCREF(__pyx_v_y); __Pyx_DECREF(((PyObject *)__pyx_v_z)); __pyx_v_z = ((PyObject *)__pyx_v_y); __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("_sagenb_flask_sage_notebook_sagenb_home_openidSfmMv1OuVE_31_code_sage9_spyx_0.type_example2"); __pyx_r = NULL; __pyx_L0:; __Pyx_DECREF(__pyx_v_v); __Pyx_DECREF(__pyx_v_z); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; }