On Sun, 23 Jul 2023 at 14:08, Dom Grigonis <dom.grigo...@gmail.com> wrote:
>
> IT IS AN OBJECT. Never said otherwise.

One that you can't do any of the operations I described. There is no
way to use it as an object.

> `inspect.getcallargs` can seemingly be modified for such behaviour. I just 
> wrote a decorator, which does what I proposed using `inspect` module for a 
> chosen sentinel value. The issue is that it would be a bottleneck if used on 
> any callable, which is continuously used. `inspect.getcallargs`, `signature`, 
> `getfullargspec` are very expensive.
>
> If that can be done, theoretically it should be able to be done at lower 
> level as well. After all, behaviour of it should be modelled after what is 
> happening at the function call.
>

Since you clearly are not listening to the discussion, I will leave
you with one final recommendation: Write some code. Don't just claim
that it's possible; write actual code that makes it happen. You will
discover exactly how hard it is. If I am wrong, you will be able to
PROVE that I am wrong, instead of merely claiming it.

ChrisA
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/TPY2JHOBXUQIRNRYUUBUX46Y3HS4GQVK/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to