- 18 Sep, 2004 1 commit
-
-
Martin v. Löwis authored
-
- 10 Sep, 2004 1 commit
-
-
Martin v. Löwis authored
-
- 07 Sep, 2004 1 commit
-
-
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.
-
- 29 Aug, 2004 2 commits
-
-
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
-
Martin v. Löwis authored
-
- 23 Aug, 2004 1 commit
-
-
Raymond Hettinger authored
subclasses.
-
- 07 Aug, 2004 1 commit
-
-
Andrew M. Kuchling authored
-
- 02 Aug, 2004 1 commit
-
-
Anthony Baxter authored
-
- 28 Jul, 2004 1 commit
-
-
Marc-André Lemburg authored
-
- 27 Jul, 2004 1 commit
-
-
Martin v. Löwis authored
-
- 26 Jul, 2004 1 commit
-
-
Martin v. Löwis authored
-
- 10 Jul, 2004 2 commits
-
-
Andrew M. Kuchling authored
-
Brett Cannon authored
Misc/ACKS.
-
- 07 Jul, 2004 1 commit
-
-
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.
-
- 29 Jun, 2004 1 commit
-
-
Andrew M. Kuchling authored
-
- 25 Jun, 2004 1 commit
-
-
Raymond Hettinger authored
-
- 20 Jun, 2004 1 commit
-
-
Tim Peters authored
The LaTeX is untested (well, so is the new API, for that matter). Note that I also changed NULL to get spelled consistently in concrete.tex. If that was a wrong thing to do, Fred should yell at me.
-
- 19 Jun, 2004 2 commits
-
-
Brett Cannon authored
itself. Closes bug #919012 . Thanks Johannes Gijsbers.
-
Brett Cannon authored
have pointer addresses in uppercase. Closes bug #934282. Thanks Robin Becker.
-
- 10 Jun, 2004 1 commit
-
-
Raymond Hettinger authored
Prevents a collision pattern that occurs with nested tuples. (Yitz Gale provided code that repeatably demonstrated the weakness.)
-
- 02 Jun, 2004 1 commit
-
-
Andrew M. Kuchling authored
-
- 19 May, 2004 1 commit
-
-
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.
-
- 23 Mar, 2004 1 commit
-
-
Nicholas Bastin authored
-
- 04 Mar, 2004 1 commit
-
-
Raymond Hettinger authored
(Championed by Bob Ippolito.) The update() method for mappings now accepts all the same argument forms as the dict() constructor. This includes item lists and/or keyword arguments.
-
- 08 Feb, 2004 1 commit
-
-
Raymond Hettinger authored
(Contributed by Mike Pall.) Make sure fill_free_list() is called only once rather than 106 times when pre-allocating small ints.
-
- 31 Jan, 2004 1 commit
-
-
Martin v. Löwis authored
-
- 05 Jan, 2004 1 commit
-
-
Raymond Hettinger authored
(Contributed by Dmitry Vasiliev.)
-
- 28 Dec, 2003 1 commit
-
-
Andrew MacIntyre authored
-
- 25 Dec, 2003 1 commit
-
-
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.
-
- 10 Nov, 2003 2 commits
-
-
Martin v. Löwis authored
-
Guido van Rossum authored
-
- 31 Oct, 2003 1 commit
-
-
Martin v. Löwis authored
-
- 14 Oct, 2003 1 commit
-
-
Brett Cannon authored
-
- 12 Oct, 2003 1 commit
-
-
Brett Cannon authored
-
- 08 Oct, 2003 1 commit
-
-
Guido van Rossum authored
make obj.__contains__() returns True/False instead of 1/0.
-
- 02 Sep, 2003 1 commit
-
-
Raymond Hettinger authored
(Contributed by Alexander Belopolsky.)
-
- 01 Sep, 2003 2 commits
-
-
Raymond Hettinger authored
(Contributed by Andrew Gaul.) Fixes a minor leak.
-
Raymond Hettinger authored
(Contributed by George Yoshida.)
-
- 13 Aug, 2003 1 commit
-
-
Andrew M. Kuchling authored
-
- 17 Jul, 2003 1 commit
-
-
Jeremy Hylton authored
-