18th August 2021
Computer Science⚑
GNULinux⚑
Bash⚑
-
New: Remove an environment variable.
To remove an exported environment variable use:
unset VARIABLE
Programming⚑
Docstrings⚑
-
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 PEP 257
Other⚑
-
New: Breakpoint().
Since Python 3.7, we can just call
breakpoint()
and this will importpdb
(or the debugger defined in the environment variablePYTHONBREAKPOINT
) 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.