Return a new instance of the
NNTP class, representing a connection to the NNTP server running on the host, listening at the port. The default port is 119. If the optional user and password are provided, or if suitable credentials are present
/.netrc and the optional flag usenetrc is true (the default), the
AUTHINFO USER and
AUTHINFO PASS commands are used to identify and authenticate the user to the server. If the optional flag reader mode is true, then a
mode reader command is sent before authentication is performed. Reader mode is sometimes necessary if you are connecting to an NNTP server on the local machine and intend to call reader-specific commands, such as
group. If you get unexpected s, you might need to set reader mode. reader mode defaults to. usenetrc defaults to
Changed in version 2.4: usenetrc argument added.