In a code such as:
if len(sys.argv) < 2:
print "I need arguments!"
sys.exit(1)
Is sys.exit() really a good choice? Is there something more elegant? (I
tried return but it is valid only in a function)
--
--
Every sufficiently advanced magic is indistinguishab le from technology
- Arthur C Anticlarke
if len(sys.argv) < 2:
print "I need arguments!"
sys.exit(1)
Is sys.exit() really a good choice? Is there something more elegant? (I
tried return but it is valid only in a function)
--
--
Every sufficiently advanced magic is indistinguishab le from technology
- Arthur C Anticlarke
Comment