summaryrefslogtreecommitdiffstats
path: root/Objects
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Accept None as start and stop parameters for list.index() and ↵Petri Lehtinen2011-11-062-22/+7
| | | | | | tuple.index()" Issue #13340.
* Accept None as start and stop parameters for list.index() and tuple.index()Petri Lehtinen2011-11-052-7/+22
| | | | Closes #13340.
* remove unused variableBenjamin Peterson2011-10-301-1/+1
|
* Fix the return value of set_discard (issue #10519)Petri Lehtinen2011-10-301-2/+3
|
* Avoid unnecessary recursive function calls (closes #10519)Petri Lehtinen2011-10-301-2/+2
|
* Issue #13018: Fix reference leaks in error paths in dictobject.c.Petri Lehtinen2011-10-241-4/+12
| | | | Patch by Suman Saha.
* PyEval_CallObject requires a tuple of args (closes #13186)Benjamin Peterson2011-10-151-1/+1
|
* Issue #13159: Replace FileIO's quadratic-time buffer growth algorithm with a ↵Nadeem Vawda2011-10-131-15/+4
| | | | | | linear-time one. Also fix the builtin file class and the bz2 module, which used the same algorithm.
* Issue #7732: Fix a crash on importing a module if a directory has the same nameVictor Stinner2011-09-231-13/+19
| | | | | | | | than a Python module (e.g. "__init__.py"): don't close the file twice. PyFile_FromFile() does also close the file if PyString_FromString() failed. It did already close the file on fill_file_fields() error (e.g. if the file is a directory).
* Backport issue #12973 list_repeat fix from 3.x.Mark Dickinson2011-09-191-3/+3
|
* Issue #12973: Fix int.__pow__ overflow checks that invoked undefined ↵Mark Dickinson2011-09-191-2/+8
| | | | behaviour, thereby producing incorrect results on Clang.
* fix possible refleaksBenjamin Peterson2011-08-171-1/+3
|
* #12266: Fix str.capitalize() to correctly uppercase/lowercase titlecased and ↵Ezio Melotti2011-08-151-2/+2
| | | | cased non-letter characters.
* merge from 3.2 - Fix closes Issue12621 - Fix docstrings of find and rfind ↵Senthil Kumaran2011-07-273-6/+6
| | | | methods of bytes/bytearry/unicodeobject.
* Issue #11603: Fix a crash when __str__ is rebound as __repr__.Antoine Pitrou2011-07-151-1/+1
| | | | Patch by Andreas Stührk.
* Issue #12149: Update the method cache after a type's dictionnary getsAntoine Pitrou2011-07-121-0/+2
| | | | | | | | | cleared by the garbage collector. This fixes a segfault when an instance and its type get caught in a reference cycle, and the instance's deallocator calls one of the methods on the type (e.g. when subclassing IOBase). Diagnosis and patch by Davide Rizzo.
* Fixup repr for dict_proxy objects.Raymond Hettinger2011-06-291-1/+15
|
* Issue #12164: Document (in docstring) that str.translate accepts None for ↵Mark Dickinson2011-06-251-1/+3
| | | | the first argument.
* use '->' to indicate return valuesBenjamin Peterson2011-05-241-3/+3
|
* must clear an AttributeError if it is setBenjamin Peterson2011-05-231-2/+6
|
* handle old-style instancesBenjamin Peterson2011-05-231-3/+10
|
* correctly lookup __dir__Benjamin Peterson2011-05-231-3/+5
|
* (Merge 3.1) Issue #9756: When calling a method descriptor or a slot wrapperVictor Stinner2011-05-011-3/+6
| | | | | | descriptor, the check of the object type doesn't read the __class__ attribute anymore. Fix a crash if a class override its __class__ attribute (e.g. a proxy of the str type).
* #6780: fix starts/endswith error message to mention that tuples are accepted ↵Ezio Melotti2011-04-262-5/+20
| | | | too.
* startswith and endswith don't accept None as slice index. Patch by Torsten ↵Jesus Cea2011-04-204-64/+74
| | | | Becker. (closes #11828)
* Issue #11144: Fix corner cases where float-to-int conversion unnecessarily ↵Mark Dickinson2011-03-261-7/+10
| | | | returned a long.
* Issue #11634: Remove misleading paragraph from a commentEli Bendersky2011-03-241-6/+2
|
* Fix obscure set crashers (#4420). Backport of d56b3cafb1e6, reviewed by ↵Éric Araujo2011-03-221-10/+23
| | | | Raymond.
* #11565: Fix several typos. Patch by Piotr Kasprzyk.Ezio Melotti2011-03-164-5/+5
|
* #11515: fix several typos. Patch by Piotr Kasprzyk.Ezio Melotti2011-03-154-4/+4
|
* Merged revisions 88735 via svnmerge fromEli Bendersky2011-03-041-2/+2
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r88735 | eli.bendersky | 2011-03-04 06:55:25 +0200 (Fri, 04 Mar 2011) | 2 lines Issue #11386: Fixed the exception thrown by bytearray.pop() for empty bytearrays ........
* Merged revisions ↵Georg Brandl2011-02-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 87050,87101,87146,87156,87172,87175,87371,87378,87522-87524,87526,87530-87535 via svnmerge from svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r87050 | georg.brandl | 2010-12-04 18:09:30 +0100 (Sa, 04 Dez 2010) | 1 line Fix typo. ........ r87101 | georg.brandl | 2010-12-06 23:02:48 +0100 (Mo, 06 Dez 2010) | 1 line Remove visible XXX comments. ........ r87146 | georg.brandl | 2010-12-09 19:08:43 +0100 (Do, 09 Dez 2010) | 1 line Fix "seperate". ........ r87156 | georg.brandl | 2010-12-10 11:01:44 +0100 (Fr, 10 Dez 2010) | 1 line #10668: fix wrong call of __init__. ........ r87172 | georg.brandl | 2010-12-11 20:10:30 +0100 (Sa, 11 Dez 2010) | 1 line Avoid AttributeError(_closed) when a TemporaryDirectory is deallocated whose mkdtemp call failed. ........ r87175 | georg.brandl | 2010-12-11 23:19:34 +0100 (Sa, 11 Dez 2010) | 1 line Fix markup. ........ r87371 | georg.brandl | 2010-12-18 17:21:58 +0100 (Sa, 18 Dez 2010) | 1 line Fix typo. ........ r87378 | georg.brandl | 2010-12-18 18:51:28 +0100 (Sa, 18 Dez 2010) | 1 line #10723: add missing builtin exceptions. ........ r87522 | georg.brandl | 2010-12-28 10:16:12 +0100 (Di, 28 Dez 2010) | 1 line Replace sys.maxint mention by sys.maxsize. ........ r87523 | georg.brandl | 2010-12-28 10:18:24 +0100 (Di, 28 Dez 2010) | 1 line Remove confusing paragraph -- this is relevant only to advanced users anyway and does not belong into the tutorial. ........ r87524 | georg.brandl | 2010-12-28 10:29:19 +0100 (Di, 28 Dez 2010) | 1 line Fix advice: call PyType_Ready to fill in ob_type of custom types. ........ r87526 | georg.brandl | 2010-12-28 11:38:33 +0100 (Di, 28 Dez 2010) | 1 line #10777: fix iteration over dict keys while mutating the dict. ........ r87530 | georg.brandl | 2010-12-28 12:06:07 +0100 (Di, 28 Dez 2010) | 1 line #10767: update README in crashers; not all may have a bug entry and/or be fixed. ........ r87531 | georg.brandl | 2010-12-28 12:08:17 +0100 (Di, 28 Dez 2010) | 1 line #10742: document readonly attribute of memoryviews. ........ r87532 | georg.brandl | 2010-12-28 12:15:49 +0100 (Di, 28 Dez 2010) | 1 line #10781: clarify that *encoding* is not a parameter for Node objects in general. ........ r87533 | georg.brandl | 2010-12-28 12:38:12 +0100 (Di, 28 Dez 2010) | 1 line Remove history; adapt a bit more to reST, since this will once be part of the dev guide. ........ r87534 | georg.brandl | 2010-12-28 12:48:53 +0100 (Di, 28 Dez 2010) | 1 line Rewrap. ........ r87535 | georg.brandl | 2010-12-28 12:49:41 +0100 (Di, 28 Dez 2010) | 1 line #10739: document that on Windows, socket.makefile() does not make a file that has a true file descriptor usable where such a thing is expected. ........
* Merged revisions 88097 via svnmerge fromAntoine Pitrou2011-01-181-4/+1
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r88097 | antoine.pitrou | 2011-01-18 19:57:52 +0100 (mar., 18 janv. 2011) | 4 lines Issue #10451: memoryview objects could allow to mutate a readable buffer. Initial patch by Ross Lagerwall. ........
* Merged revisions 88069 via svnmerge fromBenjamin Peterson2011-01-171-1/+0
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r88069 | benjamin.peterson | 2011-01-17 13:54:55 -0600 (Mon, 17 Jan 2011) | 1 line remove unneeded assertion ........
* Merged revisions 88066 via svnmerge fromBenjamin Peterson2011-01-171-1/+1
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r88066 | benjamin.peterson | 2011-01-17 13:44:46 -0600 (Mon, 17 Jan 2011) | 1 line correct assertion ........
* Merged revisions 88063 via svnmerge fromBenjamin Peterson2011-01-171-4/+2
| | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r88063 | benjamin.peterson | 2011-01-17 13:24:34 -0600 (Mon, 17 Jan 2011) | 4 lines turn some checks into assertions, since they are implied by the caller Reviewed by Georg. ........
* Merged revisions 87960 via svnmerge fromBenjamin Peterson2011-01-121-2/+2
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r87960 | benjamin.peterson | 2011-01-12 12:56:07 -0600 (Wed, 12 Jan 2011) | 1 line use PyErr_SetString instead of PyErr_Format ........
* Merged revisions 87952-87954 via svnmerge fromBenjamin Peterson2011-01-121-2/+11
| | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r87952 | benjamin.peterson | 2011-01-12 09:24:27 -0600 (Wed, 12 Jan 2011) | 1 line move this test to test_descr; it's not abc specific ........ r87953 | benjamin.peterson | 2011-01-12 09:25:02 -0600 (Wed, 12 Jan 2011) | 1 line oops, wrong class ........ r87954 | benjamin.peterson | 2011-01-12 09:34:01 -0600 (Wed, 12 Jan 2011) | 1 line don't segfault on deleting __abstractmethods__ #10892 ........
* Merged revisions 87834 via svnmerge fromAntoine Pitrou2011-01-071-6/+22
| | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r87834 | antoine.pitrou | 2011-01-07 22:43:59 +0100 (ven., 07 janv. 2011) | 5 lines Issue #8020: Avoid a crash where the small objects allocator would read non-Python managed memory while it is being modified by another thread. Patch by Matt Bandy. ........
* Merged revisions 87032 via svnmerge fromMark Dickinson2010-12-041-4/+14
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r87032 | mark.dickinson | 2010-12-04 12:25:30 +0000 (Sat, 04 Dec 2010) | 3 lines Issue #10596: Fix float.__mod__ to have the same behaviour as float.__divmod__ with respect to signed zeros. ........
* Merged revisions 86791 via svnmerge fromStefan Krah2010-11-261-9/+9
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r86791 | stefan.krah | 2010-11-26 11:54:09 +0100 (Fri, 26 Nov 2010) | 1 line Indentation cleanup. ........
* Revert r86726. Sorry about interfering with the rc.Armin Rigo2010-11-241-1/+1
|
* A no-op change. It looks like this call was not meant to be a recursiveArmin Rigo2010-11-241-1/+1
| | | | call, but just call the helper (which the recursive call ends up doing).
* Improved docstrings for str and unicode methods format and __format__.Eric Smith2010-11-062-4/+6
|
* CObject use is marked as a Py3k warning, not a deprecation warningJesus Cea2010-11-041-2/+1
|
* Issue 10221: Improve error message for dict.pop().Raymond Hettinger2010-10-301-2/+1
|
* Issue #9295: Fix a crash under Windows when calling close() on a fileAntoine Pitrou2010-10-281-0/+6
| | | | object with custom buffering from two threads at once.
* iterators passed to writelines() can close their files; don't segfault #10125Benjamin Peterson2010-10-161-0/+5
|
* Merged revisions 85392 via svnmerge fromBenjamin Peterson2010-10-121-4/+1
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r85392 | benjamin.peterson | 2010-10-12 17:57:59 -0500 (Tue, 12 Oct 2010) | 1 line prefer clearing global objects to obscure module.__dict__ bugs #10068 ........
* Merged revisions 85193 via svnmerge fromBenjamin Peterson2010-10-031-2/+2
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r85193 | benjamin.peterson | 2010-10-02 21:13:39 -0500 (Sat, 02 Oct 2010) | 1 line typo ........