In article <[EMAIL PROTECTED]>,
Fredrik Lundh <[EMAIL PROTECTED]> wrote:
>Andreas Huesgen wrote:
>
>> is there a way to receive the name of an object passed to a function
>> from within the function.
>
>objects don't have names, so in general, you cannot do that. see:
>
>http://pyfaq.infogami.co
Algol, anyone?
Andreas Huesgen wrote:
> Hello everybody,
>
> is there a way to receive the name of an object passed to a function
> from within the function.
>
> something like
>
> def foo(param):
> print theNameOfTheVariablePassedToParam
>
> var1 = "hello"
> var2 = "world"
>
> >>> foo(var
Andreas Huesgen wrote:
> is there a way to receive the name of an object passed to a function
> from within the function.
objects don't have names, so in general, you cannot do that. see:
http://pyfaq.infogami.com/how-can-my-code-discover-the-name-of-an-object
--
http://mail.python.org/mai