Urllib thread safe?

Oleg Broytmann phd at phd.pp.ru
Wed Jun 5 16:27:08 EDT 2002


On Wed, Jun 05, 2002 at 09:51:18PM +0200, Just wrote:
> > > Yes, that is thread-safe. urllib does not maintain any per-url state,
> > 
> >    Hah? It maintains global _urlopener...
> 
> But that's not per-url state, is it?

   I am afraid you would have problems mixing calls to the global
_urlopener from different threads.

Oleg.
-- 
     Oleg Broytmann            http://phd.pp.ru/            phd at phd.pp.ru
           Programmers don't die, they just GOSUB without RETURN.





More information about the Python-list mailing list