Good idea. And it even works if you need future modules from CPython and
Stackless:
------8<----------8<----------8<----------8<----------8<---
from __future__ import absolute_import
from __slpfuture__ import print_function
print ("hello World!")
------8<----------8<----------8<----------8<----------8<---
Fortunately more than one from __future__ line is allowed.
Cheers
Anselm
Am 08.01.2014 14:42, schrieb Kristján Valur Jónsson:
I'm getting to see Martijn's point.
So, how about this: We make __slpfuture__ a synonym for __future__ in 2.8.
We add "nonlocal" and "yield_from" arguments.
We then provide a __slpfuture__.py module with those things defined.
If we then manage to convince cpython that they should add no-op support for
our 2.8-slp things, that's great! Otherwise, we can just stick with using
__slpfuture__.
--
Dipl. Phys. Anselm Kruis science + computing ag
Senior Solution Architect Ingolstädter Str. 22
email [email protected] 80807 München, Germany
phone +49 89 356386 874 fax 737 www.science-computing.de
--
Vorstandsvorsitzender/Chairman of the board of management:
Gerd-Lothar Leonhart
Vorstand/Board of Management:
Dr. Bernd Finkbeiner, Michael Heinrichs,
Dr. Arno Steitz, Dr. Ingrid Zech
Vorsitzender des Aufsichtsrats/
Chairman of the Supervisory Board:
Philippe Miltin
Sitz/Registered Office: Tuebingen
Registergericht/Registration Court: Stuttgart
Registernummer/Commercial Register No.: HRB 382196
_______________________________________________
Stackless mailing list
[email protected]
http://www.stackless.com/mailman/listinfo/stackless