functools.partial.args

partial.args The leftmost positional arguments that will be prepended to the positional arguments provided to a partial object call.

functools.partial.func

partial.func A callable object or function. Calls to the partial object will be forwarded to func with new arguments and keywords.

functools.partial.keywords

partial.keywords The keyword arguments that will be supplied when the partial object is called.

functools.partial()

functools.partial(func, *args, **keywords) Return a new partial object which when called will behave like func called with the positional arguments args and keyword arguments keywords. If more arguments are supplied to the call, they are appended to args. If additional keyword arguments are supplied, they extend and override keywords. Roughly equivalent to: def partial(func, *args, **keywords): def newfunc(*fargs, **fkeywords): newkeywords = keywords.copy() newkeywords.up

ftplib.FTP_TLS.ccc()

FTP_TLS.ccc() Revert control channel back to plaintext. This can be useful to take advantage of firewalls that know how to handle NAT with non-secure FTP without opening fixed ports. New in version 3.3.

ftplib.FTP_TLS.prot_c()

FTP_TLS.prot_c() Set up clear text data connection.

ftplib.FTP_TLS.ssl_version

FTP_TLS.ssl_version The SSL version to use (defaults to ssl.PROTOCOL_SSLv23).

ftplib.FTP_TLS.prot_p()

FTP_TLS.prot_p() Set up secure data connection.

ftplib.FTP_TLS.auth()

FTP_TLS.auth() Set up a secure control connection by using TLS or SSL, depending on what is specified in the ssl_version attribute. Changed in version 3.4: The method now supports hostname check with ssl.SSLContext.check_hostname and Server Name Indication (see ssl.HAS_SNI).

ftplib.FTP.transfercmd()

FTP.transfercmd(cmd, rest=None) Initiate a transfer over the data connection. If the transfer is active, send an EPRT or PORT command and the transfer command specified by cmd, and accept the connection. If the server is passive, send an EPSV or PASV command, connect to it, and start the transfer command. Either way, return the socket for the connection. If optional rest is given, a REST command is sent to the server, passing rest as an argument. rest is usually a byte offset into the reques