urllib.parse.ParseResultBytes

class urllib.parse.ParseResultBytes(scheme, netloc, path, params, query, fragment) Concrete class for urlparse() results containing bytes data. The decode() method returns a ParseResult instance. New in version 3.2.

urllib.parse.quote()

urllib.parse.quote(string, safe='/', encoding=None, errors=None) Replace special characters in string using the %xx escape. Letters, digits, and the characters '_.-' are never quoted. By default, this function is intended for quoting the path section of URL. The optional safe parameter specifies additional ASCII characters that should not be quoted — its default value is '/'. string may be either a str or a bytes. The optional encoding and errors parameters specify how to deal with non-ASCII

urllib.parse.DefragResultBytes

class urllib.parse.DefragResultBytes(url, fragment) Concrete class for urldefrag() results containing bytes data. The decode() method returns a DefragResult instance. New in version 3.2.

urllib.parse.DefragResult

class urllib.parse.DefragResult(url, fragment) Concrete class for urldefrag() results containing str data. The encode() method returns a DefragResultBytes instance. New in version 3.2.

urllib.error.URLError

exception urllib.error.URLError The handlers raise this exception (or derived exceptions) when they run into a problem. It is a subclass of OSError. reason The reason for this error. It can be a message string or another exception instance. Changed in version 3.3: URLError has been made a subclass of OSError instead of IOError.

urllib.parse.ParseResult

class urllib.parse.ParseResult(scheme, netloc, path, params, query, fragment) Concrete class for urlparse() results containing str data. The encode() method returns a ParseResultBytes instance.

urllib.error.HTTPError.reason

reason This is usually a string explaining the reason for this error.

urllib.error.URLError.reason

reason The reason for this error. It can be a message string or another exception instance.

unittest.TextTestRunner._makeResult()

_makeResult() This method returns the instance of TestResult used by run(). It is not intended to be called directly, but can be overridden in subclasses to provide a custom TestResult. _makeResult() instantiates the class or callable passed in the TextTestRunner constructor as the resultclass argument. It defaults to TextTestResult if no resultclass is provided. The result class is instantiated with the following arguments: stream, descriptions, verbosity

urllib.error.HTTPError

exception urllib.error.HTTPError Though being an exception (a subclass of URLError), an HTTPError can also function as a non-exceptional file-like return value (the same thing that urlopen() returns). This is useful when handling exotic HTTP errors, such as requests for authentication. code An HTTP status code as defined in RFC 2616. This numeric value corresponds to a value found in the dictionary of codes as found in http.server.BaseHTTPRequestHandler.responses. reason This is usu