unittest.mock.Mock.mock_calls

mock_calls mock_calls records all calls to the mock object, its methods, magic methods and return value mocks. >>> mock = MagicMock() >>> result = mock(1, 2, 3) >>> mock.first(a=3) <MagicMock name='mock.first()' id='...'> >>> mock.second() <MagicMock name='mock.second()' id='...'> >>> int(mock) 1 >>> result(1) <MagicMock name='mock()()' id='...'> >>> expected = [call(1, 2, 3), call.first(a=3), call.second(), ...

smtplib.SMTPSenderRefused

exception smtplib.SMTPSenderRefused Sender address refused. In addition to the attributes set by on all SMTPResponseException exceptions, this sets ‘sender’ to the string that the SMTP server refused.

numbers.Real

class numbers.Real To Complex, Real adds the operations that work on real numbers. In short, those are: a conversion to float, math.trunc(), round(), math.floor(), math.ceil(), divmod(), //, %, <, <=, >, and >=. Real also provides defaults for complex(), real, imag, and conjugate().

asyncio.AbstractEventLoop.create_unix_server()

coroutine AbstractEventLoop.create_unix_server(protocol_factory, path=None, *, sock=None, backlog=100, ssl=None) Similar to AbstractEventLoop.create_server(), but specific to the socket family AF_UNIX. This method is a coroutine. Availability: UNIX.

xmlrpc.client.ProtocolError.url

url The URI or URL that triggered the error.

array.array.typecode

array.typecode The typecode character used to create the array.

pstats.Stats.reverse_order()

reverse_order() This method for the Stats class reverses the ordering of the basic list within the object. Note that by default ascending vs descending order is properly selected based on the sort key of choice.

mailbox.mbox

class mailbox.mbox(path, factory=None, create=True) A subclass of Mailbox for mailboxes in mbox 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, mboxMessage is used as the default message representation. If create is True, the mailbox is created if it does not exist. The mbox format is the classic format for storing mail on Unix systems. All messa

_thread.LockType

_thread.LockType This is the type of lock objects.

socket.socket.get_inheritable()

socket.get_inheritable() Get the inheritable flag of the socket’s file descriptor or socket’s handle: True if the socket can be inherited in child processes, False if it cannot. New in version 3.4.