Odd behavior with imp.reload and logging

Chris Angelico rosuav at gmail.com
Wed Sep 21 22:48:04 EDT 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.

ChrisA



More information about the Python-list mailing list