[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.python

Re: Altering imported modules

Terry Reedy

3/2/2008 9:21:00 PM


"Tro" <troworld@gmail.com> wrote in message
news:200803011856.27611.troworld@gmail.com...
| Hi, list.
|
| I've got a simple asyncore-based server. However, I've modified the
asyncore
| module to allow me to watch functions as well as sockets. The modified
| asyncore module is in a specific location in my project and is imported
as
| usual from my classes.
|
| Now I'd like to use the tlslite library, which includes an asyncore mixin
| class. However, tlslite imports "asyncore", which doesn't include my own
| modifications.
|
| I'd like to know if it's possible to make tlslite load *my* asyncore
module
| without changing any of the tlslite code.

If your module is also 'asyncore' and comes earlier in the search path, I
would expect the import to get yours.