5 ms·Please, for the love of conciseness, never assign a boolean based on an if statement.by jksmith 17y agoPlease, for the love of conciseness, never assign a boolean based on an if statement.dmoho 17y agoWhat if the assignment to the boolean was only one of the things you wanted to execute based on the result of the if statement?rbanffy 17y agoIt's notjksmith 17y agoEven then, I'd rather see: DEBUG = socket.gethostname() == 'developmentcomp' if DEBUG then...aichcon 17y agoHow would you rewrite it?jpeterson 17y agoDEBUG = socket.gethostname() == 'developmentcomp'