Re: name of client module

2008-02-18 Thread Jeff Schwab
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.

Re: name of client module

2008-02-18 Thread Ben Finney
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

Re: name of client module

2008-02-18 Thread Jeff Schwab
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

Re: name of client module

2008-02-18 Thread Nick Stinemates
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

Re: name of client module

2008-02-18 Thread Jeff Schwab
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

Re: name of client module

2008-02-18 Thread Nick Stinemates
> 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

Re: name of client module

2008-02-18 Thread Jeff Schwab
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

Re: name of client module

2008-02-18 Thread Nick Stinemates
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

name of client module

2008-02-18 Thread Jeff Schwab
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