Altering imported modules

Floris Bruynooghe floris.bruynooghe at gmail.com
Tue Mar 4 11:10:45 EST 2008


On Mar 1, 11:56 pm, Tro <trowo... at gmail.com> wrote:
> I'd like to know if it's possible to make tlslite load *my* asyncore module
> without changing any of the tlslite code.

the pkgutil module might be helpful, not sure though as I've never
used it myself.

http://blog.doughellmann.com/2008/02/pymotw-pkgutil.html is a fairly
detailed look at what pkgutil can do.

Regards
Floris




More information about the Python-list mailing list