=== Looping over cdp ===<source lang="python">for resiob in cdp.mol[0].res: print resiob.name, resiob.num print dir(resiob)['__class__', '__clone__', '__deepcopy__', '__delattr__', '__dict__', '__doc__', '__format__', '__getattribute__', '__hash__','__init__', '__module__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__','__subclasshook__', '__weakref__', '_mol_index', '_mol_name', '_res_index', '_spin_name_count', '_spin_num_count','is_empty', 'name', 'num', 'spin']</source> === Looping over spin ===
<source lang="python">
from pipe_control.mol_res_spin import spin_loop