Mailing List Archive

Request: inspect: signature & getfullargspec & getcallargs
Hello,

I have a request.

Would it be possible to include `follow_wrapper_chains` and `skip_bound_arg` arguments to higher level functions of `inspect` module?

Would exposing them, but setting defaults to what they currently are, be possible?

I sometimes need:
* `getcallargs`, but without `bound_arg`
* `getfullargspec` to `follow_wrapper_chains`
* `signature` to include `bound_arg`.


Regards,
DG
--
https://mail.python.org/mailman/listinfo/python-list
Re: Request: inspect: signature & getfullargspec & getcallargs [ In reply to ]
> On 4 Dec 2023, at 02:29, Dom Grigonis via Python-list <python-list@python.org> wrote:
>
> Hello,
>
> I have a request.
>
> Would it be possible to include `follow_wrapper_chains` and `skip_bound_arg` arguments to higher level functions of `inspect` module?
>
> Would exposing them, but setting defaults to what they currently are, be possible?
>
> I sometimes need:
> * `getcallargs`, but without `bound_arg`
> * `getfullargspec` to `follow_wrapper_chains`
> * `signature` to include `bound_arg`.

I suspect that you need to raise this as an idea on https://discuss.python.org/ to get the attention of the core devs.

Barry

>
>
> Regards,
> DG
> --
> https://mail.python.org/mailman/listinfo/python-list
>

--
https://mail.python.org/mailman/listinfo/python-list