1. 18 Sep, 2004 1 commit
  2. 10 Sep, 2004 1 commit
  3. 07 Sep, 2004 1 commit
    • Jeremy Hylton's avatar
      compiler.transformer: correct lineno attribute when possible · 566d9347
      Jeremy Hylton authored
      SF patch #1015989
      
      The basic idea of this patch is to compute lineno attributes for all AST nodes.  The actual
      implementation lead to a lot of restructing and code cleanup.
      
      The generated AST nodes now have an optional lineno argument to constructor.  Remove the
      top-level asList(), since it didn't seem to serve any purpose.  Add an __iter__ to ast nodes.
      Use isinstance() instead of explicit type tests.
      
      Change transformer to use the new lineno attribute, which replaces three lines of code with one.
      Use universal newlines so that we can get rid of special-case code for line endings.  Use
      lookup_node() in a few more frequently called, but simple com_xxx methods().  Change string
      exception to class exception.
      566d9347
  4. 29 Aug, 2004 2 commits
    • Tim Peters's avatar
      SF patch 936813: fast modular exponentiation · 0973b99e
      Tim Peters authored
      This checkin is adapted from part 1 (of 3) of Trevor Perrin's patch set.
      
      x_mul()
        - sped a little by optimizing the C
        - sped a lot (~2X) if it's doing a square; note that long_pow() squares
          often
      k_mul()
        - more cache-friendly now if it's doing a square
      KARATSUBA_CUTOFF
        - boosted; gradeschool mult is quicker now, and it may have been too low
          for many platforms anyway
      KARATSUBA_SQUARE_CUTOFF
        - new
        - since x_mul is a lot faster at squaring now, the point at which
          Karatsuba pays for squaring is much higher than for general mult
      0973b99e
    • Martin v. Löwis's avatar
  5. 23 Aug, 2004 1 commit
  6. 07 Aug, 2004 1 commit
  7. 02 Aug, 2004 1 commit
  8. 28 Jul, 2004 1 commit
  9. 27 Jul, 2004 1 commit
  10. 26 Jul, 2004 1 commit
  11. 10 Jul, 2004 2 commits
  12. 07 Jul, 2004 1 commit
    • Michael W. Hudson's avatar
      This closes patch: · 30ea2f22
      Michael W. Hudson authored
      [ 960406 ] unblock signals in threads
      
      although the changes do not correspond exactly to any patch attached to
      that report.
      
      Non-main threads no longer have all signals masked.
      
      A different interface to readline is used.
      
      The handling of signals inside calls to PyOS_Readline is now rather
      different.
      
      These changes are all a bit scary!  Review and cross-platform testing
      much appreciated.
      30ea2f22
  13. 29 Jun, 2004 1 commit
  14. 25 Jun, 2004 1 commit
  15. 20 Jun, 2004 1 commit
  16. 19 Jun, 2004 2 commits
  17. 10 Jun, 2004 1 commit
  18. 02 Jun, 2004 1 commit
  19. 19 May, 2004 1 commit
    • Raymond Hettinger's avatar
      SF patch #872326: Generator expression implementation · 354433a5
      Raymond Hettinger authored
      (Code contributed by Jiwon Seo.)
      
      The documentation portion of the patch is being re-worked and will be
      checked-in soon.  Likewise, PEP 289 will be updated to reflect Guido's
      rationale for the design decisions on binding behavior (as described in
      in his patch comments and in discussions on python-dev).
      
      The test file, test_genexps.py, is written in doctest format and is
      meant to exercise all aspects of the the patch.  Further additions are
      welcome from everyone.  Please stress test this new feature as much as
      possible before the alpha release.
      354433a5
  20. 23 Mar, 2004 1 commit
  21. 04 Mar, 2004 1 commit
  22. 08 Feb, 2004 1 commit
  23. 31 Jan, 2004 1 commit
  24. 05 Jan, 2004 1 commit
  25. 28 Dec, 2003 1 commit
  26. 25 Dec, 2003 1 commit
    • Andrew MacIntyre's avatar
      Performance of list([]) in 2.3 came up in a thread on comp.lang.python, · d57caed5
      Andrew MacIntyre authored
      which can be reviewed via
      http://coding.derkeiler.com/Archive/Python/comp.lang.python/2003-12/1011.html
      
      Duncan Booth investigated, and discovered that an "optimisation" was
      in fact a pessimisation for small numbers of elements in a source list,
      compared to not having the optimisation, although with large numbers
      of elements in the source list the optimisation was quite beneficial.
      
      He posted his change to comp.lang.python (but not to SF).
      
      Further research has confirmed his assessment that the optimisation only
      becomes a net win when the source list has more than 100 elements.
      
      I also found that the optimisation could apply to tuples as well,
      but the gains only arrive with source tuples larger than about 320
      elements and are nowhere near as significant as the gains with lists,
      (~95% gain @ 10000 elements for lists, ~20% gain @ 10000 elements for
      tuples) so I haven't proceeded with this.
      
      The code as it was applied the optimisation to list subclasses as
      well, and this also appears to be a net loss for all reasonable sized
      sources (~80-100% for up to 100 elements, ~20% for more than 500
      elements; I tested up to 10000 elements).
      
      Duncan also suggested special casing empty lists, which I've extended
      to all empty sequences.
      
      On the basis that list_fill() is only ever called with a list for the
      result argument, testing for the source being the destination has
      now happens before testing source types.
      d57caed5
  27. 10 Nov, 2003 2 commits
  28. 31 Oct, 2003 1 commit
  29. 14 Oct, 2003 1 commit
  30. 12 Oct, 2003 1 commit
  31. 08 Oct, 2003 1 commit
  32. 02 Sep, 2003 1 commit
  33. 01 Sep, 2003 2 commits
  34. 13 Aug, 2003 1 commit
  35. 17 Jul, 2003 1 commit