robertwb / issues-import-test

0 stars 0 forks source link

builtins caching happens too early, before the optimisation phase #626

Open robertwb opened 14 years ago

robertwb commented 14 years ago

When using xrange() in a for-loop, Cython will generate code to cache the xrange builtin function. This breaks running the code in Python 3. However, the function is never used in the generated C code when the range-optimisation hits, so the caching shouldn't happen at all in this case.

Migrated from http://trac.cython.org/ticket/472

robertwb commented 14 years ago

scoder changed priority from major to minor The module init failure is fixed in ticket http://cython.trac.org/ticket/476, so this is a minor issue now.