Re:No-op statements syntactically valid only since Python X.Y
by tus666 on Monday June 06, 2022 @03:38PM
(#31645039)
Well in Perl there is...
warn("foo")
In Python you have to at least:
- remember not to forget to import sys - remember the file= syntax for the print statement - type about 10 extra characters
Bunch of annoying stuff when you are hurriedly debugging something...
Perl
Python Those look fairly similar. I prefer that print() is obviously a function call and file is a named parameter so the purpose is clear.