Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
d0vs
on Dec 31, 2013
|
parent
|
context
|
favorite
| on:
Python 2.x vs 3.x use survey
Why the hell?
trwired
on Dec 31, 2013
|
next
[–]
I would hazard a guess that it is because the statement allows for easily adding a `print varname` in your code while debugging.
randlet
on Dec 31, 2013
|
parent
|
next
[–]
It's two extra chars to write print(varname). One if your editor auto-inserts matching parens!
sp332
on Dec 31, 2013
|
root
|
parent
|
next
[–]
Since the space is replaced by the first paren, it's either 0 or 1 more chars :)
Shish2k
on Dec 31, 2013
|
root
|
parent
|
next
[–]
Shift-9 is more fiddly to type than space though :P
dragonwriter
on Dec 31, 2013
|
parent
|
prev
|
next
[–]
print(varname) is one extra keystroke -- and a whole more convenient than a statement when you want to do it in a lambda for debugging.
sp332
on Dec 31, 2013
|
prev
[–]
I don't know, but it bugs people.
https://news.ycombinator.com/item?id=6987309
https://news.ycombinator.com/item?id=6985792
Consider applying for YC's Fall 2026 batch!
Applications
are open till July 27.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: