tests/failure/shadow_locals_builtins_conflict.py | raw changeset files shortlog |
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/tests/failure/shadow_locals_builtins_conflict.py Fri Aug 20 01:43:51 2010 +0200 1.3 @@ -0,0 +1,15 @@ 1.4 +#!/usr/bin/env python 1.5 + 1.6 +def test(): 1.7 + x = [1, 2, 3] 1.8 + if x: 1.9 + y = len(x) 1.10 + else: 1.11 + def len(arg): 1.12 + return 0 1.13 + 1.14 + return len(x) 1.15 + 1.16 +test() 1.17 + 1.18 +# vim: tabstop=4 expandtab shiftwidth=4