Re: How to find the full class name for a frame

2023-08-03 Thread dn via Python-list
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)

How to find the full class name for a frame

2023-08-03 Thread Jason Friedman via Python-list
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

[Python-announce] Django-Compat-Patcher 0.12 released

2023-08-03 Thread Pascal Chambon
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

[Python-announce] RSFile v2.2 released

2023-08-03 Thread Pascal Chambon
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