smtpd.SMTPChannel

class smtpd.SMTPChannel(server, conn, addr, data_size_limit=33554432, map=None, enable_SMTPUTF8=False, decode_data=True) Create a new SMTPChannel object which manages the communication between the server and a single SMTP client. conn and addr are as per the instance variables described below. data_size_limit specifies the maximum number of bytes that will be accepted in a DATA command. A value of None or 0 means no limit. enable_SMTPUTF8 determins whether the SMTPUTF8 extension (as defined

smtpd.PureProxy

class smtpd.PureProxy(localaddr, remoteaddr) Create a new pure proxy server. Arguments are as per SMTPServer. Everything will be relayed to remoteaddr. Note that running this has a good chance to make you into an open relay, so please be careful.

smtpd.MailmanProxy

class smtpd.MailmanProxy(localaddr, remoteaddr) Create a new pure proxy server. Arguments are as per SMTPServer. Everything will be relayed to remoteaddr, unless local mailman configurations knows about an address, in which case it will be handled via mailman. Note that running this has a good chance to make you into an open relay, so please be careful.

smtpd.DebuggingServer

class smtpd.DebuggingServer(localaddr, remoteaddr) Create a new debugging server. Arguments are as per SMTPServer. Messages will be discarded, and printed on stdout.

slice

class slice(stop) class slice(start, stop[, step]) Return a slice object representing the set of indices specified by range(start, stop, step). The start and step arguments default to None. Slice objects have read-only data attributes start, stop and step which merely return the argument values (or their default). They have no other explicit functionality; however they are used by Numerical Python and other third party extensions. Slice objects are also generated when extended indexing syntax

site.main()

site.main() Adds all the standard site-specific directories to the module search path. This function is called automatically when this module is imported, unless the Python interpreter was started with the -S flag. Changed in version 3.3: This function used to be called unconditionally.

site.getusersitepackages()

site.getusersitepackages() Return the path of the user-specific site-packages directory, USER_SITE. If it is not initialized yet, this function will also set it, respecting PYTHONNOUSERSITE and USER_BASE. New in version 3.2.

site.getuserbase()

site.getuserbase() Return the path of the user base directory, USER_BASE. If it is not initialized yet, this function will also set it, respecting PYTHONUSERBASE. New in version 3.2.

site.getsitepackages()

site.getsitepackages() Return a list containing all global site-packages directories. New in version 3.2.

site.addsitedir()

site.addsitedir(sitedir, known_paths=None) Add a directory to sys.path and process its .pth files. Typically used in sitecustomize or usercustomize (see above).