turtle.clearstamps()

turtle.clearstamps(n=None) Parameters: n – an integer (or None) Delete all or first/last n of turtle’s stamps. If n is None, delete all stamps, if n > 0 delete first n stamps, else if n < 0 delete last n stamps. >>> for i in range(8): ... turtle.stamp(); turtle.fd(30) 13 14 15 16 17 18 19 20 >>> turtle.clearstamps(2) >>> turtle.clearstamps(-2) >>> turtle.clearstamps()

UnicodeDecodeError

exception UnicodeDecodeError Raised when a Unicode-related error occurs during decoding. It is a subclass of UnicodeError.

select.epoll.unregister()

epoll.unregister(fd) Remove a registered file descriptor from the epoll object.

importlib.abc.Loader.create_module()

create_module(spec) A method that returns the module object to use when importing a module. This method may return None, indicating that default module creation semantics should take place. New in version 3.4. Changed in version 3.5: Starting in Python 3.6, this method will not be optional when exec_module() is defined.

mailbox.Maildir

class mailbox.Maildir(dirname, factory=None, create=True) A subclass of Mailbox for mailboxes in Maildir format. Parameter factory is a callable object that accepts a file-like message representation (which behaves as if opened in binary mode) and returns a custom representation. If factory is None, MaildirMessage is used as the default message representation. If create is True, the mailbox is created if it does not exist. It is for historical reasons that dirname is named as such rather tha

xml.etree.ElementTree.ElementTree.findall()

findall(match, namespaces=None) Same as Element.findall(), starting at the root of the tree.

unittest.TestCase.setUp()

setUp() Method called to prepare the test fixture. This is called immediately before calling the test method; other than AssertionError or SkipTest, any exception raised by this method will be considered an error rather than a test failure. The default implementation does nothing.

decimal.Decimal.is_infinite()

is_infinite() Return True if the argument is either positive or negative infinity and False otherwise.

unittest.mock.Mock.assert_not_called()

assert_not_called() Assert the mock was never called. >>> m = Mock() >>> m.hello.assert_not_called() >>> obj = m.hello() >>> m.hello.assert_not_called() Traceback (most recent call last): ... AssertionError: Expected 'hello' to not have been called. Called 1 times. New in version 3.5.

curses.pair_content()

curses.pair_content(pair_number) Return a tuple (fg, bg) containing the colors for the requested color pair. The value of pair_number must be between 1 and COLOR_PAIRS - 1.