try:
    from __future__ import nonlocal
except SyntaxError:
    pass # aha, we're probably running version 3 already!

K

> -----Original Message-----
> From: [email protected] [mailto:stackless-
> [email protected]] On Behalf Of Martijn Faassen
> Sent: 7. janúar 2014 12:44
> To: [email protected]
> Subject: [Stackless] __future__ policy
> 
> Hi there,
> 
> I understand Stackless 2.8 is considering the following:
> 
> from __future__ import nonlocal
> 
> It was pointed out on the #python2.8 channel yesterday that this leads to a
> problem when upgrading Stackless 2.8 code to Python 3.x code, as
> 
> from __future__ import nonlocal
> 
> is an error there. So it becomes impossible to write code that runs both on
> Stackless 2.8 and Python 3.3, for instance.



_______________________________________________
Stackless mailing list
[email protected]
http://www.stackless.com/mailman/listinfo/stackless

Reply via email to