indirect references

Quinn Dunkan quinn at amatho.ugcs.caltech.edu
Wed Jun 7 19:51:52 EDT 2000


On Tue, 6 Jun 2000 05:20:08 -0700, Emile van Sebille <emile at fenx.com> wrote:
>Well, that calls for a response! ;-)
>
>>>> def spam(a):

[... hackery ...]

>Of course, it's not not going to work except
>in console mode.

There was a small hackery arms-race a while back about finding the name of the
variable a function was called with.  It escalated up until Hudson posted a
bytecodehack.  It'd be easy to extend his code to do what spam() does, but
work more "robustly" :)



More information about the Python-list mailing list