Miki Tebeka <miki.teb...@gmail.com> writes:

[...]
> (Note that I want over http://wiki.python.org/moin/PythonWarts already).

The "local variable and scoping" is, imho, something to be really
careful about. Here is an example:

class A(object):
    def __init__(self):
        self.x = 0
    def r(self):
        return x # forgot self

a = A()
x = 1
print a.r() # prints 1

I know there is "no remedy". It's just really tricky.

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

Reply via email to