[Tutor] Simple PassGen
Sander Sweers
sander.sweers at gmail.com
Mon Feb 9 23:47:47 CET 2009
On Mon, Feb 9, 2009 at 23:32, Marc Tompkins <marc.tompkins at gmail.com> wrote:
> Don't forget - the "print" statement is going away in 3.0, and you really
> should get into the habit of using the print() function instead for new
> code.
Why? Python's print statement is not going away in the 2.x series
which will be supported for years.Many guides and books use it so
unless those have been updated use it.
> IIRC, print() does NOT support suppressing the newline, but IMNRC (I
> might not remember correctly.)
It is even better in 3 as you can have any type of line ending. AFAIK
it can be a space or any character you can think of.
>From [1].
print([object, ...][, sep=' '][, end='\n'][, file=sys.stdout])
Greets
Sander
[1] http://docs.python.org/3.0/library/functions.html#print
More information about the Tutor
mailing list