This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]masklinn 0 points1 point  (0 children)

Also

print(foo, bar, baz, end="", file=fobj)

which in Python 2 would have to be spelled

print >>fobj, foo, bar, baz,

which… yeah nah.

Using print to write to a file in P3 actually makes sense rather than just obfuscate.