Jump to

v12-l2-problem

(random out of 4)

What is the problem with the following Python code ?

def decorator(cls):
    cls.attr = 10

@decorator
class Object:
    attr = 11

obj = Object()

???