summaryrefslogtreecommitdiffstats
path: root/Tools/idle/testcode.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1999-01-12 22:14:34 (GMT)
committerGuido van Rossum <guido@python.org>1999-01-12 22:14:34 (GMT)
commit894ee6f668df03c1223b78c545a196fd6e308c77 (patch)
tree3d07b6ac8417e39828c7c600ab9ee77eababe836 /Tools/idle/testcode.py
parent5051f4f80dc001219218c49a5db4a37d821783a7 (diff)
downloadcpython-894ee6f668df03c1223b78c545a196fd6e308c77.zip
cpython-894ee6f668df03c1223b78c545a196fd6e308c77.tar.gz
cpython-894ee6f668df03c1223b78c545a196fd6e308c77.tar.bz2
Renamed test.py to testcode.py so one can import Python's
test package from inside IDLE. (Suggested by Jack Jansen.)
Diffstat (limited to 'Tools/idle/testcode.py')
-rw-r--r--Tools/idle/testcode.py31
1 files changed, 31 insertions, 0 deletions
diff --git a/Tools/idle/testcode.py b/Tools/idle/testcode.py
new file mode 100644
index 0000000..05eaa56
--- /dev/null
+++ b/Tools/idle/testcode.py
@@ -0,0 +1,31 @@
+import string
+
+def f():
+ a = 0
+ b = 1
+ c = 2
+ d = 3
+ e = 4
+ g()
+
+def g():
+ h()
+
+def h():
+ i()
+
+def i():
+ j()
+
+def j():
+ k()
+
+def k():
+ l()
+
+l = lambda: test()
+
+def test():
+ string.capwords(1)
+
+f()