summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix how line endings were handled when iterating over a .pth file by strippingBrett Cannon2004-03-201-2/+1
| | | | all whitespace at the end of the path line.
* Tweaked after following all these instructions.Guido van Rossum2004-03-201-37/+11
| | | | Removed Win9x notes (since the .NET compiler requires Win2K or XP anyway).
* test_email: comment out two fail-test cases that no longer fail with the newThomas Wouters2004-03-201-25/+27
| | | | | parser -- for now. Failure behaviour of the new parser(s) will change in any case, so this will be revisited later anyway.
* Speed HMAC.copy() by installing a secret backdoor argument toTim Peters2004-03-201-1/+11
| | | | | | 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%.
* A 2% speed improvement with gcc on low-endian machines. My guess is that thisArmin Rigo2004-03-201-6/+10
| | | | | new pattern for NEXTARG() is detected and optimized as a single (*short) loading.
* GCC was complaining that 'value' in dictiter_iternextvalue() wasn'tGuido van Rossum2004-03-201-5/+6
| | | | | | 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.
* SF bug #918371: hasattr()'s return typeRaymond Hettinger2004-03-201-2/+2
| | | | Replace 1 and 0 with True and False.
* Merge in Anthony's new parser code, from the anthony-parser-branch:Thomas Wouters2004-03-201-128/+173
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | > ---------------------------- > 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. > =============================================================================
* Update copyright years, and change copyright.tex to use the same spellingTim Peters2004-03-202-2/+2
| | | | | as license.tex (SF patch 795531 complained about the spelling discrepancy, although this "repairs" that flaw in a different way than the patch).
* commit the portion of PyXML patch #919008 that is relevant to theFred Drake2004-03-202-2/+42
| | | | | | | 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)
* fix two typos that turned text into markupFred Drake2004-03-201-1/+1
|
* Ignore oodles of MSVC-generated files.Tim Peters2004-03-201-0/+14
|
* A helper for rt.bat, copied (but with path adjustment) from PCbuild.Tim Peters2004-03-201-0/+25
|
* PyFile_WriteObject(): some of the local variables are only used whenFred Drake2004-03-191-0/+2
| | | | Py_USING_UNICODE is defined
* Expand on the semantics of reload(). Closes #919099.Skip Montanaro2004-03-191-2/+24
|
* Factor out a double lookup.Raymond Hettinger2004-03-191-2/+1
|
* Add an entry for addition of the ptcp154 codec.Hye-Shik Chang2004-03-191-0/+2
|
* Add a new unicode codec: ptcp154 (Kazakh)Hye-Shik Chang2004-03-193-0/+172
|
* Make iterators length transparent where possible.Raymond Hettinger2004-03-183-3/+42
|
* Improve deque iteration.Raymond Hettinger2004-03-181-1/+102
| | | | | | * The default __reversed__ performed badly, so reintroduced a custom reverse iterator. * Added length transparency to improve speed with map(), list(), etc.
* Add news entries for the dictionary optimizations.Raymond Hettinger2004-03-182-1/+8
|
* Make the new dictionary iterators transparent with respect to length.Raymond Hettinger2004-03-181-4/+20
| | | | | | 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.
* Ignore error status codes occurred while compiling site-packagesHye-Shik Chang2004-03-181-2/+2
| | | | directory.
* Fix capitalization of title for subsection 2.Brett Cannon2004-03-181-1/+1
|
* Optimize dictionary iterators.Raymond Hettinger2004-03-181-57/+202
| | | | | | | | | | | | | | | | | | * 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.
* Minor grammatical fixes.Brett Cannon2004-03-181-3/+3
|
* Extremely minor typo fixed.Brett Cannon2004-03-181-1/+1
|
* Dictionary optimizations:Raymond Hettinger2004-03-171-24/+61
| | | | | | | | | | | | * 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.
* Add missing decrefRaymond Hettinger2004-03-171-0/+1
|
* Speedup the inner loops for dropwhile(), islice(), ifilter(), andRaymond Hettinger2004-03-171-9/+17
| | | | ifilterfalse().
* The example files need to be opened with the "b" flag.Skip Montanaro2004-03-171-2/+2
|
* * supply a more useful error message when append() is called on theGregory P. Smith2004-03-161-2/+8
| | | | | wrong type of database in dbshelve. * fix a typo in the exception name when checking args
* bugfix for people executing test_all to run the test suite. (call theGregory P. Smith2004-03-161-1/+1
| | | | correct function)
* fixes SF bug 914019 - DB.has_key was not honoring its txn argumentGregory P. Smith2004-03-161-2/+2
|
* 1. Make builtin foreground Royal Purple instead of Barney Purple.Kurt B. Kaiser2004-03-162-27/+32
| | | | | | | 2. Touch up help.txt M config-highlight.def M help.txt
* Fix typos and add some elaborationsRaymond Hettinger2004-03-151-4/+9
|
* Port test_binascii.py to PyUnit and enhance tests.Walter Dörwald2004-03-152-152/+149
| | | | | Code coverage for binascii.c is at 92%. From SF patch #736962.
* Revert last change. Found an application that was worse off with resizeRaymond Hettinger2004-03-151-13/+10
| | | | | exact turned on. The tiny space savings wasn't worth the additional time and code.
* 1. Bug in Patch 805830 fixed by Nigel RoweKurt B. Kaiser2004-03-152-22/+26
| | | | | | | | 2. Convert 1/0 to True/False 3. Fix a couple of long lines M ColorDelegator.py M NEWS.txt
* Eliminate an unnecessary test on a common code path.Raymond Hettinger2004-03-151-3/+1
|
* Add missing docstrings.Raymond Hettinger2004-03-141-0/+67
|
* list_resize() now has an "exact" option for bypassing the overallocationRaymond Hettinger2004-03-141-10/+13
| | | | | | | | | | | | | | | | | | 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.
* SF feature request #686323: Minor array module enhancementsRaymond Hettinger2004-03-144-14/+51
| | | | | | | 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.
* Update the array overallocation scheme to match the approach used forRaymond Hettinger2004-03-142-62/+79
| | | | | | | | 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.
* Two issues spotted by Ronald OUssoren:Jack Jansen2004-03-134-3/+2234
| | | | | | - 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.
* Don't use "dict" as a variable, it shadows the builtin. Spotted byJack Jansen2004-03-131-13/+13
| | | | Bob Ippolito.
* compile.h and eval.h weren't being included which kept a fair bit of theSkip Montanaro2004-03-131-0/+3
| | | | public API from being exposed by simply including Python.h (as recommended).
* Force option should be applied to a single package, not recursivelyJack Jansen2004-03-131-1/+1
| | | | to its dependencies. Fixes #733819.
* SF patch #906501: Fix typos in pystate.h commentsRaymond Hettinger2004-03-131-2/+2
| | | | (Contributed by Greg Chapman.)
* SF patch #911431: robot.txt must be robots.txtRaymond Hettinger2004-03-132-3/+3
| | | | (Contributed by George Yoshida.)