Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
dmoho
· 17y ago · 0 comments
What if the assignment to the boolean was only one of the things you wanted to execute based on the result of the if statement?
Comments
[–]
jksmith
17y ago
Even then, I'd rather see:
DEBUG = socket.gethostname() == 'developmentcomp'
if DEBUG then...
[–]
rbanffy
17y ago
It's not