"urlopen" not thread safe

J

John Nagle

I was looking at the code for "urllib", and there's
some undocumented "FTP cacheing" code in there that's not thread safe.
The documentation for "urllib"

Is there any good reason to keep that code in "urllib"?
Unless something critical uses that undocumented feature,
that code probably ought to come out. Comments?

John Nagle
 
G

Gabriel Genellina

I was looking at the code for "urllib", and there's
some undocumented "FTP cacheing" code in there that's not thread safe.
The documentation for "urllib"

Is there any good reason to keep that code in "urllib"?
Unless something critical uses that undocumented feature,
that code probably ought to come out. Comments?

Maybe the default should be None, like tempcache; anyone interested could
assign to the ftpcache instance attribute.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,261
Messages
2,571,040
Members
48,769
Latest member
Clifft

Latest Threads

Top