How to use self.method() in class creation time?
<p>In some cases, I want to use instance method in class creation time.</p>

<p><strong>I just want to use self in permissions list..This is my question</strong></p>

<p>But it does not work. Is it some ways to solve the problem?</p>

<pre><code>class PermissionChecker(object):
    # how to use self in class create time.
    permissions = [self.is_superuser(), self.is_god()]

    def is_superuser(self):
        # use self.property just like self.name...
        return True

    def is_god(self):
        return True

class Child(PermissionChecker):
    permissions = PermissionChecker.permissions + [self.is_coder(),]

    def is_coder(self):
        return True
</code></pre>
