|
[Rivet] python2 changeDavid Grellscheid david.grellscheid at durham.ac.ukThu May 15 10:45:24 BST 2014
> Does anybody have experience with the __future__ compatibility layer? They change the behaviour of features, so that a python2 interpreter does the right thing with python3 code: As the first lines in the file write: from __future__ import print_function # works from 2.6 from __future__ import division # from 2.5 from __future__ import with_statement # from 2.5 from __future__ import # ... whatever else you need, see ... # https://docs.python.org/2/library/__future__.html David
More information about the Rivet mailing list |