summaryrefslogtreecommitdiffstats
path: root/Objects
Commit message (Collapse)AuthorAgeFilesLines
* merge 3.2Benjamin Peterson2011-07-301-3/+0
|\
| * remove duplicated type readyBenjamin Peterson2011-07-301-3/+0
| |
* | also make NotImplementedType callableBenjamin Peterson2011-07-291-0/+35
| |
* | make the types of None and Ellipsis callableBenjamin Peterson2011-07-292-0/+63
| |
* | Issue 12647: Add __bool__() method to the None object.Raymond Hettinger2011-07-281-2/+44
| |
* | merge from 3.2 - Fix closes Issue12621 - Fix docstrings of find and rfind ↵Senthil Kumaran2011-07-273-6/+6
|\ \ | |/ | | | | methods of bytes/bytearry/unicodeobject.
| * Fix closes Issue12621 - Fix docstrings of find and rfind methods of ↵Senthil Kumaran2011-07-273-6/+6
| | | | | | | | bytes/bytearry/unicodeobject.
* | Merge from 3.2.Eric V. Smith2011-07-181-0/+10
|\ \ | |/
| * Closes #12579. Positional fields with str.format_map() now raise a ↵Eric V. Smith2011-07-181-0/+10
| | | | | | | | ValueError instead of SystemError.
* | Issue #11603: Fix a crash when __str__ is rebound as __repr__.Antoine Pitrou2011-07-151-1/+1
|\ \ | |/ | | | | Patch by Andreas Stührk.
| * Issue #11603: Fix a crash when __str__ is rebound as __repr__.Antoine Pitrou2011-07-151-1/+1
| |\ | | | | | | | | | Patch by Andreas Stührk.
| | * 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.
| * | 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.
* | | Issue #9642: Uniformize the tests on the availability of the mbcs codecVictor Stinner2011-07-041-6/+6
| | | | | | | | | | | | Add a new HAVE_MBCS define.
* | | merge from 3.2Senthil Kumaran2011-07-041-3/+1
|\ \ \ | |/ /
| * | Fix closes issue12471 - wrong TypeError message when '%i' format spec was used.Senthil Kumaran2011-07-041-3/+1
| | |
* | | this is expressed better as a for loopBenjamin Peterson2011-07-031-4/+2
| | |
* | | merge from 3.2Senthil Kumaran2011-06-271-4/+4
|\ \ \ | |/ /
| * | Fix closes Issue12385 - Clarify maketrans method docstring for bytes and ↵Senthil Kumaran2011-06-271-4/+4
| | | | | | | | | | | | bytearray object.
* | | map cells to arg slots at code creation time (closes #12399)Benjamin Peterson2011-06-261-29/+65
| | | | | | | | | | | | This removes nested loops in PyEval_EvalCodeEx.
* | | use a invalid name for the __class__ closure for super() (closes #12370)Benjamin Peterson2011-06-201-1/+1
| | | | | | | | | | | | | | | This prevents the assignment of __class__ in the class body from breaking super. (Although a determined person could do locals()["@__class__"] = 4)
* | | quaint and completely out of date commentBenjamin Peterson2011-06-111-3/+2
| | |
* | | allow __dir__ to return any sequenceBenjamin Peterson2011-06-111-30/+15
| | |
* | | remove __version__s dependent on subversion keyword expansion (closes #12221)Benjamin Peterson2011-06-012-2/+2
| | |
* | | Close #10616: mention bytes and bytearray in PyObject_AsCharBuffer() errorVictor Stinner2011-05-301-1/+2
| | | | | | | | | | | | message
* | | Revert my commit 7ba176c2f558: "Avoid useless "++" at the end of functionsVictor Stinner2011-05-272-2/+2
| | | | | | | | | | | | | | | | | | Warnings found by the Clang Static Analyzer." Most people prefer ++ at the end of functions.
* | | SystemExit_init(): avoid an useless testVictor Stinner2011-05-261-1/+1
| | | | | | | | | | | | Make silent a false positive of the Clang Static Analyzer.
* | | set_repr(): handle correctly PyUnicode_FromUnicode() error (MemoryError)Victor Stinner2011-05-261-9/+11
| | | | | | | | | | | | Bug found by the Clang Static Analyzer.
* | | Avoid useless "++" at the end of functionsVictor Stinner2011-05-262-3/+3
| | | | | | | | | | | | Warnings found by the Clang Static Analyzer.
* | | indicate return value on __dir__ methodsBenjamin Peterson2011-05-242-3/+3
| | |
* | | merge 3.2Benjamin Peterson2011-05-241-3/+3
|\ \ \ | |/ /
| * | merge 3.1Benjamin Peterson2011-05-241-3/+3
| |\ \ | | |/
| | * use '->' to indicate return valuesBenjamin Peterson2011-05-241-3/+3
| | |
* | | move specialized dir implementations into __dir__ methods (closes #12166)Benjamin Peterson2011-05-243-178/+174
| | |
* | | merge 3.2Benjamin Peterson2011-05-231-5/+6
|\ \ \ | |/ /
| * | merge 3.1Benjamin Peterson2011-05-231-5/+6
| |\ \ | | |/
| | * correctly lookup __dir__Benjamin Peterson2011-05-231-5/+6
| | |
| * | #11335: Fix memory leak after key function failure in sortDaniel Stutzbach2011-05-041-0/+2
| | |
* | | Issue #11849: Make it more likely for the system allocator to releaseAntoine Pitrou2011-05-031-6/+23
| | | | | | | | | | | | | | | free()d memory arenas on glibc-based systems. Patch by Charles-François Natali.
* | | (Merge 3.2) 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).
| * | (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).
| | * Issue #9756: When calling a method descriptor or a slot wrapper descriptor, theVictor Stinner2011-05-011-3/+6
| | | | | | | | | | | | | | | | | | 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).
| * | Issue #10914: Initialize correctly the filesystem codec when creating a newVictor Stinner2011-04-261-7/+22
| | | | | | | | | | | | | | | | | | | | | subinterpreter to fix a bootstrap issue with codecs implemented in Python, as the ISO-8859-15 codec. Add fscodec_initialized attribute to the PyInterpreterState structure.
* | | Issue #10914: Initialize correctly the filesystem codec when creating a newVictor Stinner2011-04-261-7/+22
| | | | | | | | | | | | | | | | | | | | | subinterpreter to fix a bootstrap issue with codecs implemented in Python, as the ISO-8859-15 codec. Add fscodec_initialized attribute to the PyInterpreterState structure.
* | | #6780: merge with 3.2.Ezio Melotti2011-04-263-9/+32
|\ \ \ | |/ /
| * | #6780: merge with 3.1.Ezio Melotti2011-04-263-9/+32
| |\ \ | | |/
| | * #6780: fix starts/endswith error message to mention that tuples are accepted ↵Ezio Melotti2011-04-263-13/+36
| | | | | | | | | | | | too.
| | * Port 5b607cd8c71b (closes #11892)Jesus Cea2011-04-202-8/+0
| | |
* | | MERGE: startswith and endswith don't accept None as slice index. Patch by ↵Jesus Cea2011-04-204-64/+74
|\ \ \ | |/ / | | | | | | Torsten Becker. (closes #11828)