Simon Percivall wrote: > def foo(): > def bar(): > foo.x = 3 That already had a different meaning - it assigns to an attribute of the function object created by executing def foo(). -- Greg