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 Sat Dec 12 08:42:59 2015 +0530 @@ -241,11 +241,50 @@ else: return self.url + +_SplitResultBase.__doc__ = """ +SplitResult(scheme, netloc, path, query, fragment) + +A 5-tuple that contains the different components of url. +Similar to ParseResult 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) + +A 6-tuple that contains components of a parsed url. +""" +_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):