"urlopen" not thread safe

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • John Nagle

    #1

    "urlopen" not thread safe

    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
  • Gabriel Genellina

    #2
    Re: "urlopen&q uot; not thread safe

    En Thu, 15 Mar 2007 21:12:46 -0300, John Nagle <nagle@animats. com>
    escribió:
    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.

    --
    Gabriel Genellina

    Comment

    Working...