1 2 3 4 5 6 7 8 9 10 11
#!/usr/bin/env python def mangle_foo(foo, bar): foo.append(bar) def auto_mangle_foo(bar): mangle_foo(foo, bar) def create_foo(): global foo foo = [1,2,3]