Eric Snow added the comment:

in ___init__.c:963+, prior to executing the module proper (Python2 and PyPy 
handling removed):

  /*--- Module creation code ---*/
  __pyx_m = PyModule_Create(&__pyx_moduledef);
  if (!__pyx_m) {...};
  __pyx_b = PyImport_AddModule(__Pyx_NAMESTR(__Pyx_BUILTIN_MODULE_NAME));
  if (!__pyx_b) {...};
  if (__Pyx_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) {...};
  /*--- Initialize various global constants etc. ---*/
  if (unlikely(__Pyx_InitGlobals() < 0)) {...}
  if (__pyx_module_is_main_my_test_package) {
    if (__Pyx_SetAttrString(__pyx_m, "__name__", __pyx_n_s____main__) < 0) 
{...};
  }
  if (__Pyx_SetAttrString(__pyx_m, "__file__", __pyx_kp_u_6) < 0) {...};
  __pyx_t_1 = Py_BuildValue("[O]", __pyx_kp_u_7); if (unlikely(!__pyx_t_1)) 
{...}
  __Pyx_GOTREF(__pyx_t_1);
  if (__Pyx_SetAttrString(__pyx_m, "__path__", __pyx_t_1) < 0) {...};
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  /*--- Builtin init code ---*/
  if (unlikely(__Pyx_InitCachedBuiltins() < 0)) {...}
  /*--- Constants init code ---*/
  if (unlikely(__Pyx_InitCachedConstants() < 0)) {...}

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue15623>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to