Re: asyncore.poll() question

2010-10-17 Thread Von
The urlparse module is load only when this module run as main entry. Its for test purpose of modules. 2010/10/17, chad : > On Oct 16, 11:02 am, Felipe Bastos Nunes > wrote: >> You edited the source of asyncore.py puttin the print statments and >> nothing happend? It should work as the method is

Re: asyncore.poll() question

2010-10-16 Thread chad
On Oct 16, 11:02 am, Felipe Bastos Nunes wrote: > You edited the source of asyncore.py puttin the print statments and > nothing happend? It should work as the method is called as the page > you posted said. > > 2010/10/16, chad : > > > > > On Oct 16, 6:47 am, Lucasm wrote: > >> On 16 Okt, 15:31,

Re: asyncore.poll() question

2010-10-16 Thread chad
On Oct 16, 11:02 am, Felipe Bastos Nunes wrote: > You edited the source of asyncore.py puttin the print statments and > nothing happend? It should work as the method is called as the page > you posted said. > > 2010/10/16, chad : > > > > > On Oct 16, 6:47 am, Lucasm wrote: > >> On 16 Okt, 15:31,

Re: asyncore.poll() question

2010-10-16 Thread Felipe Bastos Nunes
You edited the source of asyncore.py puttin the print statments and nothing happend? It should work as the method is called as the page you posted said. 2010/10/16, chad : > On Oct 16, 6:47 am, Lucasm wrote: >> On 16 Okt, 15:31, chad wrote: >> >> >> >> > At the following url.. >> >> >http://www.

Re: asyncore.poll() question

2010-10-16 Thread chad
On Oct 16, 6:47 am, Lucasm wrote: > On 16 Okt, 15:31, chad wrote: > > > > > At the following url.. > > >http://www.nightmare.com/medusa/programming.html > > > The author has the following code for a simple HTTP client > > > #!/usr/bin/python > > > import asyncore > > import socket > > import stri

Re: asyncore.poll() question

2010-10-16 Thread Felipe Bastos Nunes
Or download the old source files, and use the asyncore.py that's there. 2010/10/16, Lucasm : > On 16 Okt, 15:31, chad wrote: >> At the following url.. >> >> http://www.nightmare.com/medusa/programming.html >> >> The author has the following code for a simple HTTP client >> >> #!/usr/bin/python >>

Re: asyncore.poll() question

2010-10-16 Thread Lucasm
On 16 Okt, 15:31, chad wrote: > At the following url.. > > http://www.nightmare.com/medusa/programming.html > > The author has the following code for a simple HTTP client > > #!/usr/bin/python > > import asyncore > import socket > import string > > class http_client (asyncore.dispatcher): > >    

asyncore.poll() question

2010-10-16 Thread chad
At the following url.. http://www.nightmare.com/medusa/programming.html The author has the following code for a simple HTTP client #!/usr/bin/python import asyncore import socket import string class http_client (asyncore.dispatcher): def __init__ (self, host, path): asyncore.dispa