GitHub

class_static_variable.py

print(f"token_1.number: {token_1.number}, token_1.color: {token_1.color}") print(f"token_2.number: {token_2.number}, token_2.color: {token_2.color}") print(f"token_3 ...
This is a follow-up to this project since the author archived it, preferring the varname library which used to cover nameof, but then varname deprecated it. UPDATE 20/06/2025: nameof() is now back in ...