termination


Why not have a termination function built into python that can have parameters it's set by the code


I would like a function that terminates my script and ends the program without any trace-back or error reporting.
e.g.
terminate(0) #this would have no effect,
terminate(1) #this would stop execution and kill the program
I have a script that reads a file from a user defined function and am looking for an elegant termination if certain conditions exist in the file.
I have tried importing sys and using exit() however this seems to give reporting and is not the clean exit I want.
snapshot of code

Related Links

Why not have a termination function built into python that can have parameters it's set by the code
Proving equivalence of well-founded recursion
Unsolvable size constraints
Eclipse Luna marketplace
Termination check on unionWith
Agda: Equivalence relation for sub-colists

Categories

HOME
kde
path-finding
react-router
yarn
autotools
pheatmap
awesome-wm
iggrid
kibana-4
google-cloud-ml
fallback
lombok
cloudhub
realex-payments-api
cultureinfo
angular2-aot
dynamic-featured-image
poltergeist
selectedindexchanged
social-media
maxmind
nouislider
r-raster
preg-match-all
twilio-api
kendo-ui-grid
perlin-noise
rotational-matrices
wallpaper
mapdb
android-browser
theano.scan
uft-api
pdf-reactor
unixodbc
parentheses
ifs
mcafee
crosswalk-runtime
angular-strap
essence
bgp
livequery
php-parse-error
associative-array
historian
freedesktop.org
teamcity-8.0
cannon.js
comobject
fouc
cakephp-3.1
ibaction
bigbluebutton
clicktag
coldbox
mdt
javafx-webengine
reactfx
system.net.webexception
viadeo
imdbpy
apc
coverflow
shellexecute
seed
android-hardware
robotics-studio
referrer
revisions
castle-monorail
rescale
database-management
substrings
uimenucontroller
anti-piracy
noscript

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App