cmd.Cmd.precmd()

Cmd.precmd(line) Hook method executed just before the command line line is interpreted, but after the input prompt is generated and issued. This method is a stub in Cmd; it exists to be overridden by subclasses. The return value is used as the command which will be executed by the onecmd() method; the precmd() implementation may re-write the command or simply return line unchanged.

IndexError

exception IndexError Raised when a sequence subscript is out of range. (Slice indices are silently truncated to fall in the allowed range; if an index is not an integer, TypeError is raised.)

importlib.machinery.SourcelessFileLoader.name

name The name of the module the loader will handle.

asyncore.dispatcher.handle_read()

handle_read() Called when the asynchronous loop detects that a read() call on the channel’s socket will succeed.

os.stat_result.st_file_attributes

st_file_attributes Windows file attributes: dwFileAttributes member of the BY_HANDLE_FILE_INFORMATION structure returned by GetFileInformationByHandle(). See the FILE_ATTRIBUTE_* constants in the stat module.

bytearray.isupper()

bytearray.isupper() Return true if there is at least one uppercase alphabetic ASCII character in the sequence and no lowercase ASCII characters, false otherwise. For example: >>> b'HELLO WORLD'.isupper() True >>> b'Hello world'.isupper() False Lowercase ASCII characters are those byte values in the sequence b'abcdefghijklmnopqrstuvwxyz'. Uppercase ASCII characters are those byte values in the sequence b'ABCDEFGHIJKLMNOPQRSTUVWXYZ'.

asyncio.AbstractEventLoop.set_debug()

AbstractEventLoop.set_debug(enabled: bool) Set the debug mode of the event loop. New in version 3.4.2.

inspect.getinnerframes()

inspect.getinnerframes(traceback, context=1) Get a list of frame records for a traceback’s frame and all inner frames. These frames represent calls made as a consequence of frame. The first entry in the list represents traceback; the last entry represents where the exception was raised. Changed in version 3.5: A list of named tuples FrameInfo(frame, filename, lineno, function, code_context, index) is returned.

unittest.TestCase.output

output A list of str objects with the formatted output of matching messages.

bytearray.hex()

bytearray.hex() Return a string object containing two hexadecimal digits for each byte in the instance. >>> bytearray(b'\xf0\xf1\xf2').hex() 'f0f1f2' New in version 3.5.