Python, ASP - Namespace (again)

Nikolai Kirsebom Nikolai.Kirsebom at p98.f112.n480.z2.fidonet.org
Thu Jul 1 07:18:23 EDT 1999


From: nikolai.kirsebom at siemens.no (Nikolai Kirsebom)

On Wed, 30 Jun 1999 09:00:20 +1000, "Mark Hammond"
<MHammond at skippinet.com.au> wrote:

>There is no obvious reason to me why this wont work.  Note that if you are
>not running win32all-125, then I recommend you upgrade - there have been
>some fixes (but none that adddress this, as far as I can tell).
>
>The best I can suggest is that you use the win32trace module and print
>statements to work out what the hell is going on.
>
>Eg, making your first line "import win32traceutil" will mean that all print
>statement go to a debugging collector.  You can view the print statements by
>starting Pythonwin on the same machine, and selecting "Tools/Trace Collector
>Debugging Output".
>
>Then use lots of print statements - specifically print dir() etc, to see
>exactly what the namespace is...
>
>Mark.
>

Mark, thanks for hint on using the trace utility.

The next time I checked the code written in my first message, it
worked ok !!!!

As I indicated in the message, I have one ASP file and two PY files.
Updating the ASP file (saving it) followed by a refresh in the browser
results in updated browser page content.  However, updating any of the
PY files does not result in any changes in the browser output.  Could
anyone answer when the PY modules are loaded.  I thought the PY
modules automatically are reloaded if the datestamp of the *.py file
is newer than the *.pyc file.

I'm using the statement:

from <module> import *

How (if possible) would I reload explicitly such a module ?


Nikolai




More information about the Python-list mailing list