Advertisement
johnmudd

Cython demo

May 9th, 2012
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.95 KB | None | 0 0
  1.   /* "postgres.py":40
  2.  *   if ts == zero_timestamp:
  3.  *     return 0
  4.  *   if type(ts) == datetime.datetime:             # <<<<<<<<<<<<<<
  5.  *     time_tuple = ts.timetuple()
  6.  *   else:
  7.  */
  8.   __pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__datetime); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 40; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  9.   __Pyx_GOTREF(__pyx_t_2);
  10.   __pyx_t_1 = PyObject_GetAttr(__pyx_t_2, __pyx_n_s__datetime); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 40; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  11.   __Pyx_GOTREF(__pyx_t_1);
  12.   __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  13.   __pyx_t_2 = PyObject_RichCompare(((PyObject *)Py_TYPE(__pyx_v_ts)), __pyx_t_1, Py_EQ); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 40; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  14.   __Pyx_GOTREF(__pyx_t_2);
  15.   __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  16.   __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_3 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 40; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  17.   __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  18.   if (__pyx_t_3) {
  19.  
  20.     /* "postgres.py":41
  21.  *     return 0
  22.  *   if type(ts) == datetime.datetime:
  23.  *     time_tuple = ts.timetuple()             # <<<<<<<<<<<<<<
  24.  *   else:
  25.  *     time_tuple = ts.adapted.timetuple()
  26.  */
  27.     __pyx_t_2 = PyObject_GetAttr(__pyx_v_ts, __pyx_n_s__timetuple); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 41; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  28.     __Pyx_GOTREF(__pyx_t_2);
  29.     __pyx_t_1 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 41; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  30.     __Pyx_GOTREF(__pyx_t_1);
  31.     __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  32.     __pyx_v_time_tuple = __pyx_t_1;
  33.     __pyx_t_1 = 0;
  34.     goto __pyx_L4;
  35.   }
  36.   /*else*/ {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement