How does CO_FUTURE_DIVISION compiler flag get propagated?
hniksic at xemacs.org
Sat Jul 2 21:55:41 CEST 2011
Terry <twestley at gmail.com> writes:
> Future division ("from __future__ import division") works within
> scripts executed by import or execfile(). However, it does not work
> when entered interactively in the interpreter like this:
>>>> from __future__ import division
Are you referring to the interactive interpreter normally invoked by
just running "python"? That seems to work for me:
Python 2.7.1+ (r271:86832, Apr 11 2011, 18:13:53)
[GCC 4.5.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from __future__ import division
More information about the Python-list