def add_attr(self, name, value):
        """Add an attribute to an ``Block`` object"""
        setattr(self, name, value)
        self.attrs.append(name)
def add_attr ( self , name , value ) : setattr ( self , name , value ) self . attrs . append ( name )
Add an attribute to an ``Block`` object