socket.socket.detach()

socket.detach() Put the socket object into closed state without actually closing the underlying file descriptor. The file descriptor is returned, and can be reused for other purposes. New in version 3.2.

math.isinf()

math.isinf(x) Return True if x is a positive or negative infinity, and False otherwise.

stat.S_ISREG()

stat.S_ISREG(mode) Return non-zero if the mode is from a regular file.

os.extsep

os.extsep The character which separates the base filename from the extension; for example, the '.' in os.py. Also available via os.path.

typing.NamedTuple()

typing.NamedTuple(typename, fields) Typed version of namedtuple. Usage: Employee = typing.NamedTuple('Employee', [('name', str), ('id', int)]) This is equivalent to: Employee = collections.namedtuple('Employee', ['name', 'id']) The resulting class has one extra attribute: _field_types, giving a dict mapping field names to types. (The field names are in the _fields attribute, which is part of the namedtuple API.)

unittest.TestCase.assertGreaterEqual()

assertGreaterEqual(first, second, msg=None) assertLess(first, second, msg=None) assertLessEqual(first, second, msg=None) Test that first is respectively >, >=, < or <= than second depending on the method name. If not, the test will fail: >>> self.assertGreaterEqual(3, 4) AssertionError: "3" unexpectedly not greater than or equal to "4" New in version 3.1.

nntplib.NNTP.next()

NNTP.next() Send a NEXT command. Return as for stat().

asyncio.Future.cancelled()

cancelled() Return True if the future was cancelled.

sqlite3.Connection.executescript()

executescript(sql_script) This is a nonstandard shortcut that creates a cursor object by calling the cursor() method, calls the cursor’s executescript() method with the given sql_script, and returns the cursor.

tkinter.ttk.Widget.instate()

instate(statespec, callback=None, *args, **kw) Test the widget’s state. If a callback is not specified, returns True if the widget state matches statespec and False otherwise. If callback is specified then it is called with args if widget state matches statespec.