def from_str(cls, elementstr):
        """Construct an instance from a string of the form 'token;key=val'."""
        ival, params = cls.parse(elementstr)
        return cls(ival, params)
Construct an instance from a string of the form 'token;key=val'.
cherrypy/lib/httputil.py