msilib.Directory.remove_pyc()

remove_pyc() Remove .pyc/.pyo files on uninstall.

decimal.Decimal.ln()

ln(context=None) Return the natural (base e) logarithm of the operand. The result is correctly rounded using the ROUND_HALF_EVEN rounding mode.

logging.handlers.WatchedFileHandler

class logging.handlers.WatchedFileHandler(filename, mode='a', encoding=None, delay=False) Returns a new instance of the WatchedFileHandler class. The specified file is opened and used as the stream for logging. If mode is not specified, 'a' is used. If encoding is not None, it is used to open the file with that encoding. If delay is true, then file opening is deferred until the first call to emit(). By default, the file grows indefinitely. emit(record) Outputs the record to the file, but

doctest.DocTest.docstring

docstring The string that the test was extracted from, or ‘None’ if the string is unavailable, or if the test was not extracted from a string.

importlib.machinery.ExtensionFileLoader.get_code()

get_code(fullname) Returns None as extension modules lack a code object.

xml.parsers.expat.xmlparser.buffer_text

xmlparser.buffer_text Setting this to true causes the xmlparser object to buffer textual content returned by Expat to avoid multiple calls to the CharacterDataHandler() callback whenever possible. This can improve performance substantially since Expat normally breaks character data into chunks at every line ending. This attribute is false by default, and may be changed at any time.

sys._clear_type_cache()

sys._clear_type_cache() Clear the internal type cache. The type cache is used to speed up attribute and method lookups. Use the function only to drop unnecessary references during reference leak debugging. This function should be used for internal and specialized purposes only.

ossaudiodev.oss_audio_device.sync()

oss_audio_device.sync() Wait until the sound device has played every byte in its buffer. (This happens implicitly when the device is closed.) The OSS documentation recommends closing and re-opening the device rather than using sync().

asyncio.Lock.locked()

locked() Return True if the lock is acquired.

unittest.mock.Mock.assert_called_once_with()

assert_called_once_with(*args, **kwargs) Assert that the mock was called exactly once and with the specified arguments. >>> mock = Mock(return_value=None) >>> mock('foo', bar='baz') >>> mock.assert_called_once_with('foo', bar='baz') >>> mock('foo', bar='baz') >>> mock.assert_called_once_with('foo', bar='baz') Traceback (most recent call last): ... AssertionError: Expected 'mock' to be called once. Called 2 times.