How to activate __future__ features in embedded Python?

Stefan Franke franke at ableton.com
Tue Jan 29 12:11:47 EST 2002


[sorry if this is a repost]

Doing

  Py_Initialize();
  PyRun_SimpleString("from __future__ import generators, division\n");

doesn't seem to affect subsequent PyRun_String() calls.





More information about the Python-list mailing list