``components`` is an iterator for all Components contained within this Component :return: A list of components :Example: >>> for subcomp in component.components: ... print(repr(component))
(self)
| 177 | |
| 178 | @property |
| 179 | def components(self) -> List['Component']: |
| 180 | """ |
| 181 | ``components`` is an iterator for all Components contained within this Component |
| 182 | |
| 183 | :return: A list of components |
| 184 | :Example: |
| 185 | |
| 186 | >>> for subcomp in component.components: |
| 187 | ... print(repr(component)) |
| 188 | """ |
| 189 | |
| 190 | count = ctypes.c_ulonglong(0) |
| 191 | bn_components = core.BNComponentGetContainedComponents(self.handle, count) |
| 192 | components = [] |
| 193 | try: |
| 194 | for i in range(count.value): |
| 195 | components.append(Component(core.BNNewComponentReference(bn_components[i]))) |
| 196 | finally: |
| 197 | core.BNFreeComponents(bn_components, count.value) |
| 198 | |
| 199 | return components |
| 200 | |
| 201 | @property |
| 202 | def function_list(self) -> List['function.Function']: |