reloading modules question

Darrell news at dorb.com
Sun Dec 10 13:42:26 EST 2000


Duh!

Could have used:
    sys.exit(1)
or
    raise SystemExit()

Not sure how these will work in this case though.

--Darrell



> I haven't made extensive use of reload, and want to hear how it goes for
> you.
> Although killing Python would clean up memory leaks and the like.
> I assume IIS would restart it, maybe??
>
> # Hacked from the win32 demos
> import win32api, win32pdhutil, win32con#, sys
>
> def killProcSelf():
>     myPid= win32api.GetCurrentProcessId()
> .....





More information about the Python-list mailing list