Re: Altering imported modules

2008-03-06 Thread Tro
On Wednesday 05 March 2008, Bruno Desthuilliers wrote: > Tro a écrit : > > 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 asyn

Re: Altering imported modules

2008-03-04 Thread Tro
version of asyncore > > without me going into tlslite's code and changing its import statement > > explicitly, but only for the scope of this one project. > > In that case try something like > > import myasyncore as asnycore > sys.modules['asyncore'] = asyncore &

Re: Altering imported modules

2008-03-04 Thread Tro
On Tuesday 04 March 2008, Floris Bruynooghe wrote: > On Mar 1, 11:56 pm, Tro <[EMAIL PROTECTED]> 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 migh

Re: Altering imported modules

2008-03-04 Thread Tro
On Monday 03 March 2008, [EMAIL PROTECTED] wrote: > On Mar 3, 5:09 pm, Tro <[EMAIL PROTECTED]> wrote: > > On Sunday 02 March 2008, Paul McGuire wrote: > > > On Mar 2, 3:48 pm, Tro <[EMAIL PROTECTED]> wrote: > > > > On Sunday 02 March 2008, Terry Reed

Re: Altering imported modules

2008-03-03 Thread Tro
On Sunday 02 March 2008, Paul McGuire wrote: > On Mar 2, 3:48 pm, Tro <[EMAIL PROTECTED]> wrote: > > On Sunday 02 March 2008, Terry Reedy wrote: > > > "Tro" <[EMAIL PROTECTED]> wrote in message > > >news:[EMAIL PROTECTED] > > > > >

Re: Altering imported modules

2008-03-02 Thread Tro
On Sunday 02 March 2008, Terry Reedy wrote: > "Tro" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > | Hi, list. > | > | I've got a simple asyncore-based server. However, I've modified the > > asyncore > > | module to allo

Re: Altering imported modules

2008-03-02 Thread Tro
On Saturday 01 March 2008, Tro wrote: > 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 &g

Re: Book Recomendations

2008-03-01 Thread Tro
he official tutorial is required reading. After that, Dive Into Python (http://diveintopython.org/). Cheers, Tro -- http://mail.python.org/mailman/listinfo/python-list

Altering imported modules

2008-03-01 Thread Tro
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. Thanks