On Fri, 04 Nov 2005 10:48:54 +0000, Antoon Pardon wrote:

> Please explain why this is illegal.
> 
> x = 1
> def f():
>   x += 1

Because names in function namespaces don't have inheritance.


-- 
Steven.

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to