Pastebin
Paste #1240: Class Inheritence & misc
< previous paste - next paste>
Pasted by pranny
>>> class foo1(): ... def __init__(self, a, b): ... mod = a ... exc = b ... >>> class foo2(foo1): ... class Meta: ... model = super(mod) ... exclude = super(exc) ... Traceback (most recent call last): File "<stdin>", line 1, in <module> File "<stdin>", line 2, in foo2 File "<stdin>", line 3, in Meta NameError: name 'mod' is not defined
New Paste
Go to most recent paste.