Generated by Cython 0.13 on Fri Apr 15 12:44:04 2011
Raw output: _sagenb_flask_sage_notebook_sagenb_home_openidSfmMv1OuVE_31_code_sage15_spyx_0.c
1:
2: include "interrupt.pxi" # ctrl-c interrupt block support
/* "/tmp/sagenbflask/temp/boxen/25597/spyx/_sagenb_flask_sage_notebook_sagenb_home_openidSfmMv1OuVE_31_code_sage15_spyx/_sagenb_flask_sage_notebook_sagenb_home_openidSfmMv1OuVE_31_code_sage15_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 C_type_example():
/* "/tmp/sagenbflask/temp/boxen/25597/spyx/_sagenb_flask_sage_notebook_sagenb_home_openidSfmMv1OuVE_31_code_sage15_spyx/_sagenb_flask_sage_notebook_sagenb_home_openidSfmMv1OuVE_31_code_sage15_spyx_0.pyx":6 * * include "cdefs.pxi" * def C_type_example(): #<
<
<
<
<
<
<
<
<
<
<
<
<
<
* cdef int n=5/3, x=2^3 # ^ = exclusive or -- no preparser in Cython! * cdef long int m=908230948239489394 */ static PyObject *__pyx_pf_78_sagenb_flask_sage_notebook_sagenb_home_openidSfmMv1OuVE_31_code_sage15_spyx_0_C_type_example(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_78_sagenb_flask_sage_notebook_sagenb_home_openidSfmMv1OuVE_31_code_sage15_spyx_0_C_type_example[] = "File: _sagenb_flask_sage_notebook_sagenb_home_openidSfmMv1OuVE_31_code_sage15_spyx_0.pyx (starting at line 6)"; static PyObject *__pyx_pf_78_sagenb_flask_sage_notebook_sagenb_home_openidSfmMv1OuVE_31_code_sage15_spyx_0_C_type_example(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { int __pyx_v_n; int __pyx_v_x; long __pyx_v_m; float __pyx_v_y; double __pyx_v_z; char __pyx_v_c; char *__pyx_v_s; PyObject *__pyx_r = NULL; __Pyx_RefNannySetupContext("C_type_example"); __pyx_self = __pyx_self;
7: cdef int n=5/3, x=2^3 # ^ = exclusive or -- no preparser in Cython!
/* "/tmp/sagenbflask/temp/boxen/25597/spyx/_sagenb_flask_sage_notebook_sagenb_home_openidSfmMv1OuVE_31_code_sage15_spyx/_sagenb_flask_sage_notebook_sagenb_home_openidSfmMv1OuVE_31_code_sage15_spyx_0.pyx":7 * include "cdefs.pxi" * def C_type_example(): * cdef int n=5/3, x=2^3 # ^ = exclusive or -- no preparser in Cython! #<
<
<
<
<
<
<
<
<
<
<
<
<
<
* cdef long int m=908230948239489394 * cdef float y=4.5969 */ __pyx_v_n = 1; __pyx_v_x = 1;
8: cdef long int m=908230948239489394
/* "/tmp/sagenbflask/temp/boxen/25597/spyx/_sagenb_flask_sage_notebook_sagenb_home_openidSfmMv1OuVE_31_code_sage15_spyx/_sagenb_flask_sage_notebook_sagenb_home_openidSfmMv1OuVE_31_code_sage15_spyx_0.pyx":8 * def C_type_example(): * cdef int n=5/3, x=2^3 # ^ = exclusive or -- no preparser in Cython! * cdef long int m=908230948239489394 #<
<
<
<
<
<
<
<
<
<
<
<
<
<
* cdef float y=4.5969 * cdef double z=2.13 */ __pyx_v_m = 908230948239489394;
9: cdef float y=4.5969
/* "/tmp/sagenbflask/temp/boxen/25597/spyx/_sagenb_flask_sage_notebook_sagenb_home_openidSfmMv1OuVE_31_code_sage15_spyx/_sagenb_flask_sage_notebook_sagenb_home_openidSfmMv1OuVE_31_code_sage15_spyx_0.pyx":9 * cdef int n=5/3, x=2^3 # ^ = exclusive or -- no preparser in Cython! * cdef long int m=908230948239489394 * cdef float y=4.5969 #<
<
<
<
<
<
<
<
<
<
<
<
<
<
* cdef double z=2.13 * cdef char c='c' */ __pyx_v_y = 4.5969;
10: cdef double z=2.13
/* "/tmp/sagenbflask/temp/boxen/25597/spyx/_sagenb_flask_sage_notebook_sagenb_home_openidSfmMv1OuVE_31_code_sage15_spyx/_sagenb_flask_sage_notebook_sagenb_home_openidSfmMv1OuVE_31_code_sage15_spyx_0.pyx":10 * cdef long int m=908230948239489394 * cdef float y=4.5969 * cdef double z=2.13 #<
<
<
<
<
<
<
<
<
<
<
<
<
<
* cdef char c='c' * cdef char* s="a C string" */ __pyx_v_z = 2.13;
11: cdef char c='c'
/* "/tmp/sagenbflask/temp/boxen/25597/spyx/_sagenb_flask_sage_notebook_sagenb_home_openidSfmMv1OuVE_31_code_sage15_spyx/_sagenb_flask_sage_notebook_sagenb_home_openidSfmMv1OuVE_31_code_sage15_spyx_0.pyx":11 * cdef float y=4.5969 * cdef double z=2.13 * cdef char c='c' #<
<
<
<
<
<
<
<
<
<
<
<
<
<
* cdef char* s="a C string" * print n, x, m, y, z, c, s */ __pyx_v_c = 'c';
12: cdef char* s="a C string"
/* "/tmp/sagenbflask/temp/boxen/25597/spyx/_sagenb_flask_sage_notebook_sagenb_home_openidSfmMv1OuVE_31_code_sage15_spyx/_sagenb_flask_sage_notebook_sagenb_home_openidSfmMv1OuVE_31_code_sage15_spyx_0.pyx":12 * cdef double z=2.13 * cdef char c='c' * cdef char* s="a C string" #<
<
<
<
<
<
<
<
<
<
<
<
<
<
* print n, x, m, y, z, c, s */ __pyx_v_s = __pyx_k_1;
13: print n, x, m, y, z, c, s
/* "/tmp/sagenbflask/temp/boxen/25597/spyx/_sagenb_flask_sage_notebook_sagenb_home_openidSfmMv1OuVE_31_code_sage15_spyx/_sagenb_flask_sage_notebook_sagenb_home_openidSfmMv1OuVE_31_code_sage15_spyx_0.pyx":13 * cdef char c='c' * cdef char* s="a C string" * print n, x, m, y, z, c, s #<
<
<
<
<
<
<
<
<
<
<
<
<
<
*/ __pyx_t_1 = PyInt_FromLong(__pyx_v_n); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 13; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyInt_FromLong(__pyx_v_x); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 13; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = PyInt_FromLong(__pyx_v_m); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 13; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = PyFloat_FromDouble(__pyx_v_y); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 13; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = PyFloat_FromDouble(__pyx_v_z); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 13; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = PyInt_FromLong(__pyx_v_c); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 13; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = PyBytes_FromString(__pyx_v_s); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 13; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(((PyObject *)__pyx_t_7)); __pyx_t_8 = PyTuple_New(7); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 13; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_8, 1, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_8, 2, __pyx_t_3); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_8, 3, __pyx_t_4); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_8, 4, __pyx_t_5); __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_8, 5, __pyx_t_6); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_8, 6, ((PyObject *)__pyx_t_7)); __Pyx_GIVEREF(((PyObject *)__pyx_t_7)); __pyx_t_1 = 0; __pyx_t_2 = 0; __pyx_t_3 = 0; __pyx_t_4 = 0; __pyx_t_5 = 0; __pyx_t_6 = 0; __pyx_t_7 = 0; if (__Pyx_Print(0, __pyx_t_8, 1)<
0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 13; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("_sagenb_flask_sage_notebook_sagenb_home_openidSfmMv1OuVE_31_code_sage15_spyx_0.C_type_example"); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; }