First page Back Continue Last page Overview Graphics

Slots II

After running the program, we get the following output:

42

Traceback (most recent call last):

File "slots_ex.py", line 12, in <module>

x.new = "not possible"

AttributeError: 'S' object has no attribute 'new'

We can see, that is not possible to create dynamically a new attribute. We fail to create an attribute „new“.