You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
komandr/libs/bprint.py

4 lines
146 B

from inspect import stack
from os.path import basename
def p(*args):
print(f"[{basename(stack()[1].filename)}/{stack()[1].function}]:", *args)