summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* #3753: document that s* etc. are newer and preferred to s#.Georg Brandl2008-09-011-25/+29
|
* #3712: The memoryview object had a reference leak and didn't support cyclic ↵Antoine Pitrou2008-09-013-34/+101
| | | | | | garbage collection. Reviewed by Benjamin Peterson.
* Merged revisions 66104 via svnmerge fromHirokazu Yamamoto2008-09-011-0/+3
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r66104 | hirokazu.yamamoto | 2008-09-01 23:32:58 +0900 | 2 lines Issue #3748: platform.architecture() printed vogus message on windows. Reviewed by Marc-Andre Lemburg. ........
* Blocked revisions 66100 via svnmergeHirokazu Yamamoto2008-09-010-0/+0
| | | | | | | | | ........ r66100 | hirokazu.yamamoto | 2008-09-01 23:24:04 +0900 | 3 lines Issue #3732: Backported r53335 to supress deprecation warning. Reviewed by Benjamin Peterson. ........
* issue3715: docstring representation of hex escaped string needs to be doubleGregory P. Smith2008-08-311-1/+1
| | | | escaped.
* bsddb code updated to version 4.7.3pre2. This code is the same thanJesus Cea2008-08-3133-2687/+5391
| | | | | | | | | Python 2.6 one, since the intention is to keep an unified 2.x/3.x codebase. The Python code is automatically translated using "2to3". Please, do not update this code in Python 3.0 by hand. Update the 2.6 one and then do "2to3".
* Merged revisions 66085 (with modifications) via svnmerge fromNick Coghlan2008-08-311-4/+21
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r66085 | nick.coghlan | 2008-08-31 23:10:50 +1000 (Sun, 31 Aug 2008) | 1 line Issue 2235: document the ability to block inheritance of __hash__ in the language reference ........
* Merged revisions 65487 (with heavy modifications for Py3k as well as some ↵Nick Coghlan2008-08-311-52/+137
| | | | | | | | | | | | cleanups of the type heirarchy) via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r65487 | nick.coghlan | 2008-08-04 22:40:59 +1000 (Mon, 04 Aug 2008) | 1 line Issue 643841: better documentation of the special method lookup process, especially for new-style classes. Also removes the warnings about not being authoritative for new-style classes - the language reference actually covers those fairly well now (albeit in a fashion that isn't always particularly easy to follow). ........
* Merged revisions 66076 via svnmerge fromGeorg Brandl2008-08-301-3/+3
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r66076 | georg.brandl | 2008-08-30 21:03:43 +0200 (Sat, 30 Aug 2008) | 2 lines #3707: fix inf. recursion in pydoc topic search. Rev'd by Antoine. ........
* Remove outdated comment. Reviewed by Antoine.Georg Brandl2008-08-301-1/+0
|
* #3577: 3.0 is not installed as "python" on Unix.Georg Brandl2008-08-301-11/+15
|
* Blocked revisions 66058 via svnmergeAntoine Pitrou2008-08-290-0/+0
| | | | | | | | | | | | ........ r66058 | antoine.pitrou | 2008-08-29 20:39:48 +0200 (ven., 29 août 2008) | 7 lines #3668: When PyArg_ParseTuple correctly parses a s* format, but raises an exception afterwards (for a subsequent parameter), the user code will not call PyBuffer_Release() and memory will leak. Reviewed by Amaury Forgeot d'Arc. ........
* #3668: When PyArg_ParseTuple correctly parses a s* format, but raises anAntoine Pitrou2008-08-294-23/+60
| | | | | | | exception afterwards (for a subsequent parameter), the user code will not call PyBuffer_Release() and memory will leak. Reviewed by Amaury Forgeot d'Arc.
* Issue 3611: in some cases (a __del__ re-raising an exception, when called ↵Amaury Forgeot d'Arc2008-08-294-10/+36
| | | | | | | | | | | | | from inside an 'except' clause), the exception __context__ would be reset to None. This crases the interpreter if this precisely happens inside PyErr_SetObject. - now the __context__ is properly preserved - in any case, PyErr_SetObject now saves the current exc_value in a local variable, to avoid such crashes in the future. Reviewer: Antoine Pitrou.
* Removed merge glitch from stringlib/find.h as explained on the python ↵Christian Heimes2008-08-281-1/+1
| | | | | | committers list. The FROM_BYTEARRAY isn't required here. This also fixes bug #3713
* Removed bytesmeth declaration in OyObject_Bytes. It's not used any more and ↵Christian Heimes2008-08-281-1/+1
| | | | causes a compiler warning.
* #3706: fix error message for wrong exec() argument type. R=Guido.Georg Brandl2008-08-281-13/+9
|
* Fix #3651 various memory leaks when using the buffer interfaceBenjamin Peterson2008-08-275-11/+22
| | | | | by Amaury Forgeot d'Arc Reviewer: Antoine Pitrou
* add NULL checking for PyBytes_FromObject; R=NealBenjamin Peterson2008-08-271-0/+5
|
* Blocked revisions 66043 via svnmergeAntoine Pitrou2008-08-260-0/+0
| | | | | | | | | | | | | | | ........ r66043 | antoine.pitrou | 2008-08-27 00:42:08 +0200 (mer., 27 août 2008) | 11 lines Issue #2534: speed up isinstance() and issubclass() by 50-70%, so as to match Python 2.5 speed despite the __instancecheck__ / __subclasscheck__ mechanism. In the process, fix a bug where isinstance() and issubclass(), when given a tuple of classes as second argument, were looking up __instancecheck__ / __subclasscheck__ on the tuple rather than on each type object. Reviewed by Benjamin Peterson and Raymond Hettinger. ........
* Issue #2534: speed up isinstance() and issubclass() by 50-70%, so as toAntoine Pitrou2008-08-268-96/+201
| | | | | | | | | | match Python 2.5 speed despite the __instancecheck__ / __subclasscheck__ mechanism. In the process, fix a bug where isinstance() and issubclass(), when given a tuple of classes as second argument, were looking up __instancecheck__ / __subclasscheck__ on the tuple rather than on each type object. Reviewed by Benjamin Peterson and Raymond Hettinger.
* #3663: extra DECREF on syntax errors.Antoine Pitrou2008-08-262-1/+6
| | | | Patch by Amaury Forgeot d'Arc, reviewed by Benjamin Peterson.
* Blocked revisions 66039 via svnmergeBenjamin Peterson2008-08-260-0/+0
| | | | | | | | ........ r66039 | benjamin.peterson | 2008-08-26 12:08:40 -0500 (Tue, 26 Aug 2008) | 1 line sort of backport 66038 by aliasing PyObject_Bytes to PyObject_Str ........
* make bytes(o) respect __bytes__ #2415Benjamin Peterson2008-08-268-2/+83
| | | | | | This adds two new C-API functions: PyObject_Bytes and PyBytes_FromObject. Reviewer: Barry
* Merged revisions ↵Benjamin Peterson2008-08-259-52/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 65910,65977,65980,65984,65986,66000,66011-66012,66014,66017,66020 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r65910 | benjamin.peterson | 2008-08-20 09:07:59 -0500 (Wed, 20 Aug 2008) | 1 line fix up the multiprocessing docs a little ........ r65977 | christian.heimes | 2008-08-22 14:47:25 -0500 (Fri, 22 Aug 2008) | 3 lines Silenced compiler warning Objects/stringlib/find.h:97: warning: 'stringlib_contains_obj' defined but not used Reviewed by Benjamin Peterson ........ r65980 | christian.heimes | 2008-08-22 15:10:27 -0500 (Fri, 22 Aug 2008) | 3 lines Fixed two format strings in the _collections module. For example Modules/_collectionsmodule.c:674: warning: format '%i' expects type 'int', but argument 2 has type 'Py_ssize_t' Reviewed by Benjamin Peterson ........ r65984 | christian.heimes | 2008-08-22 16:23:47 -0500 (Fri, 22 Aug 2008) | 1 line d is the correct format string ........ r65986 | mark.hammond | 2008-08-22 19:59:14 -0500 (Fri, 22 Aug 2008) | 2 lines Fix bug 3625: test issues on 64bit windows. r=pitrou ........ r66000 | benjamin.peterson | 2008-08-23 15:27:43 -0500 (Sat, 23 Aug 2008) | 5 lines #3643 add a few more checks to _testcapi to prevent segfaults Author: Victor Stinner Reviewer: Benjamin Peterson ........ r66011 | neal.norwitz | 2008-08-24 12:27:43 -0500 (Sun, 24 Aug 2008) | 1 line Ignore a couple more tests that report leaks inconsistently. ........ r66012 | neal.norwitz | 2008-08-24 12:29:53 -0500 (Sun, 24 Aug 2008) | 1 line Use the actual blacklist of leaky tests ........ r66014 | georg.brandl | 2008-08-24 13:11:07 -0500 (Sun, 24 Aug 2008) | 2 lines #3654: fix duplicate test method name. Review by Benjamin P. ........ r66017 | benjamin.peterson | 2008-08-24 16:55:03 -0500 (Sun, 24 Aug 2008) | 1 line remove note about unimplemented feature ........ r66020 | brett.cannon | 2008-08-24 18:15:19 -0500 (Sun, 24 Aug 2008) | 1 line Clarify that some attributes/methods are listed somewhat separately because they are not part of the threading API. ........
* Merged revisions 66028 via svnmerge fromNeal Norwitz2008-08-251-0/+4
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r66028 | neal.norwitz | 2008-08-24 20:52:40 -0700 (Sun, 24 Aug 2008) | 1 line Try to reduce the flakiness of this test ........
* Merged revisions 66026 via svnmerge fromNeal Norwitz2008-08-251-3/+3
| | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r66026 | neal.norwitz | 2008-08-24 20:03:25 -0700 (Sun, 24 Aug 2008) | 6 lines Use bytes as return type from recv_bytes() methods. Not sure why this only affects some buildbots. R=Brett TESTED=./python -E -tt ./Lib/test/regrtest.py test_multiprocessing ........
* Merged revisions 66023 via svnmerge fromNeal Norwitz2008-08-252-2/+34
| | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r66023 | neal.norwitz | 2008-08-24 18:50:24 -0700 (Sun, 24 Aug 2008) | 6 lines Fix problem reported by pychecker where AuthenticationError wasn't imported. Add some test coverage to this code. More tests should be added (TODO added). R=Brett TESTED=./python -E -tt ./Lib/test/regrtest.py test_multiprocessing ........
* Try to fix the sporadic problems on the Solaris buildbot with removingNeal Norwitz2008-08-251-2/+2
| | | | | | | the directories/files. R=Brett TESTED=./python -E -tt ./Lib/test/regrtest.py test_posix
* Issue #3657: Fix uninitialized memory read when pickling longs.Neal Norwitz2008-08-242-2/+5
| | | | | | | | | | | The conversion to the unicode API was incorrect, it should use bytes. repr is a bad variable name. The use is overloaded, but I'll leave that to fix later. R=Brett TESTED=./python -E -tt ./Lib/test/regrtest.py -uall valgrind -q --leak-check=yes --suppressions=Misc/valgrind-python.supp \ ./python -E -tt ./Lib/test/regrtest.py test_pickletools
* Merged revisions 66018 via svnmerge fromNeal Norwitz2008-08-242-1/+5
| | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r66018 | neal.norwitz | 2008-08-24 15:03:05 -0700 (Sun, 24 Aug 2008) | 6 lines #3662: Fix segfault introduced when fixing memory leaks. TESTED=./python -E -tt ./Lib/test/regrtest.py test_fileio R (approach from bug)=Amaury and Benjamin ........
* Fix gdbinit to handle new types/APIs.Neal Norwitz2008-08-242-4/+9
|
* Blocked revisions 66013 via svnmergeBenjamin Peterson2008-08-240-0/+0
| | | | | | | | | | ........ r66013 | benjamin.peterson | 2008-08-24 13:10:20 -0500 (Sun, 24 Aug 2008) | 4 lines generate py3k warnings on __getslice__, __delslice__, and __setslice__ Reviewer: Brett Cannon ........
* Fixed yet another compiler warning of 64bit builds.Christian Heimes2008-08-241-1/+1
| | | | Reviewed by Georg Brandl.
* Closes release blocker #3627.Neal Norwitz2008-08-2411-26/+201
| | | | | | | | | | | | | Merged revisions 65335 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk TESTED=./python -E -tt ./Lib/test/regrtest.py -uall (both debug and opt) ........ r65335 | neal.norwitz | 2008-07-31 10:17:14 -0700 (Thu, 31 Jul 2008) | 1 line Security patches from Apple: prevent int overflow when allocating memory ........
* Update props for r66007.Neal Norwitz2008-08-240-0/+0
|
* Merged revisions 66006 via svnmerge fromNeal Norwitz2008-08-249-12/+73
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk TESTED=./python -E -tt ./Lib/test/regrtest.py -uall (both debug and opt modes) ........ r66006 | neal.norwitz | 2008-08-23 22:04:52 -0700 (Sat, 23 Aug 2008) | 25 lines Fix: * crashes on memory allocation failure found with failmalloc * memory leaks found with valgrind * compiler warnings in opt mode which would lead to invalid memory reads * problem using wrong name in decimal module reported by pychecker Update the valgrind suppressions file with new leaks that are small/one-time leaks we don't care about (ie, they are too hard to fix). TBR=barry TESTED=./python -E -tt ./Lib/test/regrtest.py -uall (both debug and opt modes) in opt mode: valgrind -q --leak-check=yes --suppressions=Misc/valgrind-python.supp \ ./python -E -tt ./Lib/test/regrtest.py -uall,-bsddb,-compiler \ -x test_logging test_ssl test_multiprocessing valgrind -q --leak-check=yes --suppressions=Misc/valgrind-python.supp \ ./python -E -tt ./Lib/test/regrtest.py test_multiprocessing for i in `seq 1 4000` ; do LD_PRELOAD=~/local/lib/libfailmalloc.so FAILMALLOC_INTERVAL=$i \ ./python -c pass done At least some of these fixes should probably be backported to 2.5. ........
* Blocked revisions 66004 via svnmergeBenjamin Peterson2008-08-230-0/+0
| | | | | | | | ........ r66004 | benjamin.peterson | 2008-08-23 16:40:15 -0500 (Sat, 23 Aug 2008) | 1 line fix warning ........
* bring the PyFile docs into sync with realityBenjamin Peterson2008-08-231-59/+2
|
* #3643 add more checks to _testcapi to prevent segfaultsBenjamin Peterson2008-08-232-0/+10
| | | | | Author: Victor Stinner Reviewer: Benjamin Peterson
* add NEWS note and test for last commitBenjamin Peterson2008-08-232-0/+9
|
* fix #3653 Python could segfault if invalid values were passed to sys.excepthookBenjamin Peterson2008-08-231-0/+7
| | | | | Author: Daniel Diniz Reviewer: Georg Brandl
* Blocked revisions 65995 via svnmergeGeorg Brandl2008-08-230-0/+0
| | | | | | | | ........ r65995 | georg.brandl | 2008-08-23 17:15:31 +0200 (Sat, 23 Aug 2008) | 2 lines Small updates to types member docs, backport from r65994. ........
* Remove outdated example from types module doc. Since the types leftGeorg Brandl2008-08-231-31/+10
| | | | in the modules are obscure, I didn't add a substitute example.
* #1276: Add temporary encoding aliases for non-supported Mac CJKHye-Shik Chang2008-08-232-0/+11
| | | | | encodings that are detected as system defaults in MacOS with CJK locales. Will be replaced by properly-implemented codecs in 3.1.
* #3650: fix a reference leak in bytes.split('x')Amaury Forgeot d'Arc2008-08-222-4/+12
| | | | Actually the same as r65785, but trunk only has bytearray.
* Merged revisions 65982 via svnmerge fromBenjamin Peterson2008-08-220-0/+0
| | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r65982 | benjamin.peterson | 2008-08-22 15:43:48 -0500 (Fri, 22 Aug 2008) | 4 lines fix a few get_name() calls and turn then to .name Reviewer: Christian Heimes ........
* Merged revisions 65978 via svnmerge fromChristian Heimes2008-08-221-2/+2
| | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r65978 | christian.heimes | 2008-08-22 21:55:54 +0200 (Fri, 22 Aug 2008) | 3 lines Silenced a compiler warning in the sqlite module Modules/_sqlite/row.c:187: warning: suggest parentheses around && within || Reviewed by Benjamin Peterson ........
* Merged revisions 65975 via svnmerge fromChristian Heimes2008-08-221-1/+1
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r65975 | christian.heimes | 2008-08-22 21:34:15 +0200 (Fri, 22 Aug 2008) | 1 line Changed type of numarenas from uint to size_t to silence a GCC warning on 64bit OSes. Reviewed by Benjamin Peterson. ........
* Merged revisions 65971 via svnmerge fromRobert Schuppenies2008-08-221-5/+7
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r65971 | robert.schuppenies | 2008-08-22 10:03:43 +0200 (Fri, 22 Aug 2008) | 2 lines Issue #1342811: Fixed broken patch. Reviewed by benjamin.peterson. ........