Skip to content

23rd August 2021

Computer Science

GNULinux

(../computer_science/gnu_linux/alacritty.md)

  • New: Alacritty.

    (https://github.com/alacritty/alacritty) is a cross-platform, OpenGL terminal emulator.

  • New: Shortcuts.

    • Ctrl+Shift+Space: Enter vi mode.
  • New: Interactive functionality SSH.

Programming

(../computer_science/programming/python/unittest.md)

  • New: Python unittest and unittest.mock.

    The (https://docs.python.org/3/library/unittest.html) unit testing framework was originally inspired by JUnit and has a similar flavor as major unit testing frameworks in other languages. It supports test automation, sharing of setup and shutdown code for tests, aggregation of tests into collections, and independence of the tests from the reporting framework.

    (https://docs.python.org/3/library/unittest.mock.html) is a library for testing in Python. It allows you to replace parts of your system under test with mock objects and make assertions about how they have been used.

Other

  • New: Getattr.

    getattr(object, name)
    

    Return the value of the named attribute of object.name must be a string. If the string is the name of one of the object's attributes, the result is the value of that attribute. If the named attribute does not exist, default is returned if provided, otherwise AttributeError is raised.

  • New: Weekdays enum.

    Weekdays = IntEnum(
        "Weekdays",
        "Monday Tuesday Wednesday Thursday Friday Saturday Sunday",
        start=0,
    )
    
  • New: Str.strip().

    • str.strip(): Return a copy of the string with the leading and trailing characters removed.