tests/global_implicit.py | raw changeset files shortlog |
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/tests/global_implicit.py Tue Jun 02 20:17:59 2009 +0200 1.3 @@ -0,0 +1,13 @@ 1.4 +#!/usr/bin/env python 1.5 + 1.6 +def f(x): 1.7 + global y 1.8 + y = x 1.9 + 1.10 +def g(): 1.11 + return y 1.12 + 1.13 +f(24680) 1.14 +result_24680 = g() 1.15 + 1.16 +# vim: tabstop=4 expandtab shiftwidth=4