On 15 August 2014 15:52, Garth N. Wells <gn...@cam.ac.uk> wrote: > > > In particular the print statement is a hard habit to change! But I'm > > sure we can manage. > > Is there maybe a magic module we can import to make the old print and > exception syntax throw an error? > > Garth > > > > NB: remember to add > > from __future__ import print_function to the top of a file that uses > > print(). >
In 2.7, at least. doing a from __future__ import print_function causes print "foo" to be a syntax error. -- Dr David Ham Departments of Mathematics and Computing Imperial College London http://www.imperial.ac.uk/people/david.ham
_______________________________________________ fenics mailing list fenics@fenicsproject.org http://fenicsproject.org/mailman/listinfo/fenics