python class variable not visible in __init__?
<p>This code produces an error message, which I found surprising:</p>

<pre><code>class Foo(object):
    custom = 1
    def __init__(self, custom=Foo.custom):
        self._custom = custom

x = Foo()
</code></pre>

<p>Can anyone provide enlightenment?</p>
