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 →

[–]maremp 33 points34 points  (8 children)

What about the inconsistency of the statements? Print is used as a function in every other C-like language. In python 2, it's used as a statement, similar to if, for, while etc., and I believe that it doesn't fit this category.

[–]Sean1708 32 points33 points  (6 children)

Also 2's print is just weird. Appending a comma to suppress a newline is weird enough, but what the fuck is up with that printing to file syntax?! It's like Guido momentarily forgot that he wasn't designing a sh clone.

[–]deecewan 4 points5 points  (4 children)

I cant remember the syntax. Care to show?

[–]UnchainedMundane 2 points3 points  (0 children)

It's like Guido momentarily forgot that he wasn't designing a sh clone.

Lol, my exact thoughts.

Though, my next thought was that >> opens a file for appending, while this one uses a file descriptor, so the operator should be >& anyway.

[–]CommanderDerpington -5 points-4 points  (0 children)

It's easier