absolute namespace for callbacks?

Alex Martelli aleaxit at yahoo.com
Tue Mar 6 12:32:29 EST 2001


"Bruce Edge" <bedge at troikanetworks.com> wrote in message
news:3AA51144.3DD3FC3F at troikanetworks.com...
> My callback func is defined in one module, and the callback is executed
> from another module which does not know in advance what module the
> callback func resides in. So, by default, the caller cannot find the
> callback func in it's own namespace.
> The callback registration procedure needs to specify the namespace where
> the callback func exists.
>
> OTOH, maybe I'm missing something here :-)

Maybe -- why use names, when you can refer to the
callable function-object directly?


Alex






More information about the Python-list mailing list