+01: def carrays():
/* Python wrapper */
static PyObject *__pyx_pw_46_cython_magic_0a0700be7e736bc6c3dc54429e7b8a95_1carrays(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyMethodDef __pyx_mdef_46_cython_magic_0a0700be7e736bc6c3dc54429e7b8a95_1carrays = {"carrays", (PyCFunction)__pyx_pw_46_cython_magic_0a0700be7e736bc6c3dc54429e7b8a95_1carrays, METH_NOARGS, 0};
static PyObject *__pyx_pw_46_cython_magic_0a0700be7e736bc6c3dc54429e7b8a95_1carrays(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) {
PyObject *__pyx_r = 0;
__Pyx_RefNannyDeclarations
__Pyx_RefNannySetupContext("carrays (wrapper)", 0);
__pyx_r = __pyx_pf_46_cython_magic_0a0700be7e736bc6c3dc54429e7b8a95_carrays(__pyx_self);
/* function exit code */
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
static PyObject *__pyx_pf_46_cython_magic_0a0700be7e736bc6c3dc54429e7b8a95_carrays(CYTHON_UNUSED PyObject *__pyx_self) {
int __pyx_v_a[10];
int __pyx_v_b[10];
PyObject *__pyx_v_i = NULL;
PyObject *__pyx_r = NULL;
__Pyx_RefNannyDeclarations
__Pyx_RefNannySetupContext("carrays", 0);
/* … */
/* function exit code */
__pyx_L1_error:;
__Pyx_XDECREF(__pyx_t_6);
__Pyx_AddTraceback("_cython_magic_0a0700be7e736bc6c3dc54429e7b8a95.carrays", __pyx_clineno, __pyx_lineno, __pyx_filename);
__pyx_r = NULL;
__pyx_L0:;
__Pyx_XDECREF(__pyx_v_i);
__Pyx_XGIVEREF(__pyx_r);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* … */
__pyx_tuple_ = PyTuple_Pack(3, __pyx_n_s_a, __pyx_n_s_b, __pyx_n_s_i); if (unlikely(!__pyx_tuple_)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_tuple_);
__Pyx_GIVEREF(__pyx_tuple_);
/* … */
__pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_46_cython_magic_0a0700be7e736bc6c3dc54429e7b8a95_1carrays, NULL, __pyx_n_s_cython_magic_0a0700be7e736bc6c3); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_1);
if (PyDict_SetItem(__pyx_d, __pyx_n_s_carrays, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__pyx_t_1 = PyDict_New(); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_1);
if (PyDict_SetItem(__pyx_d, __pyx_n_s_test, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
02: cdef int[10] a, b
+03: a[:5] = [1,2,3,4,5]
__pyx_t_1[0] = 1;
__pyx_t_1[1] = 2;
__pyx_t_1[2] = 3;
__pyx_t_1[3] = 4;
__pyx_t_1[4] = 5;
memcpy(&(__pyx_v_a[0]), __pyx_t_1, sizeof(__pyx_v_a[0]) * (5));
+04: b = a
memcpy(&(__pyx_v_b[0]), __pyx_v_a, sizeof(__pyx_v_b[0]) * (10));
+05: b[5:] = [6,7,8,9,10]
__pyx_t_2[0] = 6;
__pyx_t_2[1] = 7;
__pyx_t_2[2] = 8;
__pyx_t_2[3] = 9;
__pyx_t_2[4] = 10;
memcpy(&(__pyx_v_b[5]), __pyx_t_2, sizeof(__pyx_v_b[0]) * (5));
06:
+07: for i in b[:3]:
__pyx_t_4 = (__pyx_v_b + 3);
for (__pyx_t_5 = __pyx_v_b; __pyx_t_5 < __pyx_t_4; __pyx_t_5++) {
__pyx_t_3 = __pyx_t_5;
__pyx_t_6 = __Pyx_PyInt_From_int((__pyx_t_3[0])); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 7; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_6);
__Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_6);
__pyx_t_6 = 0;
+08: print(i+1)
__pyx_t_6 = __Pyx_PyInt_AddObjC(__pyx_v_i, __pyx_int_1, 1, 0); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 8; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_6);
if (__Pyx_PrintOne(0, __pyx_t_6) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 8; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
}
09:
+10: return b
__Pyx_XDECREF(__pyx_r);
__pyx_t_6 = __Pyx_carray_to_py_int(__pyx_v_b, 10); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 10; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_6);
__pyx_r = __pyx_t_6;
__pyx_t_6 = 0;
goto __pyx_L0;