sys.executable

sys.executable A string giving the absolute path of the executable binary for the Python interpreter, on systems where this makes sense. If Python is unable to retrieve the real path to its executable, sys.executable will be an empty string or None.

audioop.avg()

audioop.avg(fragment, width) Return the average over all samples in the fragment.

xml.dom.Node.hasAttributes()

Node.hasAttributes() Returns true if the node has any attributes.

unittest.TestCase.failureException

failureException This class attribute gives the exception raised by the test method. If a test framework needs to use a specialized exception, possibly to carry additional information, it must subclass this exception in order to “play fair” with the framework. The initial value of this attribute is AssertionError.

platform.python_branch()

platform.python_branch() Returns a string identifying the Python implementation SCM branch.

nntplib.NNTP.descriptions()

NNTP.descriptions(grouppattern) Send a LIST NEWSGROUPS command, where grouppattern is a wildmat string as specified in RFC 3977 (it’s essentially the same as DOS or UNIX shell wildcard strings). Return a pair (response, descriptions), where descriptions is a dictionary mapping group names to textual descriptions. >>> resp, descs = s.descriptions('gmane.comp.python.*') >>> len(descs) 295 >>> descs.popitem() ('gmane.comp.python.bio.general', 'BioPython discussion l

range.step

step The value of the step parameter (or 1 if the parameter was not supplied)

poplib.POP3.getwelcome()

POP3.getwelcome() Returns the greeting string sent by the POP3 server.

imaplib.IMAP4.store()

IMAP4.store(message_set, command, flag_list) Alters flag dispositions for messages in mailbox. command is specified by section 6.4.6 of RFC 2060 as being one of “FLAGS”, “+FLAGS”, or “-FLAGS”, optionally with a suffix of ”.SILENT”. For example, to set the delete flag on all messages: typ, data = M.search(None, 'ALL') for num in data[0].split(): M.store(num, '+FLAGS', '\\Deleted') M.expunge()

smtplib.SMTP.verify()

SMTP.verify(address) Check the validity of an address on this server using SMTP VRFY. Returns a tuple consisting of code 250 and a full RFC 822 address (including human name) if the user address is valid. Otherwise returns an SMTP error code of 400 or greater and an error string. Note Many sites disable SMTP VRFY in order to foil spammers.