Changes between Version 6 and Version 7 of TracDev/ConfigApi
- Timestamp:
- Jan 8, 2011, 11:03:52 AM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracDev/ConfigApi
v6 v7 153 153 }}} 154 154 155 The first way uses the instance variable which is the actual list, while the second way uses the class variable which is the actual `ListOption` object.155 The first way uses the ''instance'' attribute which is the actual list, while the second way uses the ''class'' attribute which is the actual `ListOption` object. 156 156 157 157 When you try to access another component's defined options the difference between these two ways is less obvious, so be careful: … … 167 167 print type(OtherComponent.my_option) 168 168 }}} 169 170 For a more deeper understanding of how this implementation works, see the official [http://docs.python.org/howto/descriptor.html Descriptor HowTo Guide] - since the `Option` class is a data descriptor. 169 171 170 172 == Listing known options == #listing_options