def matching_base_url(self, url):
        """
        Return True if the initial part of `url` matches the base url
        passed to the initialiser of this object, and False otherwise.
        """

        n = len(self.baseurl)
        return url[0:n] == self.baseurl
def matching_base_url ( self , url ) : n = len ( self . baseurl ) return url [ 0 : n ] == self . baseurl
Return True if the initial part of `url` matches the base url
        passed to the initialiser of this object, and False otherwise.