doctest.DocTestParser.get_examples()

get_examples(string, name='') Extract all doctest examples from the given string, and return them as a list of Example objects. Line numbers are 0-based. The optional argument name is a name identifying this string, and is only used for error messages.

datetime.time.dst()

time.dst() If tzinfo is None, returns None, else returns self.tzinfo.dst(None), and raises an exception if the latter doesn’t return None, or a timedelta object representing a whole number of minutes with magnitude less than one day.

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.