email.parser.Parser

class email.parser.Parser(_class=email.message.Message, *, policy=policy.compat32) The constructor for the Parser class takes an optional argument _class. This must be a callable factory (such as a function or a class), and it is used whenever a sub-message object needs to be created. It defaults to Message (see email.message). The factory will be called without arguments. If policy is specified (it must be an instance of a policy class) use the rules it specifies to update the representatio

tkinter.ttk.Combobox.current()

current(newindex=None) If newindex is specified, sets the combobox value to the element position newindex. Otherwise, returns the index of the current value or -1 if the current value is not in the values list.

uuid.uuid5()

uuid.uuid5(namespace, name) Generate a UUID based on the SHA-1 hash of a namespace identifier (which is a UUID) and a name (which is a string).

str.zfill()

str.zfill(width) Return a copy of the string left filled with ASCII '0' digits to make a string of length width. A leading sign prefix ('+'/'-') is handled by inserting the padding after the sign character rather than before. The original string is returned if width is less than or equal to len(s). For example: >>> "42".zfill(5) '00042' >>> "-42".zfill(5) '-0042'

parser.st2tuple()

parser.st2tuple(st, line_info=False, col_info=False) This function accepts an ST object from the caller in st and returns a Python tuple representing the equivalent parse tree. Other than returning a tuple instead of a list, this function is identical to st2list(). If line_info is true, line number information will be included for all terminal tokens as a third element of the list representing the token. This information is omitted if the flag is false or omitted.

traceback.TracebackException.text

text For syntax errors - the text where the error occurred.

fileinput.isfirstline()

fileinput.isfirstline() Returns true if the line just read is the first line of its file, otherwise returns false.

mimetypes.MimeTypes.guess_type()

MimeTypes.guess_type(url, strict=True) Similar to the guess_type() function, using the tables stored as part of the object.

os.sched_param

class os.sched_param(sched_priority) This class represents tunable scheduling parameters used in sched_setparam(), sched_setscheduler(), and sched_getparam(). It is immutable. At the moment, there is only one possible parameter: sched_priority The scheduling priority for a scheduling policy.

os.linesep

os.linesep The string used to separate (or, rather, terminate) lines on the current platform. This may be a single character, such as '\n' for POSIX, or multiple characters, for example, '\r\n' for Windows. Do not use os.linesep as a line terminator when writing files opened in text mode (the default); use a single '\n' instead, on all platforms.