----------------------------------- [http://svn.python.org/view?rev=65128&view=rev r65128] | raymond.hettinger | 2008-07-18 20:43:00 -0400 (Fri, 18 Jul 2008) | 1 line Changed paths: M /python/trunk/Doc/library/itertools.rst M /python/trunk/Lib/test/test_itertools.py Add recipe to the itertools docs. ----------------------------------- [http://svn.python.org/view?rev=65131&view=rev r65131] | georg.brandl | 2008-07-19 06:08:55 -0400 (Sat, 19 Jul 2008) | 2 lines Changed paths: M /python/trunk/Python/pythonrun.c #3378: in case of no memory, don't leak even more memory. :) ----------------------------------- [http://svn.python.org/view?rev=65133&view=rev r65133] | georg.brandl | 2008-07-19 08:39:10 -0400 (Sat, 19 Jul 2008) | 3 lines Changed paths: M /python/trunk/Misc/NEWS M /python/trunk/Modules/_localemodule.c #3302: fix segfaults when passing None for arguments that can't be NULL for the C functions. ----------------------------------- [http://svn.python.org/view?rev=65134&view=rev r65134] | georg.brandl | 2008-07-19 08:46:12 -0400 (Sat, 19 Jul 2008) | 2 lines Changed paths: M /python/trunk/Lib/test/test_locale.py M /python/trunk/Misc/NEWS M /python/trunk/Modules/_localemodule.c #3303: fix crash with invalid Py_DECREF in strcoll(). ----------------------------------- [http://svn.python.org/view?rev=65149&view=rev r65149] | raymond.hettinger | 2008-07-19 19:21:57 -0400 (Sat, 19 Jul 2008) | 1 line Changed paths: M /python/trunk/Doc/library/itertools.rst M /python/trunk/Lib/test/test_itertools.py Fix compress() recipe in docs to use itertools. ----------------------------------- [http://svn.python.org/view?rev=65150&view=rev r65150] | raymond.hettinger | 2008-07-19 19:58:47 -0400 (Sat, 19 Jul 2008) | 1 line Changed paths: M /python/trunk/Doc/library/itertools.rst M /python/trunk/Lib/test/test_itertools.py Clean-up itertools docs and recipes. ----------------------------------- [http://svn.python.org/view?rev=65151&view=rev r65151] | gregory.p.smith | 2008-07-19 20:22:08 -0400 (Sat, 19 Jul 2008) | 9 lines Changed paths: M /python/trunk/Misc/NEWS M /python/trunk/PC/_subprocess.c fix issue3120 - don't truncate handles on 64-bit Windows. This is still messy, realistically PC/_subprocess.c should never cast pointers to python numbers and back at all. I don't have a 64-bit windows build environment because microsoft apparently thinks that should cost money. Time to watch the buildbots. It builds and passes tests on 32-bit windows. ----------------------------------- [http://svn.python.org/view?rev=65152&view=rev r65152] | georg.brandl | 2008-07-20 03:29:58 -0400 (Sun, 20 Jul 2008) | 2 lines Changed paths: M /python/trunk/Lib/asyncore.py Remove exception indexing in asyncore. ----------------------------------- [http://svn.python.org/view?rev=65168&view=rev r65168] | facundo.batista | 2008-07-21 10:28:17 -0400 (Mon, 21 Jul 2008) | 5 lines Changed paths: M /python/trunk/Lib/rlcompleter.py Issue 3396. Fixed the autocompletion of 'int.', and worked a little that part of the code, fixing a detail and enhancing a bit others. ----------------------------------- [http://svn.python.org/view?rev=65174&view=rev r65174] | amaury.forgeotdarc | 2008-07-21 17:06:46 -0400 (Mon, 21 Jul 2008) | 3 lines Changed paths: M /python/trunk/Modules/posixmodule.c On Windows, silence a Purify warning and initialize the memory passed to CryptGenRandom. Since python doesn't provide any particular random data, it seems more reasonable anyway. ----------------------------------- [http://svn.python.org/view?rev=65176&view=rev r65176] | amaury.forgeotdarc | 2008-07-21 17:36:24 -0400 (Mon, 21 Jul 2008) | 4 lines Changed paths: M /python/trunk/Misc/NEWS Increment version number in NEWS file, and move items that were added after 2.6b2. (I thought there was a script to automate this kind of updates) ----------------------------------- [http://svn.python.org/view?rev=65177&view=rev r65177] | amaury.forgeotdarc | 2008-07-21 18:00:38 -0400 (Mon, 21 Jul 2008) | 5 lines Changed paths: M /python/trunk/Lib/test/test_scope.py M /python/trunk/Misc/NEWS M /python/trunk/Objects/frameobject.c Issue2378: pdb would delete free variables when stepping into a class statement. The problem was introduced by r53954, the correction is to restore the symmetry between PyFrame_FastToLocals and PyFrame_LocalsToFast ----------------------------------- [http://svn.python.org/view?rev=65182&view=rev r65182] | gregory.p.smith | 2008-07-22 00:46:32 -0400 (Tue, 22 Jul 2008) | 7 lines Changed paths: M /python/trunk/Doc/c-api/memory.rst M /python/trunk/Include/pymem.h M /python/trunk/Misc/NEWS M /python/trunk/Modules/almodule.c M /python/trunk/Modules/arraymodule.c M /python/trunk/Modules/selectmodule.c M /python/trunk/Objects/obmalloc.c Issue #2620: Overflow checking when allocating or reallocating memory was not always being done properly in some python types and extension modules. PyMem_MALLOC, PyMem_REALLOC, PyMem_NEW and PyMem_RESIZE have all been updated to perform better checks and places in the code that would previously leak memory on the error path when such an allocation failed have been fixed. ----------------------------------- [http://svn.python.org/view?rev=65183&view=rev r65183] | ronald.oussoren | 2008-07-22 03:06:00 -0400 (Tue, 22 Jul 2008) | 2 lines Changed paths: M /python/trunk/configure M /python/trunk/configure.in Fix buglet in fix for issue3381 ----------------------------------- [http://svn.python.org/view?rev=65184&view=rev r65184] | ronald.oussoren | 2008-07-22 03:06:33 -0400 (Tue, 22 Jul 2008) | 2 lines Changed paths: M /python/trunk/Mac/Makefile.in Fix build issue on OSX 10.4, somehow this wasn't committed before. ----------------------------------- [http://svn.python.org/view?rev=65194&view=rev r65194] | benjamin.peterson | 2008-07-23 09:25:06 -0400 (Wed, 23 Jul 2008) | 1 line Changed paths: M /python/trunk/Lib/imghdr.py use isinstance ----------------------------------- [http://svn.python.org/view?rev=65209&view=rev r65209] | raymond.hettinger | 2008-07-23 20:08:18 -0400 (Wed, 23 Jul 2008) | 1 line Changed paths: M /python/trunk/Modules/_collectionsmodule.c Finish-up the partial conversion from int to Py_ssize_t for deque indices and length. ----------------------------------- [http://svn.python.org/view?rev=65210&view=rev r65210] | raymond.hettinger | 2008-07-23 20:53:49 -0400 (Wed, 23 Jul 2008) | 1 line Changed paths: M /python/trunk/Modules/_collectionsmodule.c Parse to the correct datatype. ----------------------------------- [http://svn.python.org/view?rev=65214&view=rev r65214] | raymond.hettinger | 2008-07-24 01:38:48 -0400 (Thu, 24 Jul 2008) | 1 line Changed paths: M /python/trunk/Modules/_bisectmodule.c Finish conversion from int to Py_ssize_t. ----------------------------------- [http://svn.python.org/view?rev=65215&view=rev r65215] | raymond.hettinger | 2008-07-24 03:04:55 -0400 (Thu, 24 Jul 2008) | 1 line Changed paths: M /python/trunk/Objects/enumobject.c Convert from long to Py_ssize_t. ----------------------------------- [http://svn.python.org/view?rev=65217&view=rev r65217] | thomas.heller | 2008-07-24 07:16:45 -0400 (Thu, 24 Jul 2008) | 1 line Changed paths: M /python/trunk/Modules/_ctypes/_ctypes.c M /python/trunk/Modules/_ctypes/ctypes.h Make ctypes compatible with Python 2.3, 2.4, and 2.5 again. ----------------------------------- [http://svn.python.org/view?rev=65227&view=rev r65227] | antoine.pitrou | 2008-07-25 13:45:59 -0400 (Fri, 25 Jul 2008) | 3 lines Changed paths: M /python/trunk/Lib/test/test_unicode.py M /python/trunk/Objects/unicodeobject.c #2242: utf7 decoding crashes on bogus input on some Windows/MSVC versions ----------------------------------- [http://svn.python.org/view?rev=65233&view=rev r65233] | raymond.hettinger | 2008-07-25 14:43:33 -0400 (Fri, 25 Jul 2008) | 1 line Changed paths: M /python/trunk/Lib/shelve.py M /python/trunk/Lib/test/test_shelve.py M /python/trunk/Misc/NEWS Issue 1592: Better error reporting for operations on closed shelves. ----------------------------------- [http://svn.python.org/view?rev=65235&view=rev r65235] | antoine.pitrou | 2008-07-25 15:42:26 -0400 (Fri, 25 Jul 2008) | 3 lines Changed paths: M /python/trunk/Lib/test/test_zipfile.py M /python/trunk/Lib/zipfile.py M /python/trunk/Misc/NEWS #3394: zipfile.writestr doesn't set external attributes, so files are extracted mode 000 on Unix ----------------------------------- [http://svn.python.org/view?rev=65237&view=rev r65237] | antoine.pitrou | 2008-07-25 16:40:19 -0400 (Fri, 25 Jul 2008) | 3 lines Changed paths: M /python/trunk/Lib/locale.py M /python/trunk/Lib/test/test_locale.py convert test_locale to unittest, and add a mechanism to override localconv() results for further testing (#1864, #1222) ----------------------------------- [http://svn.python.org/view?rev=65240&view=rev r65240] | antoine.pitrou | 2008-07-25 18:02:07 -0400 (Fri, 25 Jul 2008) | 3 lines Changed paths: M /python/trunk/Tools/pybench/Calls.py add a pybench test for complex function calls (part of #1819) ----------------------------------- [http://svn.python.org/view?rev=65255&view=rev r65255] | skip.montanaro | 2008-07-26 20:49:02 -0400 (Sat, 26 Jul 2008) | 3 lines Changed paths: M /python/trunk/Lib/robotparser.py M /python/trunk/Lib/test/test_robotparser.py Close issue 3437 - missing state change when Allow lines are processed. Adds test cases which use Allow: as well. ----------------------------------- [http://svn.python.org/view?rev=65256&view=rev r65256] | skip.montanaro | 2008-07-26 20:50:41 -0400 (Sat, 26 Jul 2008) | 2 lines Changed paths: M /python/trunk/Misc/NEWS note robotparser bug fix. ----------------------------------- [http://svn.python.org/view?rev=65257&view=rev r65257] | mark.dickinson | 2008-07-27 02:39:07 -0400 (Sun, 27 Jul 2008) | 3 lines Changed paths: M /python/trunk/Lib/test/decimaltestdata/abs.decTest M /python/trunk/Lib/test/decimaltestdata/add.decTest M /python/trunk/Lib/test/decimaltestdata/and.decTest M /python/trunk/Lib/test/decimaltestdata/base.decTest M /python/trunk/Lib/test/decimaltestdata/clamp.decTest M /python/trunk/Lib/test/decimaltestdata/class.decTest M /python/trunk/Lib/test/decimaltestdata/compare.decTest M /python/trunk/Lib/test/decimaltestdata/comparetotal.decTest M /python/trunk/Lib/test/decimaltestdata/comparetotmag.decTest M /python/trunk/Lib/test/decimaltestdata/copy.decTest M /python/trunk/Lib/test/decimaltestdata/copyabs.decTest M /python/trunk/Lib/test/decimaltestdata/copynegate.decTest M /python/trunk/Lib/test/decimaltestdata/copysign.decTest M /python/trunk/Lib/test/decimaltestdata/ddAbs.decTest M /python/trunk/Lib/test/decimaltestdata/ddAdd.decTest M /python/trunk/Lib/test/decimaltestdata/ddAnd.decTest M /python/trunk/Lib/test/decimaltestdata/ddBase.decTest M /python/trunk/Lib/test/decimaltestdata/ddCanonical.decTest M /python/trunk/Lib/test/decimaltestdata/ddClass.decTest M /python/trunk/Lib/test/decimaltestdata/ddCompare.decTest M /python/trunk/Lib/test/decimaltestdata/ddCompareSig.decTest M /python/trunk/Lib/test/decimaltestdata/ddCompareTotal.decTest M /python/trunk/Lib/test/decimaltestdata/ddCompareTotalMag.decTest M /python/trunk/Lib/test/decimaltestdata/ddCopy.decTest M /python/trunk/Lib/test/decimaltestdata/ddCopyAbs.decTest M /python/trunk/Lib/test/decimaltestdata/ddCopyNegate.decTest M /python/trunk/Lib/test/decimaltestdata/ddCopySign.decTest M /python/trunk/Lib/test/decimaltestdata/ddDivide.decTest M /python/trunk/Lib/test/decimaltestdata/ddDivideInt.decTest M /python/trunk/Lib/test/decimaltestdata/ddEncode.decTest M /python/trunk/Lib/test/decimaltestdata/ddFMA.decTest M /python/trunk/Lib/test/decimaltestdata/ddInvert.decTest M /python/trunk/Lib/test/decimaltestdata/ddLogB.decTest M /python/trunk/Lib/test/decimaltestdata/ddMax.decTest M /python/trunk/Lib/test/decimaltestdata/ddMaxMag.decTest M /python/trunk/Lib/test/decimaltestdata/ddMin.decTest M /python/trunk/Lib/test/decimaltestdata/ddMinMag.decTest M /python/trunk/Lib/test/decimaltestdata/ddMinus.decTest M /python/trunk/Lib/test/decimaltestdata/ddMultiply.decTest M /python/trunk/Lib/test/decimaltestdata/ddNextMinus.decTest M /python/trunk/Lib/test/decimaltestdata/ddNextPlus.decTest M /python/trunk/Lib/test/decimaltestdata/ddNextToward.decTest M /python/trunk/Lib/test/decimaltestdata/ddOr.decTest M /python/trunk/Lib/test/decimaltestdata/ddPlus.decTest M /python/trunk/Lib/test/decimaltestdata/ddQuantize.decTest M /python/trunk/Lib/test/decimaltestdata/ddReduce.decTest M /python/trunk/Lib/test/decimaltestdata/ddRemainder.decTest M /python/trunk/Lib/test/decimaltestdata/ddRemainderNear.decTest M /python/trunk/Lib/test/decimaltestdata/ddRotate.decTest M /python/trunk/Lib/test/decimaltestdata/ddSameQuantum.decTest M /python/trunk/Lib/test/decimaltestdata/ddScaleB.decTest M /python/trunk/Lib/test/decimaltestdata/ddShift.decTest M /python/trunk/Lib/test/decimaltestdata/ddSubtract.decTest M /python/trunk/Lib/test/decimaltestdata/ddToIntegral.decTest M /python/trunk/Lib/test/decimaltestdata/ddXor.decTest M /python/trunk/Lib/test/decimaltestdata/decDouble.decTest M /python/trunk/Lib/test/decimaltestdata/decQuad.decTest M /python/trunk/Lib/test/decimaltestdata/decSingle.decTest M /python/trunk/Lib/test/decimaltestdata/divide.decTest M /python/trunk/Lib/test/decimaltestdata/divideint.decTest M /python/trunk/Lib/test/decimaltestdata/dqAbs.decTest M /python/trunk/Lib/test/decimaltestdata/dqAdd.decTest M /python/trunk/Lib/test/decimaltestdata/dqAnd.decTest M /python/trunk/Lib/test/decimaltestdata/dqBase.decTest M /python/trunk/Lib/test/decimaltestdata/dqCanonical.decTest M /python/trunk/Lib/test/decimaltestdata/dqClass.decTest M /python/trunk/Lib/test/decimaltestdata/dqCompare.decTest M /python/trunk/Lib/test/decimaltestdata/dqCompareSig.decTest M /python/trunk/Lib/test/decimaltestdata/dqCompareTotal.decTest M /python/trunk/Lib/test/decimaltestdata/dqCompareTotalMag.decTest M /python/trunk/Lib/test/decimaltestdata/dqCopy.decTest M /python/trunk/Lib/test/decimaltestdata/dqCopyAbs.decTest M /python/trunk/Lib/test/decimaltestdata/dqCopyNegate.decTest M /python/trunk/Lib/test/decimaltestdata/dqCopySign.decTest M /python/trunk/Lib/test/decimaltestdata/dqDivide.decTest M /python/trunk/Lib/test/decimaltestdata/dqDivideInt.decTest M /python/trunk/Lib/test/decimaltestdata/dqEncode.decTest M /python/trunk/Lib/test/decimaltestdata/dqFMA.decTest M /python/trunk/Lib/test/decimaltestdata/dqInvert.decTest M /python/trunk/Lib/test/decimaltestdata/dqLogB.decTest M /python/trunk/Lib/test/decimaltestdata/dqMax.decTest M /python/trunk/Lib/test/decimaltestdata/dqMaxMag.decTest M /python/trunk/Lib/test/decimaltestdata/dqMin.decTest M /python/trunk/Lib/test/decimaltestdata/dqMinMag.decTest M /python/trunk/Lib/test/decimaltestdata/dqMinus.decTest M /python/trunk/Lib/test/decimaltestdata/dqMultiply.decTest M /python/trunk/Lib/test/decimaltestdata/dqNextMinus.decTest M /python/trunk/Lib/test/decimaltestdata/dqNextPlus.decTest M /python/trunk/Lib/test/decimaltestdata/dqNextToward.decTest M /python/trunk/Lib/test/decimaltestdata/dqOr.decTest M /python/trunk/Lib/test/decimaltestdata/dqPlus.decTest M /python/trunk/Lib/test/decimaltestdata/dqQuantize.decTest M /python/trunk/Lib/test/decimaltestdata/dqReduce.decTest M /python/trunk/Lib/test/decimaltestdata/dqRemainder.decTest M /python/trunk/Lib/test/decimaltestdata/dqRemainderNear.decTest M /python/trunk/Lib/test/decimaltestdata/dqRotate.decTest M /python/trunk/Lib/test/decimaltestdata/dqSameQuantum.decTest M /python/trunk/Lib/test/decimaltestdata/dqScaleB.decTest M /python/trunk/Lib/test/decimaltestdata/dqShift.decTest M /python/trunk/Lib/test/decimaltestdata/dqSubtract.decTest M /python/trunk/Lib/test/decimaltestdata/dqToIntegral.decTest M /python/trunk/Lib/test/decimaltestdata/dqXor.decTest M /python/trunk/Lib/test/decimaltestdata/dsBase.decTest M /python/trunk/Lib/test/decimaltestdata/dsEncode.decTest M /python/trunk/Lib/test/decimaltestdata/exp.decTest M /python/trunk/Lib/test/decimaltestdata/fma.decTest M /python/trunk/Lib/test/decimaltestdata/inexact.decTest M /python/trunk/Lib/test/decimaltestdata/invert.decTest M /python/trunk/Lib/test/decimaltestdata/ln.decTest M /python/trunk/Lib/test/decimaltestdata/log10.decTest M /python/trunk/Lib/test/decimaltestdata/logb.decTest M /python/trunk/Lib/test/decimaltestdata/max.decTest M /python/trunk/Lib/test/decimaltestdata/maxmag.decTest M /python/trunk/Lib/test/decimaltestdata/min.decTest M /python/trunk/Lib/test/decimaltestdata/minmag.decTest M /python/trunk/Lib/test/decimaltestdata/minus.decTest M /python/trunk/Lib/test/decimaltestdata/multiply.decTest M /python/trunk/Lib/test/decimaltestdata/nextminus.decTest M /python/trunk/Lib/test/decimaltestdata/nextplus.decTest M /python/trunk/Lib/test/decimaltestdata/nexttoward.decTest M /python/trunk/Lib/test/decimaltestdata/or.decTest M /python/trunk/Lib/test/decimaltestdata/plus.decTest M /python/trunk/Lib/test/decimaltestdata/power.decTest M /python/trunk/Lib/test/decimaltestdata/powersqrt.decTest M /python/trunk/Lib/test/decimaltestdata/quantize.decTest M /python/trunk/Lib/test/decimaltestdata/randomBound32.decTest M /python/trunk/Lib/test/decimaltestdata/randoms.decTest M /python/trunk/Lib/test/decimaltestdata/reduce.decTest M /python/trunk/Lib/test/decimaltestdata/remainder.decTest M /python/trunk/Lib/test/decimaltestdata/remainderNear.decTest M /python/trunk/Lib/test/decimaltestdata/rescale.decTest M /python/trunk/Lib/test/decimaltestdata/rotate.decTest M /python/trunk/Lib/test/decimaltestdata/rounding.decTest M /python/trunk/Lib/test/decimaltestdata/samequantum.decTest M /python/trunk/Lib/test/decimaltestdata/scaleb.decTest M /python/trunk/Lib/test/decimaltestdata/shift.decTest M /python/trunk/Lib/test/decimaltestdata/squareroot.decTest M /python/trunk/Lib/test/decimaltestdata/subtract.decTest M /python/trunk/Lib/test/decimaltestdata/testall.decTest M /python/trunk/Lib/test/decimaltestdata/tointegral.decTest M /python/trunk/Lib/test/decimaltestdata/tointegralx.decTest M /python/trunk/Lib/test/decimaltestdata/xor.decTest M /python/trunk/Misc/NEWS Issue #3449: Update decimal module to use most recent specification (v. 1.68) and tests (v. 2.58) from IBM. ----------------------------------- [http://svn.python.org/view?rev=65284&view=rev r65284] | jesus.cea | 2008-07-29 09:38:50 -0400 (Tue, 29 Jul 2008) | 1 line Changed paths: M /python/trunk/Lib/bsddb/test/test_misc.py M /python/trunk/Lib/bsddb/test/test_replication.py Refinements in the bsddb testsuite ----------------------------------- [http://svn.python.org/view?rev=65289&view=rev r65289] | jesus.cea | 2008-07-29 12:16:23 -0400 (Tue, 29 Jul 2008) | 5 lines Changed paths: M /python/trunk/Lib/bsddb/test/test_replication.py Be less strict with replication timeouts (the machine can be a bit loaded), and be sure to yield the CPU when waiting. ----------------------------------- [http://svn.python.org/view?rev=65296&view=rev r65296] | raymond.hettinger | 2008-07-30 03:27:30 -0400 (Wed, 30 Jul 2008) | 1 line Changed paths: M /python/trunk/Doc/library/itertools.rst M /python/trunk/Lib/test/test_itertools.py Neaten-up the itertools recipes. ----------------------------------- [http://svn.python.org/view?rev=65299&view=rev r65299] | mark.dickinson | 2008-07-30 08:01:41 -0400 (Wed, 30 Jul 2008) | 5 lines Changed paths: M /python/trunk/Modules/mathmodule.c Fix special-value handling for math.sum. Also minor cleanups to the code: fix tabbing, remove trailing whitespace, and reformat to fit into 80 columns. ----------------------------------- [http://svn.python.org/view?rev=65307&view=rev r65307] | benjamin.peterson | 2008-07-30 09:46:53 -0400 (Wed, 30 Jul 2008) | 1 line Changed paths: M /python/trunk/Doc/library/random.rst M /python/trunk/Lib/random.py getrandombits is actually getrandbits ----------------------------------- [http://svn.python.org/view?rev=65309&view=rev r65309] | mark.dickinson | 2008-07-30 12:25:16 -0400 (Wed, 30 Jul 2008) | 3 lines Changed paths: M /python/trunk/Modules/mathmodule.c Replace math.sum with math.fsum in a couple of comments that were missed by [http://svn.python.org/view?rev=65308&view=rev r65308] ----------------------------------- [http://svn.python.org/view?rev=65310&view=rev r65310] | benjamin.peterson | 2008-07-30 13:45:10 -0400 (Wed, 30 Jul 2008) | 1 line Changed paths: M /python/trunk/Objects/exceptions.c backport [http://svn.python.org/view?rev=64751&view=rev r64751] ----------------------------------- [http://svn.python.org/view?rev=65320&view=rev r65320] | amaury.forgeotdarc | 2008-07-30 20:42:16 -0400 (Wed, 30 Jul 2008) | 3 lines Changed paths: M /python/trunk/Lib/test/test_exceptions.py M /python/trunk/Misc/NEWS M /python/trunk/Python/errors.c #2542: now that issubclass() may call arbitrary code, make sure that PyErr_ExceptionMatches returns 0 when an exception occurs there. ----------------------------------- [http://svn.python.org/view?rev=65321&view=rev r65321] | raymond.hettinger | 2008-07-30 21:19:50 -0400 (Wed, 30 Jul 2008) | 4 lines Changed paths: M /python/trunk/Doc/library/itertools.rst M /python/trunk/Lib/test/test_itertools.py Alter recipe to show how to call izip_longest() with both a keyword argument and star arguments. ----------------------------------- [http://svn.python.org/view?rev=65328&view=rev r65328] | benjamin.peterson | 2008-07-31 11:15:45 -0400 (Thu, 31 Jul 2008) | 1 line Changed paths: M /python/trunk/Lib/lib-tk/Tkinter.py remove usage of MacOS from Tkinter ----------------------------------- [http://svn.python.org/view?rev=65339&view=rev r65339] | amaury.forgeotdarc | 2008-07-31 17:28:03 -0400 (Thu, 31 Jul 2008) | 5 lines Changed paths: M /python/trunk/Lib/test/test_builtin.py M /python/trunk/Misc/NEWS M /python/trunk/Python/bltinmodule.c #3479: unichr(2**32) used to return u'\x00'. The argument was fetched in a long, but PyUnicode_FromOrdinal takes an int. (why doesn't gcc issue a truncation warning in this case?) ----------------------------------- [http://svn.python.org/view?rev=65342&view=rev r65342] | amaury.forgeotdarc | 2008-07-31 19:39:05 -0400 (Thu, 31 Jul 2008) | 8 lines Changed paths: M /python/trunk/Lib/test/test_unicode.py M /python/trunk/Objects/unicodeobject.c Correct a crash when two successive unicode allocations fail with a MemoryError: the freelist contained half-initialized objects with freed pointers. The comment /* XXX UNREF/NEWREF interface should be more symmetrical */ was copied from tupleobject.c, and appears in some other places. I sign the petition. ----------------------------------- [http://svn.python.org/view?rev=65346&view=rev r65346] | brett.cannon | 2008-07-31 21:21:50 -0400 (Thu, 31 Jul 2008) | 1 line Changed paths: M /python/trunk/Lib/traceback.py Fix a DeprecationWarning about __getitem__() and exceptions in the 'traceback' module. ----------------------------------- [http://svn.python.org/view?rev=65353&view=rev r65353] | brett.cannon | 2008-07-31 21:40:24 -0400 (Thu, 31 Jul 2008) | 4 lines Changed paths: M /python/trunk/Lib/inspect.py Silence (Syntax|Deprecation)Warning for 'inspect'. Had to remove tuple unpacking in a parameter list and set some constants by hand that were pulled from the 'compiler' package. ----------------------------------- [http://svn.python.org/view?rev=65368&view=rev r65368] | martin.v.loewis | 2008-08-01 10:10:26 -0400 (Fri, 01 Aug 2008) | 3 lines Changed paths: M /python/trunk/Makefile.pre.in M /python/trunk/Misc/NEWS Generate the PatternGrammar pickle during "make install". Fixes part of #3131. ----------------------------------- [http://svn.python.org/view?rev=65399&view=rev r65399] | martin.v.loewis | 2008-08-02 03:20:25 -0400 (Sat, 02 Aug 2008) | 3 lines Changed paths: M /python/trunk/Lib/lib-tk/Tkinter.py M /python/trunk/Misc/NEWS Issue #799428: Fix Tkinter.Misc._nametowidget to unwrap Tcl command objects. ----------------------------------- [http://svn.python.org/view?rev=65422&view=rev r65422] | antoine.pitrou | 2008-08-02 17:58:05 -0400 (Sat, 02 Aug 2008) | 1 line Changed paths: M /python/trunk/Lib/test/test_str.py M /python/trunk/Objects/stringobject.c Preemptively backport the relevant parts of [http://svn.python.org/view?rev=65420&view=rev r65420] ----------------------------------- [http://svn.python.org/view?rev=65438&view=rev r65438] | brett.cannon | 2008-08-03 18:34:25 -0400 (Sun, 03 Aug 2008) | 3 lines Changed paths: M /python/trunk/Lib/cookielib.py Remove a use of list.sort(cmp=) to silence a -3 DeprecationWarning in cookielib. ----------------------------------- [http://svn.python.org/view?rev=65440&view=rev r65440] | brett.cannon | 2008-08-03 18:38:19 -0400 (Sun, 03 Aug 2008) | 2 lines Changed paths: M /python/trunk/Lib/profile.py Remove a dict.has_key() usage in profile to silence a -3 DeprecationWarning. ----------------------------------- [http://svn.python.org/view?rev=65444&view=rev r65444] | brett.cannon | 2008-08-03 18:57:23 -0400 (Sun, 03 Aug 2008) | 3 lines Changed paths: M /python/trunk/Lib/SimpleXMLRPCServer.py Remove a dict.has_key() and callable() usage in SimpleXMLRPCServer as triggered under -3 through test_xmlrpc. ----------------------------------- [http://svn.python.org/view?rev=65455&view=rev r65455] | brett.cannon | 2008-08-03 19:52:32 -0400 (Sun, 03 Aug 2008) | 2 lines Changed paths: M /python/trunk/Lib/fileinput.py Remove a use of callable() in fileinput to silence a -3 warning. ----------------------------------- [http://svn.python.org/view?rev=65459&view=rev r65459] | gregory.p.smith | 2008-08-03 20:13:29 -0400 (Sun, 03 Aug 2008) | 4 lines Changed paths: M /python/trunk/Lib/subprocess.py M /python/trunk/Misc/NEWS - Issue #1857: subprocess.Popen.poll gained an additional _deadstate keyword argument in python 2.5, this broke code that subclassed Popen to include its own poll method. Fixed my moving _deadstate to an _internal_poll method. ----------------------------------- [http://svn.python.org/view?rev=65464&view=rev r65464] | brett.cannon | 2008-08-03 20:27:29 -0400 (Sun, 03 Aug 2008) | 2 lines Changed paths: M /python/trunk/Lib/modulefinder.py Silence warnings under -3 about using dict.has_key() for modulefinder. ----------------------------------- [http://svn.python.org/view?rev=65472&view=rev r65472] | andrew.kuchling | 2008-08-03 21:43:43 -0400 (Sun, 03 Aug 2008) | 3 lines Changed paths: M /python/trunk/Lib/mailbox.py M /python/trunk/Lib/test/test_mailbox.py Bug 3228: Explicitly supply the file mode to avoid creating executable files, and add corresponding tests. Possible 2.5 backport candidate ----------------------------------- [http://svn.python.org/view?rev=65481&view=rev r65481] | gregory.p.smith | 2008-08-04 03:33:37 -0400 (Mon, 04 Aug 2008) | 22 lines Changed paths: M /python/trunk/Python/pystate.c M /python/trunk/Python/thread.c Adds a sanity check to avoid a *very rare* infinite loop due to a corrupt tls key list data structure in the thread startup path. This change is a companion to [http://svn.python.org/view?rev=60148&view=rev r60148] which already successfully dealt with a similar issue on thread shutdown. In particular this loop has been observed happening from this call path: #0 in find_key () #1 in PyThread_set_key_value () #2 in _PyGILState_NoteThreadState () #3 in PyThreadState_New () #4 in t_bootstrap () #5 in pthread_start_thread () I don't know how this happens but it does, *very* rarely. On more than one hardware platform. I have not been able to reproduce it manually. (A flaky mutex implementation on the system in question is one hypothesis). As with [http://svn.python.org/view?rev=60148&view=rev r60148], the spinning we managed to observe in the wild was due to a single list element pointing back upon itself. ----------------------------------- [http://svn.python.org/view?rev=65488&view=rev r65488] | nick.coghlan | 2008-08-04 08:47:17 -0400 (Mon, 04 Aug 2008) | 1 line Changed paths: M /python/trunk/Misc/NEWS Add missing NEWS entry for [http://svn.python.org/view?rev=65487&view=rev r65487] ----------------------------------- [http://svn.python.org/view?rev=65518&view=rev r65518] | mark.dickinson | 2008-08-04 17:30:09 -0400 (Mon, 04 Aug 2008) | 7 lines Changed paths: M /python/trunk/Lib/test/test_long.py M /python/trunk/Misc/NEWS M /python/trunk/Objects/longobject.c Issue #1481296: (again!) Make conversion of a float NaN to an int or long raise ValueError instead of returning 0. Also, change the error message for conversion of an infinity to an integer, replacing 'long' by 'integer', so that it's appropriate for both long(float('inf')) and int(float('inf')). ----------------------------------- [http://svn.python.org/view?rev=65519&view=rev r65519] | brett.cannon | 2008-08-04 17:30:53 -0400 (Mon, 04 Aug 2008) | 2 lines Changed paths: M /python/trunk/Lib/wsgiref/handlers.py M /python/trunk/Lib/wsgiref/headers.py M /python/trunk/Lib/wsgiref/simple_server.py M /python/trunk/Lib/wsgiref/util.py Silence warnings under -3 triggered by wsgiref. ----------------------------------- [http://svn.python.org/view?rev=65528&view=rev r65528] | brett.cannon | 2008-08-04 17:52:25 -0400 (Mon, 04 Aug 2008) | 4 lines Changed paths: M /python/trunk/Misc/NEWS Add a note about all the modules/packages changed to silence -3 warnings. More changes are needed once some decisions are made, but this is the work up to this point. ----------------------------------- [http://svn.python.org/view?rev=65544&view=rev r65544] | guido.van.rossum | 2008-08-04 23:39:21 -0400 (Mon, 04 Aug 2008) | 28 lines Changed paths: M /python/trunk/Modules/_sre.c Tracker issue 3487: sre "bytecode" verifier. This is a verifier for the binary code used by the _sre module (this is often called bytecode, though to distinguish it from Python bytecode I put it in quotes). I wrote this for Google App Engine, and am making the patch available as open source under the Apache 2 license. Below are the copyright statement and license, for completeness. # Copyright 2008 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. It's not necessary to include these copyrights and bytecode in the source file. Google has signed a contributor's agreement with the PSF already. ----------------------------------- [http://svn.python.org/view?rev=65578&view=rev r65578] | antoine.pitrou | 2008-08-07 14:42:40 -0400 (Thu, 07 Aug 2008) | 3 lines Changed paths: M /python/trunk/Lib/code.py #1288615: Python code.interact() and non-ASCII input ----------------------------------- [http://svn.python.org/view?rev=65581&view=rev r65581] | guido.van.rossum | 2008-08-07 14:51:38 -0400 (Thu, 07 Aug 2008) | 3 lines Changed paths: M /python/trunk/Modules/fcntlmodule.c Patch by Ian Charnas from issue 3517. Add F_FULLFSYNC if it exists (OS X only so far). ----------------------------------- [http://svn.python.org/view?rev=65605&view=rev r65605] | skip.montanaro | 2008-08-08 18:52:51 -0400 (Fri, 08 Aug 2008) | 1 line Changed paths: M /python/trunk/Doc/library/csv.rst M /python/trunk/Lib/csv.py M /python/trunk/Lib/test/test_csv.py M /python/trunk/Misc/NEWS accept issue 3436 ----------------------------------- [http://svn.python.org/view?rev=65606&view=rev r65606] | antoine.pitrou | 2008-08-09 08:43:23 -0400 (Sat, 09 Aug 2008) | 3 lines Changed paths: M /python/trunk/Misc/NEWS Fix slightly misleading statement in the NEWS file. ----------------------------------- [http://svn.python.org/view?rev=65609&view=rev r65609] | antoine.pitrou | 2008-08-09 13:22:25 -0400 (Sat, 09 Aug 2008) | 3 lines Changed paths: M /python/trunk/Misc/NEWS M /python/trunk/Modules/bz2module.c #3205: bz2 iterator fails silently on MemoryError ----------------------------------- [http://svn.python.org/view?rev=65610&view=rev r65610] | antoine.pitrou | 2008-08-09 13:27:23 -0400 (Sat, 09 Aug 2008) | 3 lines Changed paths: M /python/trunk/Misc/NEWS move NEWS entry to the appropriate section (oops!) ----------------------------------- [http://svn.python.org/view?rev=65619&view=rev r65619] | brett.cannon | 2008-08-09 19:39:11 -0400 (Sat, 09 Aug 2008) | 3 lines Changed paths: M /python/trunk/Lib/csv.py M /python/trunk/Misc/NEWS Silence warnings in csv about using reduce() when run under -3 by using functools.reduce() instead. ----------------------------------- [http://svn.python.org/view?rev=65622&view=rev r65622] | robert.schuppenies | 2008-08-10 07:01:53 -0400 (Sun, 10 Aug 2008) | 4 lines Changed paths: M /python/trunk/Lib/lib-tk/Tkinter.py M /python/trunk/Misc/NEWS Issue #1342811: Fix leak in Tkinter.Menu.delete. Commands associated to menu entries were not deleted. ----------------------------------- [http://svn.python.org/view?rev=65637&view=rev r65637] | georg.brandl | 2008-08-11 05:07:59 -0400 (Mon, 11 Aug 2008) | 3 lines Changed paths: M /python/trunk/Lib/test/test_dict.py M /python/trunk/Misc/NEWS M /python/trunk/Objects/dictobject.c - Issue #3537: Fix an assertion failure when an empty but presized dict object was stored in the freelist. ----------------------------------- [http://svn.python.org/view?rev=65644&view=rev r65644] | antoine.pitrou | 2008-08-11 13:21:36 -0400 (Mon, 11 Aug 2008) | 3 lines Changed paths: M /python/trunk/Lib/shutil.py M /python/trunk/Misc/NEWS #3134: shutil referenced undefined WindowsError symbol ----------------------------------- [http://svn.python.org/view?rev=65652&view=rev r65652] | ronald.oussoren | 2008-08-12 08:29:13 -0400 (Tue, 12 Aug 2008) | 2 lines Changed paths: M /python/trunk/configure M /python/trunk/configure.in Fix typo in the `arch` commandline ----------------------------------- [http://svn.python.org/view?rev=65653&view=rev r65653] | ronald.oussoren | 2008-08-12 08:41:45 -0400 (Tue, 12 Aug 2008) | 3 lines Changed paths: M /python/trunk/Mac/Modules/MacOS.c M /python/trunk/Mac/Modules/file/_Filemodule.c Another fix for 4-way universal builds, use the right #ifndef guard to detect the OSX 10.5 SDK. ----------------------------------- [http://svn.python.org/view?rev=65663&view=rev r65663] | hirokazu.yamamoto | 2008-08-13 21:33:44 -0400 (Wed, 13 Aug 2008) | 19 lines Changed paths: M /python/trunk/PC/VC6/_bsddb.dsp A /python/trunk/PC/VC6/_msi.dsp M /python/trunk/PC/VC6/_sqlite3.dsp M /python/trunk/PC/VC6/build_ssl.py M /python/trunk/PC/VC6/pcbuild.dsw M /python/trunk/PC/VC6/python.dsp M /python/trunk/PC/VC6/pythoncore.dsp M /python/trunk/PC/VC6/readme.txt Issue #2065: VC6 related fix. - PC/VC6/_bsddb.dsp: removed '/nodefaultlib:"msvcrt"' to fix linker error. - PC/VC6/_msi.dsp, PC/VC6/pcbuild.dsw: added new module support. - PC/VC6/_sqlite3.dsp: /D "MODULE_NAME=\"sqlite3\"" caused extra leading space like #define MODULE_NAME " sqlite3" so uses /D MODULE_NAME=\"sqlite3\" instead. - PC/VC6/python.dsp: changed stack size to 2MB to avoid stack overflow on some tests. ----------------------------------- [http://svn.python.org/view?rev=65665&view=rev r65665] | brett.cannon | 2008-08-14 01:00:03 -0400 (Thu, 14 Aug 2008) | 11 lines Changed paths: M /python/trunk/Lib/mimetools.py M /python/trunk/Misc/NEWS Silence the DeprecationWarning of rfc822 triggered by its importation in mimetools. This has an unfortunate side-effect of potentially not letting any warning about rfc822's deprecation be seen by user-visible code if rfc822 is not imported before mimetools. This is because modules are cached in sys.modules and thus do not have their deprecation triggered more than once. But this silencing would have happened by other code that silences the use of mimetools or rfc822 anyway in the stdlib or user code, and thus seems justified to be done here. ----------------------------------- [http://svn.python.org/view?rev=65667&view=rev r65667] | hirokazu.yamamoto | 2008-08-14 01:50:43 -0400 (Thu, 14 Aug 2008) | 1 line Changed paths: M /python/trunk/Lib/distutils/command/build_ext.py Fixed test_distutils error (test_build_ext) on VC6. ----------------------------------- [http://svn.python.org/view?rev=65677&view=rev r65677] | martin.v.loewis | 2008-08-14 11:54:27 -0400 (Thu, 14 Aug 2008) | 3 lines Changed paths: M /python/trunk/Objects/abstract.c Make obj an owned reference in Py_buffer; this checkin was missing from the patch for #3139. ----------------------------------- [http://svn.python.org/view?rev=65678&view=rev r65678] | martin.v.loewis | 2008-08-14 11:56:07 -0400 (Thu, 14 Aug 2008) | 2 lines Changed paths: M /python/trunk/Modules/_ctypes/_ctypes.c Properly INCREF reference in Py_buffer. ----------------------------------- [http://svn.python.org/view?rev=65679&view=rev r65679] | facundo.batista | 2008-08-14 12:51:00 -0400 (Thu, 14 Aug 2008) | 5 lines Changed paths: M /python/trunk/Lib/test/test_urlparse.py M /python/trunk/Lib/urlparse.py Issue 1432. Fixes a bug caused because of the evolution of the RFC that describes the behaviour. Note that we now have the same behaviour than the current browsers. ----------------------------------- [http://svn.python.org/view?rev=65681&view=rev r65681] | thomas.heller | 2008-08-14 15:10:48 -0400 (Thu, 14 Aug 2008) | 4 lines Changed paths: M /python/trunk/Lib/ctypes/__init__.py M /python/trunk/Lib/ctypes/test/test_memfunctions.py M /python/trunk/Misc/NEWS issue #3554: ctypes.string_at and ctypes.wstring_at must use the pythonapi calling convention so that the GIL is held and error return values are checked. ----------------------------------- [http://svn.python.org/view?rev=65682&view=rev r65682] | thomas.heller | 2008-08-14 16:04:38 -0400 (Thu, 14 Aug 2008) | 2 lines Changed paths: M /python/trunk/Lib/ctypes/test/test_memfunctions.py Try to fix the test on 64-bit platforms. ----------------------------------- [http://svn.python.org/view?rev=65684&view=rev r65684] | thomas.heller | 2008-08-14 16:19:18 -0400 (Thu, 14 Aug 2008) | 2 lines Changed paths: M /python/trunk/Lib/ctypes/test/test_memfunctions.py Disable the test until I have one that works. ----------------------------------- [http://svn.python.org/view?rev=65700&view=rev r65700] | antoine.pitrou | 2008-08-15 17:03:21 -0400 (Fri, 15 Aug 2008) | 3 lines Changed paths: M /python/trunk/Lib/email/message.py M /python/trunk/Misc/NEWS #2676: email/message.py [Message.get_content_type]: Trivial regex hangs on pathological input ----------------------------------- [http://svn.python.org/view?rev=65710&view=rev r65710] | facundo.batista | 2008-08-16 10:44:07 -0400 (Sat, 16 Aug 2008) | 4 lines Changed paths: M /python/trunk/Lib/test/test_urllib2.py M /python/trunk/Lib/urllib2.py M /python/trunk/Misc/NEWS Issue #2776: fixed small issue when handling an URL with double slash after a 302 response in the case of not going through a proxy. ----------------------------------- [http://svn.python.org/view?rev=65713&view=rev r65713] | benjamin.peterson | 2008-08-16 12:29:02 -0400 (Sat, 16 Aug 2008) | 1 line Changed paths: M /python/trunk/Lib/imghdr.py #3424 rearrange the order of tests in imghdr to place more common types first ----------------------------------- [http://svn.python.org/view?rev=65716&view=rev r65716] | brett.cannon | 2008-08-16 17:47:07 -0400 (Sat, 16 Aug 2008) | 5 lines Changed paths: M /python/trunk/Lib/BaseHTTPServer.py M /python/trunk/Misc/NEWS Silence the DeprecationWarning raised by importing mimetools in BaseHTTPServer. This does have an unfortunate side-effect of silencing the warning for all subsequent code that imports mimetools as well since the warning is only executed upon the first import of mimetools. ----------------------------------- [http://svn.python.org/view?rev=65719&view=rev r65719] | brett.cannon | 2008-08-16 17:56:03 -0400 (Sat, 16 Aug 2008) | 2 lines Changed paths: M /python/trunk/Lib/httplib.py M /python/trunk/Misc/NEWS Silence the DeprecationWarning raised in httplib when mimetools is imported. ----------------------------------- [http://svn.python.org/view?rev=65721&view=rev r65721] | brett.cannon | 2008-08-16 18:00:27 -0400 (Sat, 16 Aug 2008) | 2 lines Changed paths: M /python/trunk/Lib/cgi.py M /python/trunk/Misc/NEWS Silence DeprecationWarning raised by mimetools and rfc822 in cgi. ----------------------------------- [http://svn.python.org/view?rev=65724&view=rev r65724] | benjamin.peterson | 2008-08-16 18:11:33 -0400 (Sat, 16 Aug 2008) | 2 lines Changed paths: M /python/trunk/Lib/test/test_syntax.py M /python/trunk/Python/symtable.c include filename and line number in SyntaxError ----------------------------------- [http://svn.python.org/view?rev=65732&view=rev r65732] | benjamin.peterson | 2008-08-16 19:29:40 -0400 (Sat, 16 Aug 2008) | 1 line Changed paths: M /python/trunk/Python/symtable.c PySTEntry's constructor is static; there's no point in a fancy API name ----------------------------------- [http://svn.python.org/view?rev=65736&view=rev r65736] | benjamin.peterson | 2008-08-16 21:09:17 -0400 (Sat, 16 Aug 2008) | 1 line Changed paths: M /python/trunk/Include/symtable.h M /python/trunk/Python/symtable.c expose PySTEntry.nested so the symtable module will work ----------------------------------- [http://svn.python.org/view?rev=65738&view=rev r65738] | benjamin.peterson | 2008-08-16 21:27:30 -0400 (Sat, 16 Aug 2008) | 1 line Changed paths: M /python/trunk/Include/symtable.h fix compile errors ----------------------------------- [http://svn.python.org/view?rev=65739&view=rev r65739] | benjamin.peterson | 2008-08-16 22:23:43 -0400 (Sat, 16 Aug 2008) | 1 line Changed paths: M /python/trunk/Python/symtable.c uhh PySTEntry->ste_unoptimized has to be exposed too