<- Back | Index | Forward ->
List Attributes
Some object attributes are lists of objects:
for cycle in mol.cycles:
print cycle
for bond in cycle.bonds:
print " ", bond
print " ", bond.atoms
The object's __getattr__:
- creates the right stream for the handle and attribute,
- gets the handles from the stream,
- adds reference counting, if needed,
- encapsulates them inside a new Python object.