1. 29 Jun, 2001 8 commits
    • Fred Drake's avatar
      Use the more conventional "self" as the name of the self parameter in an · f09fc9fa
      Fred Drake authored
      example.  It actually confused a reader.
      f09fc9fa
    • Fred Drake's avatar
      Correct a markup error for an accented character. · 508a5973
      Fred Drake authored
      Reported by Milan Zamazal <pdm@zamazal.org>.
      508a5973
    • Fred Drake's avatar
      Removed some stray periods, and fix up a number of visible markup · 98379a0e
      Fred Drake authored
      consistency errors (mostly omitted "()" at the end of function and
      method names).
      
      Reported by Milan Zamazal <pdm@zamazal.org>.
      98379a0e
    • Fred Drake's avatar
      Two more names. · 44d04968
      Fred Drake authored
      44d04968
    • Fred Drake's avatar
      SourceForge bug #437041: · b681b8e0
      Fred Drake authored
      Use a portable format in the example that creates a timestamp suitable for
      use in email, also updating it and the footnote from RFC 822 to RFC 2822.
      b681b8e0
    • Fred Drake's avatar
      Simplify an example based on comment from Thomas Holenstein <thomas@hex.ch>: · 25da79e4
      Fred Drake authored
      Do not use an extra flag variable to test only once in one subsequent if
      statement.
      25da79e4
    • Guido van Rossum's avatar
      Solve SF bug #231249: cgi.py opens too many (temporary) files. · 9ff2c25c
      Guido van Rossum authored
      class FieldStorage: this patch changes read_lines() and co. to use a
      StringIO() instead of a real file.  The write() calls are redirected
      to a private method that replaces it with a real, external file only
      when it gets too big (> 1000 bytes).
      
      This avoids problems in forms using the multipart/form-data encoding
      with many fields.  The original code created a temporary file for
      *every* field (not just for file upload fields), thereby sometimes
      exceeding the open file limit of some systems.
      
      Note that the simpler solution "use a real file only for file uploads"
      can't be used because the form field parser has no way to tell which
      fields correspond to file uploads.
      
      It's *possible* but extremely unlikely that this would break someone's
      code; they would have to be stepping way outside the documented
      interface for FieldStorage and use f.file.fileno(), or depend on
      overriding make_file() to return a file-like object with additional
      known properties.
      9ff2c25c
    • Tim Peters's avatar
      Added a simple but general backtracking generator (conjoin), and a couple · e66e989c
      Tim Peters authored
      examples of use.  These poke stuff not specifically targeted before, incl.
      recursive local generators relying on nested scopes, ditto but also
      inside class methods and rebinding instance vars, and anonymous
      partially-evaluated generators (the N-Queens solver creates a different
      column-generator for each row -- AFAIK this is my invention, and it's
      really pretty <wink>).  No problems, not even a new leak.
      e66e989c
  2. 28 Jun, 2001 3 commits
  3. 27 Jun, 2001 13 commits
  4. 26 Jun, 2001 16 commits