I just came across a very strange line of code in Python:
....
self.myReturnCode = externalProcessPopen.returncode
....
....
return not self.myReturnCode
....
What exactly return not
stands for? I am aware that the returncode of a Popen process is None while it's still running and a random number once it completes and exits successfully. But what exactly is the author of the code trying to achieve here?
It might also be worth noting that the same author later on checks the return code like this:
if not testClass.testFunction():
logger.error('Failed to execute Function')
....