def describe(self):
        """Information about this parameter"""
        desc = {
            'name': self.name,
            'description': self.description,
            # the Parameter might not have a type at all
            'type': self.type or 'unknown',
        }
        for attr in ['min', 'max', 'allowed', 'default']:
            v = getattr(self, attr)
            if v is not None:
                desc[attr] = v
        return desc
def describe ( self ) : desc = { 'name' : self . name , 'description' : self . description , 'type' : self . type or 'unknown' , } for attr in [ 'min' , 'max' , 'allowed' , 'default' ] : v = getattr ( self , attr ) if v is not None : desc [ attr ] = v return desc
Information about this parameter