Odd behavior with imp.reload and logging

Chris Angelico rosuav at gmail.com
Thu Sep 22 04:48:04 CEST 2011

On Thu, Sep 22, 2011 at 12:44 PM, Andrew Berg <bahamutzero8825 at gmail.com> wrote:
> The reload isn't controlled by the module, but I have no problem
> clearing out any loggers at the beginning.

I'm thinking more along the lines of closing them in the old module
before firing imp.reload() - maybe have a function in the module that
cleans itself up and then reloads itself. And yes, I had been thinking
of closing the handler, but I don't know the logging module much.


More information about the Python-list mailing list