[issue17246] inspect.getargvalues fails if arg name is not bound to a value

2022-03-29 Thread Maciej Górski
Maciej Górski added the comment: In my opinion formatargvalues function is quite useless in current day as ArgInfo provides all the information. I'm however willing to fix this. IMO we should just omit the args/varargs/kwargs that have been deleted, since the values do not exist in the curren

[issue17246] inspect.getargvalues fails if arg name is not bound to a value

2022-03-24 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +easy -patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue17246] inspect.getargvalues fails if arg name is not bound to a value

2021-06-18 Thread Irit Katriel
Irit Katriel added the comment: Still the same in 3.11: >>> import inspect >>> def fun(x): ... del x ... return inspect.currentframe() ... >>> inspect.formatargvalues(*inspect.getargvalues(fun(10))) Traceback (most recent call last): File "", line 1, in File "C:\Users\User\src\cpy