pathlib.Path.read_text()

Path.read_text(encoding=None, errors=None) Return the decoded contents of the pointed-to file as a string: >>> p = Path('my_text_file') >>> p.write_text('Text file contents') 18 >>> p.read_text() 'Text file contents' The optional parameters have the same meaning as in open(). New in version 3.5.

winsound.Beep()

winsound.Beep(frequency, duration) Beep the PC’s speaker. The frequency parameter specifies frequency, in hertz, of the sound, and must be in the range 37 through 32,767. The duration parameter specifies the number of milliseconds the sound should last. If the system is not able to beep the speaker, RuntimeError is raised.

doctest.set_unittest_reportflags()

doctest.set_unittest_reportflags(flags) Set the doctest reporting flags to use. Argument flags takes the bitwise-or of option flags. See section Option Flags. Only “reporting flags” can be used. This is a module-global setting, and affects all future doctests run by module unittest: the runTest() method of DocTestCase looks at the option flags specified for the test case when the DocTestCase instance was constructed. If no reporting flags were specified (which is the typical and expected cas

ctypes.resize()

ctypes.resize(obj, size) This function resizes the internal memory buffer of obj, which must be an instance of a ctypes type. It is not possible to make the buffer smaller than the native size of the objects type, as given by sizeof(type(obj)), but it is possible to enlarge the buffer.

logging.Logger.addHandler()

Logger.addHandler(hdlr) Adds the specified handler hdlr to this logger.

asyncio.Handle.cancel()

cancel() Cancel the call. If the callback is already canceled or executed, this method has no effect.

calendar.month_name

calendar.month_name An array that represents the months of the year in the current locale. This follows normal convention of January being month number 1, so it has a length of 13 and month_name[0] is the empty string.

array.array.pop()

array.pop([i]) Removes the item with the index i from the array and returns it. The optional argument defaults to -1, so that by default the last item is removed and returned.

calendar.Calendar.monthdayscalendar()

monthdayscalendar(year, month) Return a list of the weeks in the month month of the year as full weeks. Weeks are lists of seven day numbers.

tkinter.tix.ComboBox

class tkinter.tix.ComboBox The ComboBox widget is similar to the combo box control in MS Windows. The user can select a choice by either typing in the entry subwidget or selecting from the listbox subwidget.