diff -r dd67c8c53aea Lib/urllib/parse.py --- a/Lib/urllib/parse.py Mon Dec 07 02:31:11 2015 +0200 +++ b/Lib/urllib/parse.py Fri Dec 11 11:09:45 2015 +0530 @@ -241,11 +241,46 @@ else: return self.url + +_SplitResultBase.__doc__ = """ +SplitResult(scheme, netloc, path, query, fragment) + + Object to split a url into 5 components. + Similar to urlparse but does not split params. + +""" +_SplitResultBase.scheme.__doc__ = "Specifies URL scheme for the request." +_SplitResultBase.netloc.__doc__ = ('''Host and domain name where the request +is made to.''') +_SplitResultBase.path.__doc__ = ('''The Hierarchical path to the file +to download.''') +_SplitResultBase.query.__doc__ = "The query parameter." +_SplitResultBase.fragment.__doc__ = ('''The fragment identifier to point to an +internal link in the page.''') + + class SplitResult(_SplitResultBase, _NetlocResultMixinStr): __slots__ = () def geturl(self): return urlunsplit(self) +_ParseResultBase.__doc__ = """ +ParseResult(scheme, netloc, path, params, query, fragment) + + Object to parse a url into 6 components. + +""" +_ParseResultBase.scheme.__doc__ = "Specifies URL scheme for the request." +_ParseResultBase.netloc.__doc__ = ('''Host and domain name where the request +is made to.''') +_ParseResultBase.path.__doc__ = ('''The Hierarchical path to the file +to download.''') +_ParseResultBase.params.__doc__ = "Parameters for last path element." +_ParseResultBase.query.__doc__ = "The query parameter." +_ParseResultBase.fragment.__doc__ = ('''The fragment identifier to point to an +internal link in the page.''') + + class ParseResult(_ParseResultBase, _NetlocResultMixinStr): __slots__ = () def geturl(self):