New issue 2311: from __future__ import division does not work when run from $PYTHONSTARTUP https://bitbucket.org/pypy/pypy/issues/2311/from-__future__-import-division-does-not
Frank Siler: I am building 5.1.2 by hand to test, but I haven't found any recent tickets that seem on point for this. This is the stock MacPorts build out of MacOS 10.9. ``` % cat test.py from __future__ import division % PYTHONSTARTUP=test.py pypy Python 2.7.10 (b0a649e90b6642251fb4a765fe5b27a97b1319a9, May 08 2016, 04:42:24) [PyPy 5.1.1 with GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.57)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>>> 1/2 0 >>>> dir() ['__builtins__', '__doc__', '__name__', '__package__', 'division'] >>>> from __future__ import division >>>> 1/2 0.5 >>>> ``` _______________________________________________ pypy-issue mailing list pypy-issue@python.org https://mail.python.org/mailman/listinfo/pypy-issue