Skip to content

18th August 2021

Computer Science

GNULinux

(../computer_science/gnu_linux/bash.md)

  • New: Remove an environment variable.

    To remove an exported environment variable use:

    unset VARIABLE
    

Programming

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

  • New: Python docstrings.

    A docstring is a string literal that occurs as the first statement in a module, function, class, or method definition. Such a docstring becomes the __doc__ special attribute of that object. See (https://www.python.org/dev/peps/pep-0257/)

Other

  • New: Breakpoint().

    Since Python 3.7, we can just call breakpoint() and this will import (https://docs.python.org/3/library/pdb.html) (or the debugger defined in the environment variable PYTHONBREAKPOINT) and set the breakpoint in that part of the code. This will stop the program execution once the breakpoint is reached. Then, an interactive console while appear.