sys.exit()
Ivan Voras
ivoras at fer.hr
Thu Oct 9 09:51:01 EDT 2003
More information about the Python-list mailing list
Thu Oct 9 09:51:01 EDT 2003
- Previous message (by thread): sys.exit()
- Next message (by thread): sys.exit()
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Peter Hansen wrote: > Ivan Voras wrote: >> Is sys.exit() really a good choice? Is there something more elegant? >> (I tried return but it is valid only in a function) > sys.exit() is the proper, defined, cross-platform way to exit from > a program and return a value to the calling program. Change your > definition of elegant and you could consider it easily the most > elegant of all solutions. ;-) Ok. :) (Just for the record: I was looking for something that doesn't require a module import. But it is not important.) -- -- Every sufficiently advanced magic is indistinguishable from technology - Arthur C Anticlarke
- Previous message (by thread): sys.exit()
- Next message (by thread): sys.exit()
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list