cmdln
cmdln copied to clipboard
Avoid the use of sys.exit(...) [moved]
This is Issue 5 moved from a Google Code project. Added by 2009-04-15T23:04:56.000Z by [email protected]. Please review that bug for more context and additional comments, but update this bug.
Original labels: Type-Enhancement, Priority-Low, OpSys-All, Component-Docs
Original description
Documentation points to using sys.exit(...) -- which must be avoided for
sys.exit has a side-effect of *printing* non-int objects to console.
One way to return process exit code is to use 'raise SystemExit'