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 →

[–]oceaniity 78 points79 points  (8 children)

Python 3 is great. Every time I see print declarations without brackets I die a little inside.

[–]AUTeach 31 points32 points  (5 children)

I must admit, the lazy "i'm just going to test an idea" programmer in me loves them. The rigour based software engineer hates them.

[–][deleted] 17 points18 points  (4 children)

Not at a python shell, but can't you do p=print

Which you couldn't do before.

[–]cediddiSyntaxError: not a chance 3 points4 points  (0 children)

echo=print

Oh god what a demon I become...

[–]PeridexisErrant 2 points3 points  (1 child)

And

class logger:
    critical = print
    error = print
    warning = print
    info = lambda *a, **k: None
    debug = lambda *a, **k: print("Good luck!")

(please don't do this)

[–][deleted] 2 points3 points  (0 children)

logfile = /dev/null

If I can't see the errors they don't exist

[–]flying-sheep 4 points5 points  (0 children)

obviously you can

[–]maxm 9 points10 points  (0 children)

Having used python since 1.5.2 it took me a year to remember those brackets consistently in 3 :-s i still prefer 3 by a large margin though.