bits-499 released with these changes:

  • Support GRUB commands implemented in Python

  • Provide a pydoc command

  • Include pydoc's data directory, so pydoc works on keywords and topics, not just Python modules and functions

  • Add more Python modules from the standard library:

    • atexit (functions not actually invoked yet, though)
    • formatter
    • getopt
    • logging (but not logging.config or logging.handlers, which want network sockets)
  • Fix our implementation of the Python os module to re-export bits of os.path expected for compatibility

  • Implement time.localtime and time.struct_time. localtime uses CMOS time, since we don't have any time zone information available.

  • Improvements to the Python acpi module:

    • Functions to list all available ACPI tables
    • Expose ACPI-related API from the acpi module, not the bits module
    • Parsing and output formatting improvements
  • In the built-in _bits module, change all internal functions to have '_' prefixes, to hide them from the public bits module

  • python testsuite: In generic MSR-handling code, handle GPF and avoid doing math on None

  • Add a preliminary test to verify processor bus numbers from discovery algorithm against MSR if available

  • Additions to MSR consistency blacklists for Sandy Bridge and Jaketown