(self, name, default=None)
return default
Return the first part with that name or a default value (None).
Return the first part with that name or a default value (None).
Return the first part with that name or a default value ( None ) .
def get(self, name, default=None):
        ''' Return the first part with that name or a default value (None). '''
        for part in self:
            if name == part.name:
                return part
        return default
def get ( self , name , default = None ) : for part in self : if name == part . name : return part return default