Next / Previous / Contents / TCC Help System / NM Tech homepage

11.6. TaxonPhotoSet.nForms(): Number of contained forms

This method returns the number of forms referred to self. Since the dictionary self._formMap has one entry for each referred form, we need only return the cardinality of that dictionary.

catweb
# - - -   T a x o n P h o t o S e t . n F o r m s

    def nForms(self):
        '''How many form names are referred to self?
        '''
        return  len(self._formMap)