Re: [importing] Disabling of AutoReload

2005-07-12 Thread Graham Dumpleton
On 13/07/2005, at 3:32 AM, Gregory (Grisha) Trubetskoy wrote: P.S. On magic request caching - I think that if this works, then why not, though I think it needs to be bounced around a little more. BTW - from the code below: _requestCache[thread].pop() was this meant to be del _

Re: [importing] Disabling of AutoReload

2005-07-12 Thread Gregory (Grisha) Trubetskoy
It's interesting how quickly the knowledge about the code you yourself write evaporates without a trace... Somehow the point that import_module cannot require a request object because you usually don't have access to it at the beginning of your code where imports are usually done escaped me..

Re: [importing] Disabling of AutoReload

2005-07-08 Thread Nicolas Lehuen
Local thread variables would be perfect to store the request object. Unfortunately they are specific for Python 2.4 : class local A class that represents thread-local data. Thread-local data are data whose values are thread specific. To manage thread-local data, just create an instance of loca

Re: [importing] Disabling of AutoReload

2005-07-08 Thread Graham Dumpleton
One issue at a time sounds good. :-) On 08/07/2005, at 11:38 PM, Gregory (Grisha) Trubetskoy wrote: I think that the issue of import_module not honoring the AutoReload and Debug directives (because it was originally only used internally and was used a level "below" the directives) is a fairl