Am Mittwoch, 7. Mai 2014 um 15:18:42, schrieb José Matos <[email protected]> > 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.
I don't get it. It is not what we want?
> 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�lse)
> ...
>
How works this code in python2?
Sorry for my apparent ignorance.
Kornel
signature.asc
Description: This is a digitally signed message part.
