2 >>> class Test(object):
3 ... def __init__(self, i):
7 >>> b.spam.eggs = Test(3)
8 >>> b.spam.eggs.spam = Test(4)
9 >>> b.spam.eggs.spam.eggs = Test(5)
21 Traceback (most recent call last):
22 AttributeError: 'Test' object has no attribute 'eggs'
29 >>> a.spam.eggs.spam.i
30 Traceback (most recent call last):
31 AttributeError: 'Test' object has no attribute 'eggs'
32 >>> b.spam.eggs.spam.i
49 Traceback (most recent call last):
50 AttributeError: 'Test' object has no attribute 'spam'
53 >>> a.spam.eggs.spam.i
55 >>> b.spam.eggs.spam.i