exit(); halt; in pyhton
David Goodger
dgoodger at bigfoot.com
Sat Jun 3 22:08:22 EDT 2000
on 2000-06-03 21:45, Jilani Khaldi (jilanik at tin.it) wrote:
> How can I write this Pascal code in python?
> var
> x: double;
> begin
> if x = 0 then halt
> else
> do others things
> end;
>
> Freeing everything.
Does this do the job?
if x == 0 then:
import sys # only if it's not imported by the module itself
sys.exit()
--
David Goodger dgoodger at bigfoot.com Open-source projects:
- The Go Tools Project: http://gotools.sourceforge.net
(more to come!)
More information about the Python-list
mailing list