Stefan, I really do not understand why you are implementing Future.py
in therms of __future__ module, but such an approach will preclude to
run the Cython compiler with Python less than 2.6.
As I'm not sure what your original intention was, I tried this (note
that I used 0 (zero) for the flag, just in case).
Attached my version of Future.py
--
Lisandro Dalcín
---------------
Centro Internacional de Métodos Computacionales en Ingeniería (CIMEC)
Instituto de Desarrollo Tecnológico para la Industria Química (INTEC)
Consejo Nacional de Investigaciones Científicas y Técnicas (CONICET)
PTLC - Güemes 3450, (3000) Santa Fe, Argentina
Tel/Fax: +54-(0)342-451.1594
import __future__
try:
unicode_literals = __future__.unicode_literals
except AttributeError:
CO_FUTURE_UNICODE_LITERALS = 0 # actually 0x20000
unicode_literals = __future__._Feature(
(2, 6, 0, 'alpha', 2), # OptionalRelease
(3, 0, 0, 'alpha', 0), # MandatoryRelease
CO_FUTURE_UNICODE_LITERALS,
)
del CO_FUTURE_UNICODE_LITERALS
del __future__
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev