On Wednesday 07 May 2014 11:23:48 Kornel Benko wrote:
> At least prints could be rewritten with
> import sys
> ...
> sys.out.write(...)
> or
> output = open(...)
> output.write(....)
>
> No dependencies on python2 or python3.
> Just my 2 cents.
But then it would not look like neither python 2 or python 3. It is not
idiomatic in any version.
The print function support both cases in a more natural way:
In [1]: help (print)
...
print(...)
print(value, ..., sep=' ', end='\n', file=sys.stdout, flush=False)
...
--
José Abílio