Altering imported modules

Tro troworld at gmail.com
Wed Mar 5 01:15:29 EST 2008


On Tuesday 04 March 2008, Floris Bruynooghe wrote:
> 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.

Thanks, that's neat.

Tro



More information about the Python-list mailing list