How to activate __future__ features in embedded Python?
Michael Hudson
mwh at python.net
Tue Jan 29 12:33:28 EST 2002
Stefan Franke <franke at ableton.com> writes:
> [sorry if this is a repost]
Don't think so.
> Doing
>
> Py_Initialize();
> PyRun_SimpleString("from __future__ import generators, division\n");
>
> doesn't seem to affect subsequent PyRun_String() calls.
You need PyRun_SimpleStringFlags.
Cheers,
M.
--
It's actually a corruption of "starling". They used to be carried.
Since they weighed a full pound (hence the name), they had to be
carried by two starlings in tandem, with a line between them.
-- Alan J Rosenthal explains "Pounds Sterling" on asr
More information about the Python-list
mailing list