Ben Finney wrote:
> Nick Stinemates <[EMAIL PROTECTED]> writes:
>
>> Ah, I snipped because I was only replying to that specific part and
>> thought there was an archive of the rest. If that is unconventional
>> I'll stop.
>
> Please continue snipping the parts that aren't relevant to your reply.
Nick Stinemates <[EMAIL PROTECTED]> writes:
> Ah, I snipped because I was only replying to that specific part and
> thought there was an archive of the rest. If that is unconventional
> I'll stop.
Please continue snipping the parts that aren't relevant to your reply.
The convention in this forum
Nick Stinemates wrote:
> Jeff Schwab wrote:
>> Nick Stinemates wrote:
>>
I'm not saying I don't want to do that. I'm saying that, in addition to
what you've written, I want foo to know it's being imported, and by whom.
>> Please don't snip so much.
>>
>>
>>> You're sti
Jeff Schwab wrote:
> Nick Stinemates wrote:
>
>>> I'm not saying I don't want to do that. I'm saying that, in addition to
>>> what you've written, I want foo to know it's being imported, and by whom.
>>>
>
> Please don't snip so much.
>
>
>> You're still not explaining a real example
Nick Stinemates wrote:
>> I'm not saying I don't want to do that. I'm saying that, in addition to
>> what you've written, I want foo to know it's being imported, and by whom.
Please don't snip so much.
> You're still not explaining a real example of what this could be used for.
Why would you s
> I'm not saying I don't want to do that. I'm saying that, in addition to
> what you've written, I want foo to know it's being imported, and by whom.
>
You're still not explaining a real example of what this could be used for.
Oh well, here's an example of an implementation of what you want
Nick Stinemates wrote:
> Jeff Schwab wrote:
>> Q1: When a module is imported, is there any way for the module to
>> determine the name of the client code's module?
>>
> Why would you ever want to do this?
>> Q2: My understanding is that the code in a module is executed only on
>> the first imp
Jeff Schwab wrote:
> Q1: When a module is imported, is there any way for the module to
> determine the name of the client code's module?
>
Why would you ever want to do this?
> Q2: My understanding is that the code in a module is executed only on
> the first import of that module. Is there an
Q1: When a module is imported, is there any way for the module to
determine the name of the client code's module?
Q2: My understanding is that the code in a module is executed only on
the first import of that module. Is there any way to have a hook
invoked on subsequent imports, and for that h