Re: Socket Programming HOWTO example

2006-01-17 Thread Bryan Olson
I mis-phrased: > The code passes > 'self' to __init__, but not to any of the others methods. Of course I meant that the formal parameter for self is missing. > > class mysocket: > >> '''classe solamente dimostrativa >> - codificata per chiarezza, non per efficenza''' >>

Re: Socket Programming HOWTO example

2006-01-17 Thread Bryan Olson
Marco Meoni wrote: > Hi. I read the Gordon McMillan's "Socket Programming Howto". > I tried to use the example in this howto but this doesn't work. You are right, that obviously won't work. The code passes 'self' to __init__, but not to any of the others methods. I'm cc'ing this post to [EMAIL PR

Re: Socket Programming HOWTO example

2006-01-17 Thread Manlio Perillo
Steve Holden ha scritto: > [...] > I can see you have changed the example a little (because I know that > Gordon's original didn't have comments in Italian). The example cames from italian translation of the howto: http://python.it/doc/howto/Socket/sockets-it/sockets-it.html Regards Manlio P

Re: Socket Programming HOWTO example

2006-01-16 Thread Steve Holden
Marco Meoni wrote: > Hi. I read the Gordon McMillan's "Socket Programming Howto". > I tried to use the example in this howto but this doesn't work. > The code is class mysocket: > '''classe solamente dimostrativa > - codificata per chiarezza, non per efficenza''' > def __i