1. 20 Mar, 2004 8 commits
    • Guido van Rossum's avatar
      GCC was complaining that 'value' in dictiter_iternextvalue() wasn't · 09240f65
      Guido van Rossum authored
      necessarily always set before used.  Between Tim, Armin & me we
      couldn't prove GCC wrong, so we decided to fix the algorithm.  This
      version is Armin's.
      09240f65
    • Raymond Hettinger's avatar
      SF bug #918371: hasattr()'s return type · fe703e06
      Raymond Hettinger authored
      Replace 1 and 0 with True and False.
      fe703e06
    • Thomas Wouters's avatar
      Merge in Anthony's new parser code, from the anthony-parser-branch: · 0813d76c
      Thomas Wouters authored
      > ----------------------------
      > revision 1.20.4.4
      > date: 2003/06/12 09:14:17;  author: anthonybaxter;  state: Exp;  lines: +13 -6
      > preamble is None when missing, not ''.
      > Handle a couple of bogus formatted messages - now parses my main testsuite.
      > Handle message/external-body.
      > ----------------------------
      > revision 1.20.4.3
      > date: 2003/06/12 07:16:40;  author: anthonybaxter;  state: Exp;  lines: +6 -4
      > epilogue-processing is now the same as the old parser - the newline at the
      > end of the line with the --endboundary-- is included as part of the epilogue.
      > Note that any whitespace after the boundary is _not_ part of the epilogue.
      > ----------------------------
      > revision 1.20.4.2
      > date: 2003/06/12 06:39:09;  author: anthonybaxter;  state: Exp;  lines: +6 -4
      > message/delivery-status fixed.
      > HeaderParser fixed.
      > ----------------------------
      > revision 1.20.4.1
      > date: 2003/06/12 06:08:56;  author: anthonybaxter;  state: Exp;  lines: +163 -129
      > A work-in-progress snapshot of the new parser. A couple of known problems:
      >
      > - first (blank) line of MIME epilogues is being consumed
      > - message/delivery-status isn't quite right
      >
      > It still needs a lot of cleanup, but right now it parses a whole lot of
      > badness that the old parser failed on. I also need to think about adding
      > back the old 'strict' flag in some way.
      > =============================================================================
      0813d76c
    • Tim Peters's avatar
      Update copyright years, and change copyright.tex to use the same spelling · d4079e1f
      Tim Peters authored
      as license.tex (SF patch 795531 complained about the spelling discrepancy,
      although this "repairs" that flaw in a different way than the patch).
      d4079e1f
    • Fred Drake's avatar
      commit the portion of PyXML patch #919008 that is relevant to the · 6fd0b0d5
      Fred Drake authored
      standard library:
      str() of xml.sax.SAXParseException should not fail if the line and/or
      column number returned by the locator are None
      (tests added)
      6fd0b0d5
    • Fred Drake's avatar
      fix two typos that turned text into markup · 9de0a2ba
      Fred Drake authored
      9de0a2ba
    • Tim Peters's avatar
      Ignore oodles of MSVC-generated files. · bd6850f6
      Tim Peters authored
      bd6850f6
    • Tim Peters's avatar
  2. 19 Mar, 2004 5 commits
  3. 18 Mar, 2004 9 commits
  4. 17 Mar, 2004 4 commits
  5. 16 Mar, 2004 4 commits
  6. 15 Mar, 2004 5 commits
  7. 14 Mar, 2004 4 commits
    • Raymond Hettinger's avatar
      Add missing docstrings. · deb4da50
      Raymond Hettinger authored
      deb4da50
    • Raymond Hettinger's avatar
      list_resize() now has an "exact" option for bypassing the overallocation · 0e91643b
      Raymond Hettinger authored
      scheme in situations that likely won't benefit from it.  This further
      improves memory utilization from Py2.3 which always over-allocates
      except for PyList_New().
      
      Situations expected to benefit from over-allocation:
          list.insert(), list.pop(), list.append(), and list.extend()
      
      Situations deemed unlikely to benefit:
          list_inplace_repeat, list_ass_slice, list_ass_subscript
      
      The most gray area was for listextend_internal() which only runs
      when the argument is a list or a tuple.  This could be viewed as
      a one-time fixed length addition or it could be viewed as wrapping
      a series of appends.  I left its over-allocation turned on but
      could be convinced otherwise.
      0e91643b
    • Raymond Hettinger's avatar
      SF feature request #686323: Minor array module enhancements · 49f9bd15
      Raymond Hettinger authored
      array.extend() now accepts iterable arguments implements as a series
      of appends.  Besides being a user convenience and matching the behavior
      for lists, this the saves memory and cycles that would be used to
      create a temporary array object.
      49f9bd15
    • Raymond Hettinger's avatar
      Update the array overallocation scheme to match the approach used for · 6e2ee866
      Raymond Hettinger authored
      lists.  Speeds append() operations and reduces memory requirements
      (because of more conservative overallocation).
      
      Paves the way for the feature request for array.extend() to support
      arbitrary iterable arguments.
      6e2ee866
  8. 13 Mar, 2004 1 commit
    • Jack Jansen's avatar
      Two issues spotted by Ronald OUssoren: · 118e1277
      Jack Jansen authored
      - there were no accessor functions for the global per-database fields
      - packages and their dependencies were installed in order in stead
        of in reverse order.
      118e1277