- 21 Mar, 2004 1 commit
-
-
Brett Cannon authored
existent path. Pointed out by jvr that entries could be non-file items for custom importers.
-
- 20 Mar, 2004 24 commits
-
-
Brett Cannon authored
for regex syntax. Fixes bug #883604 .
-
Brett Cannon authored
isinstance() or issubclass() to the recursion limit of the interpreter.
-
Guido van Rossum authored
Change %08l to %p to print a pointer. Will backport to 2.3.
-
Armin Rigo authored
'a.extend(a)' isn't so special anyway.
-
Guido van Rossum authored
I've been bitten by this myself in the past half year. I hope this fix is right. I'll backport this to 2.3.
-
Tim Peters authored
UNTESTED!!! This simple two-line patch has been sitting on SF for more than 2 years. I'm guessing it's because nobody knows how to test it -- I sure don't. It doesn't look like you can get to this part of the code on Unixish or Windows systems, so the "how to test it?" puzzle has more than one part. OTOH, if this is dead code, it doesn't matter either if I just broke it <wink>.
-
Armin Rigo authored
-
Brett Cannon authored
-
Armin Rigo authored
-
Brett Cannon authored
-
Armin Rigo authored
-
Brett Cannon authored
all whitespace at the end of the path line.
-
Guido van Rossum authored
Removed Win9x notes (since the .NET compiler requires Win2K or XP anyway).
-
Thomas Wouters authored
parser -- for now. Failure behaviour of the new parser(s) will change in any case, so this will be revisited later anyway.
-
Tim Peters authored
HMAC.__init__(). Adapted from SF patch 895445 "hmac.HMAC.copy() speedup" by Trevor Perrin, who reported that this approach increased throughput of his hmac-intensive app by 30%.
-
Armin Rigo authored
new pattern for NEXTARG() is detected and optimized as a single (*short) loading.
-
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.
-
Raymond Hettinger authored
Replace 1 and 0 with True and False.
-
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. > =============================================================================
-
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).
-
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)
-
Fred Drake authored
-
Tim Peters authored
-
Tim Peters authored
-
- 19 Mar, 2004 5 commits
-
-
Fred Drake authored
Py_USING_UNICODE is defined
-
Skip Montanaro authored
-
Raymond Hettinger authored
-
Hye-Shik Chang authored
-
Hye-Shik Chang authored
-
- 18 Mar, 2004 9 commits
-
-
Raymond Hettinger authored
-
Raymond Hettinger authored
* The default __reversed__ performed badly, so reintroduced a custom reverse iterator. * Added length transparency to improve speed with map(), list(), etc.
-
Raymond Hettinger authored
-
Raymond Hettinger authored
This gives another 30% speedup for operations such as map(func, d.iteritems()) or list(d.iteritems()) which can both take advantage of length information when provided.
-
Hye-Shik Chang authored
directory.
-
Brett Cannon authored
-
Raymond Hettinger authored
* Split into three separate types that share everything except the code for iternext. Saves run time decision making and allows each iternext function to be specialized. * Inlined PyDict_Next(). In addition to saving a function call, this allows a redundant test to be eliminated and further specialization of the code for the unique needs of each iterator type. * Created a reusable result tuple for iteritems(). Saves the malloc time for tuples when the previous result was not kept by client code (this is the typical use case for iteritems). If the client code does keep the reference, then a new tuple is created. Results in a 20% to 30% speedup depending on the size and sparsity of the dictionary.
-
Brett Cannon authored
-
Brett Cannon authored
-
- 17 Mar, 2004 1 commit
-
-
Raymond Hettinger authored
* Factored constant structure references out of the inner loops for PyDict_Next(), dict_keys(), dict_values(), and dict_items(). Gave measurable speedups to each (the improvement varies depending on the sparseness of the dictionary being measured). * Added a freelist scheme styled after that for tuples. Saves around 80% of the calls to malloc and free. About 10% of the time, the previous dictionary was completely empty; in those cases, the dictionary initialization with memset() can be skipped.
-