Others
Decorators
Existing decorators in python
@cache
@cache
def some_func() -> int:
...print(some_func.cache_info())@atexit.register
import atexit
@atexit.register
def exit_handler() -> None:
print('something')Walrus Operator
Thousand separator
Aligning output strings
Formatting datetime
Formatting decimals
Showing "var name" in print
Getting Memory Variable Use
Random Functions
shuffle
random
randint
randrange
choice
choices
sample
seed
Last updated