getting name of passed reference

Emile van Sebille emile at fenx.com
Tue Dec 29 11:21:50 EST 2009


On 12/29/2009 7:02 AM Joel Davis said...
> On Dec 29, 2:29 am, "Gabriel Genellina"<gagsl-... at yahoo.com.ar>
> wrote:
>> I'm sure other limitations apply too -- don't rely on this technique for
>> anything critical.
>>
>> --
>> Gabriel Genellina
>
> Gabriel,
>
> thanks for your input, I had no idea that did that and it could have
> been deployed without even being aware of it, caused consternation and
> headaches galore.

In an extremely controlled situation you may avoid headaches when 
deploying this kind of technique.  Regardless, we all want to make you 
aware that this _will_ likely cause headaches, and, idle curiosity 
aside, none of us can imagine the problem to which this is the 
appropriate solution.

It's fun to work out, but you're probably better served if you describe 
the problem you're solving and consider the alternatives suggested.

Dependence on introspection belongs in programming tools, not in 
applications deployed across versions and platforms.

Emile






More information about the Python-list mailing list