Logo Search packages:      
Sourcecode: python-biopython version File versions  Download package

Iterate over the (entity, property) list. Handy alternative to 
the dictionary-like access.

Example:
    >>> for (res, property) in iter(map):
    ...     print res, property

@return: iterator

Definition at line 93 of file AbstractPropertyMap.py.

References Bio::PDB::AbstractPropertyMap::AbstractPropertyMap.property_list.

Referenced by Bio.SeqIO._index._IndexedSeqFileDict.items(), Bio.SeqIO._index._IndexedSeqFileDict.iteritems(), Bio.SeqIO._index._IndexedSeqFileDict.iterkeys(), Bio.SeqIO._index._IndexedSeqFileDict.itervalues(), Bio.SeqIO._index._IndexedSeqFileDict.keys(), and Bio.SeqIO._index._IndexedSeqFileDict.values().

00093 
    def __iter__(self):
        """
        Iterate over the (entity, property) list. Handy alternative to 
        the dictionary-like access.

        Example:
            >>> for (res, property) in iter(map):
            ...     print res, property

        @return: iterator
        """
        for i in range(0, len(self.property_list)):
            yield self.property_list[i]


Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index