(self, product)
return(None)
Determine the type of an object we've previously created
Determine the type of an object we've previously created
Determine the type of an object we ve previously created
def type(self, product):
        """Determine the type of an object we've previously created"""
        for atype in self.types:
            # Skip over generic types
            if atype in ['Container', 'Paned']:
                continue
            if self.isinstance(product, atype):
                return(atype)
        return(None)
def type ( self , product ) : for atype in self . types : # Skip over generic types if atype in [ 'Container' , 'Paned' ] : continue if self . isinstance ( product , atype ) : return ( atype ) return ( None )