On 04/08/2023 15.34, Jason Friedman via Python-list wrote:
import inspect
def my_example(arg1, arg2):
print(inspect.stack()[0][3])
my_frame = inspect.currentframe()
args,_,_,values = inspect.getargvalues(my_frame)
args_rendered = [f"{x}: {values[x]}" for x in args]
print(args_rendered)
import inspect
def my_example(arg1, arg2):
print(inspect.stack()[0][3])
my_frame = inspect.currentframe()
args,_,_,values = inspect.getargvalues(my_frame)
args_rendered = [f"{x}: {values[x]}" for x in args]
print(args_rendered)
my_example("a", 1)
The above "works" in the sense it prints what I
Hello everyone,
I'm pleased to announce the release of Django-Compat-Patcher 0.12, which
now includes 86 compatibility shims ranging from Django 1.6 to 4.2
If your Django project is incompatible with handy pluggable apps, or if
you reach the depths of dependency hell when attempting to
Dear pythoneers,
I'm pleased to announce a little update of the RSFile I/O Library,
bringing support for recent Python versions.
RSFile provides drop-in replacements for io classes and for the open()
builtin.
Its goal is to provide a cross-platform, reliable, and comprehensive
synchronous