How to activate __future__ features in embedded Python?

Stefan Franke franke at ableton.com
Wed Jan 30 09:58:17 EST 2002


On Tue, 29 Jan 2002 17:33:28 GMT, Michael Hudson <mwh at python.net>
wrote:
>
>You need PyRun_SimpleStringFlags.
>

Ahh, thanks. What I actually needed was PyRun_StringFlags on each 
call. 
Unluckily CO_GENERATOR_ALLOWED and CO_FUTURE_DIVISION
are not declared publically by Python.h.

Stefan




More information about the Python-list mailing list