summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-10-10 18:58:15 (GMT)
committerGuido van Rossum <guido@python.org>1998-10-10 18:58:15 (GMT)
commit3d0669d8a15961245e8e118583863e2b18123f1d (patch)
tree23042e387be07f4af3229afc75cc309c82c5b432
parent3b4ca0ddad8d1e224f71e89f4c7fbc8de5c6edc4 (diff)
downloadcpython-3d0669d8a15961245e8e118583863e2b18123f1d.zip
cpython-3d0669d8a15961245e8e118583863e2b18123f1d.tar.gz
cpython-3d0669d8a15961245e8e118583863e2b18123f1d.tar.bz2
Add Unix main script and test program.
-rwxr-xr-xTools/idle/idle3
-rw-r--r--Tools/idle/test.py19
2 files changed, 22 insertions, 0 deletions
diff --git a/Tools/idle/idle b/Tools/idle/idle
new file mode 100755
index 0000000..3c06e05
--- /dev/null
+++ b/Tools/idle/idle
@@ -0,0 +1,3 @@
+#! /usr/bin/env python
+import PyShell
+PyShell.main()
diff --git a/Tools/idle/test.py b/Tools/idle/test.py
new file mode 100644
index 0000000..36e1ab2
--- /dev/null
+++ b/Tools/idle/test.py
@@ -0,0 +1,19 @@
+
+def f(): a = b = c = d = e = 0; g()
+
+def g(): h()
+
+def h(): i()
+
+def i(): j()
+
+def j(): k()
+
+def k(): l()
+
+l = lambda: test()
+
+def test():
+ exec "import string; string.capwords(None)" in {}
+
+k()