[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [master 1/6] analog: handle a config file we can't open.



On 05/20/2010 08:17 PM, Brian C. Lane wrote:

I really dislike the 'print>>  sys.sterr', reminds me of C++ I suppose.
Also, it is going away in Python 3.0 (which we should at least be
thinking about).

I'd rather see us start doing this:

from __future__ import print_function

print("Can't write into file %s" % options.output, file=sys.stderr)

Docs are here:

http://docs.python.org/library/functions.html#print


You're right, the future import is less evil than the print statement (even though both can me be converted to python3 according to msivak).

I'll fix this.

Ales


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]