mirror of
https://github.com/python/cpython.git
synced 2025-11-17 01:25:57 +00:00
Add Unix main script and test program.
This commit is contained in:
parent
3b4ca0ddad
commit
3d0669d8a1
2 changed files with 22 additions and 0 deletions
3
Tools/idle/idle
Executable file
3
Tools/idle/idle
Executable file
|
|
@ -0,0 +1,3 @@
|
||||||
|
#! /usr/bin/env python
|
||||||
|
import PyShell
|
||||||
|
PyShell.main()
|
||||||
19
Tools/idle/test.py
Normal file
19
Tools/idle/test.py
Normal file
|
|
@ -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()
|
||||||
Loading…
Add table
Add a link
Reference in a new issue