1. 07 May, 2003 8 commits
  2. 06 May, 2003 18 commits
  3. 05 May, 2003 12 commits
  4. 04 May, 2003 2 commits
    • Jeremy Hylton's avatar
      Repair redirect handling and raise URLError on host-not-found. · 828023b6
      Jeremy Hylton authored
      The latest changes to the redirect handler couldn't possibly have been
      tested, because they did not compute a newurl and failed with a
      NameError.  The __name__ == "__main__": block has a test for
      redirects.
      
      Also, fix SF bug 723831.  A urlopen() that failed because the host was
      not found raised a socket.gaierror unlike earlier versions of
      urllib2.  The problem is that httplib actually establishes the
      connection at a different point starting with Python 2.2.  Move the
      try/except to endheaders(), which is where the connection gets
      established.
      828023b6
    • Raymond Hettinger's avatar
      * Note how dummy entry re-use benefits use cases with interspersed deletes · 258dfebf
      Raymond Hettinger authored
        and adds.
      
      * Note that dictionary iteration is negatively impacted by additional
        sparseness.
      258dfebf