Consider the following code:
>>> class A:
... k = 1
...
>>> class B(A):
... k = super(B, cls).k
...
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "<console>", line 2, in B1
NameError: name 'B' is not defined
Why is this causing the error and what is the best way to get around it? Thanks.