]> granicus.if.org Git - python/commitdiff
Add Unix main script and test program.
authorGuido van Rossum <guido@python.org>
Sat, 10 Oct 1998 18:58:15 +0000 (18:58 +0000)
committerGuido van Rossum <guido@python.org>
Sat, 10 Oct 1998 18:58:15 +0000 (18:58 +0000)
Tools/idle/idle [new file with mode: 0755]
Tools/idle/test.py [new file with mode: 0644]

diff --git a/Tools/idle/idle b/Tools/idle/idle
new file mode 100755 (executable)
index 0000000..3c06e05
--- /dev/null
@@ -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 (file)
index 0000000..36e1ab2
--- /dev/null
@@ -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()