<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
For exit:<br>
You need to put an argument (more input) :<br>
import sys<br>
sys.exit(0)<br>
The argument of exit is the return value of your script (0 = okay,
other = problem).<br>
sys.path is an attribute (of type list) of sys not a function.<br>
So don't put () after path.<br>
I hope it will help.<br>
Damien.<br>
<br>
Bob Nienhuis wrote:
<blockquote cite="mid45109da505092115361c4f4f70@mail.gmail.com"
 type="cite">Working my way through Alan Gauld's tutorial, and I am on
the<br>
section on modules.<br>
  <br>
When I call:<br>
import sys<br>
sys.exit()<br>
I get a traceback error saying it needs more input<br>
  <br>
Same when I do:<br>
import sys<br>
print sys.path()<br>
  <br>
Both of these work if I do<br>
sys.exit<br>
or print sys.path without the parentheses.<br>
Is this new behavior in Activstate 2.4, or do I need<br>
to set an environment variable?<br>
  <br>
Bob<br>
  <br>
  <br>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
Tutor maillist  -  <a class="moz-txt-link-abbreviated" href="mailto:Tutor@python.org">Tutor@python.org</a>
<a class="moz-txt-link-freetext" href="http://mail.python.org/mailman/listinfo/tutor">http://mail.python.org/mailman/listinfo/tutor</a>
  </pre>
</blockquote>
<br>
</body>
</html>