1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 __docformat__ = 'reStructuredText'
20
22 """
23 Abstract, represents a collection of attributes.
24
25 Attribute collections can represent infinite amounts of attributes,
26 generate them at request, ...
27
28 Methods:
29
30 - `getattr_`: Try to get the value of an attribute
31 - `setattr_`: Try to set the value of an attribute
32 - `delattr_`: Try to delete an attribute
33 """
34
35
36
38 """
39 Try to get the value of an attribute
40
41 Parameters:
42
43 `name` :: string
44 name of the attribute to get
45
46 Returns whether the attribute was found, and if so, its value
47 :: (found_attribute::bool, value)
48 """
49 raise NotImplementedError('abstract')
50
52 """
53 Try to set the value of an attribute
54
55 Parameters:
56
57 `name` :: string
58 name of the attribute to set
59
60 `value`
61 the new value
62
63 Returns True, if the attribute was found, False otherwise
64 """
65 raise NotImplementedError('abstract')
66
68 """
69 Try to delete an attribute
70
71 Parameters:
72
73 `name` :: string
74 name of the attribute to delete
75
76 Returns True, if the attribute was found, False otherwise
77 """
78 raise NotImplementedError('abstract')
79