Returning actual argument expression to a function call?

Paddy paddy3118 at googlemail.com
Sat Nov 10 06:34:34 EST 2007


On Nov 10, 6:54 am, Steven D'Aprano <st... at REMOVE-THIS-
cybersource.com.au> wrote:

> In the second example, if you are trying to capture the expression "0.4
> +1", I don't think that is possible. As far as I know, there is no way
> for the called function to find out how its arguments were created. I
> think if you need that, you need to create your own parser.
>
> --
> Steven.

Unfortunately Steven, its exactly the expression that I want
rather than the expression result.

Thanks for your attempt, and I will try and make myself clearer
in the future (allthough I did take time over my initial post).

- Paddy.





More information about the Python-list mailing list