[Tutor] Confirmation if command worked

Steve Willoughby steve at alchemy.com
Thu Aug 25 10:48:16 CEST 2011

On 25-Aug-11 01:37, Christian Witts wrote:
> Good catch, it should be `if child.exitstatus != None and
> child.exitstatus == 0:`

It's better form to say
	if child.exitstatus is not None
instead of comparing for equality to None with the != operator.

Steve Willoughby / steve at alchemy.com
"A ship in harbor is safe, but that is not what ships are built for."
PGP Fingerprint 4615 3CCE 0F29 AE6C 8FF4 CA01 73FE 997A 765D 696C

More information about the Tutor mailing list