summaryrefslogtreecommitdiffstats
path: root/Objects
Commit message (Collapse)AuthorAgeFilesLines
* Issue #21193: Make (e.g.,) pow(2, -3, 5) raise ValueError rather than ↵Mark Dickinson2014-04-111-1/+1
| | | | TypeError. Patch by Josh Rosenberg.
* PEP 465: a dedicated infix operator for matrix multiplication (closes #21176)Benjamin Peterson2014-04-103-0/+26
|
* Issue #21118: PyLong_AS_LONG() result type is longVictor Stinner2014-04-081-1/+1
| | | | Even if PyLong_AS_LONG() cannot fail, I prefer to use the right type.
* fix reference leaks in the translate fast path (closes #21175)Benjamin Peterson2014-04-081-14/+8
| | | | Patch by Josh Rosenberg.
* Issue #21118: Optimize also str.translate() for ASCII => ASCII deletionVictor Stinner2014-04-051-19/+29
|
* Issue #21118: Add unit test for invalid character replacement (code point ↵Victor Stinner2014-04-051-10/+10
| | | | higher than U+10ffff)
* Issue #21118: Optimize str.translate() for ASCII => ASCII translationVictor Stinner2014-04-051-1/+120
|
* Issue #21118: Remove unused variableVictor Stinner2014-04-041-1/+0
|
* Issue #21118: Use _PyUnicodeWriter API in str.translate() to simplify andVictor Stinner2014-04-041-171/+95
| | | | factorize the code
* Issue #21118: Fix _PyUnicodeTranslateError_Create(), add missing formatVictor Stinner2014-04-041-1/+1
| | | | character for the "end" parameter
* merge 3.4 (#21134)Benjamin Peterson2014-04-021-0/+12
|\
| * bail in unicode error's __str__ methods if the objects are not properly ↵Benjamin Peterson2014-04-021-0/+12
| | | | | | | | initialized (closes #21134)
* | Issue #21073: explain why Py_ReprEnter() allows for a missing thread state.Antoine Pitrou2014-03-311-0/+2
|\ \ | |/
| * Issue #21073: explain why Py_ReprEnter() allows for a missing thread state.Antoine Pitrou2014-03-311-0/+2
| |
* | merge 3.4Benjamin Peterson2014-03-301-19/+19
|\ \ | |/
| * merge 3.3Benjamin Peterson2014-03-301-19/+19
| |\
| | * merge 3.2Benjamin Peterson2014-03-301-19/+19
| | |\
| | | * fix expandtabs overflow detection to be consistent and not rely on signed ↵Benjamin Peterson2014-03-301-19/+19
| | | | | | | | | | | | | | | | overflow
| | | * #17296: backport fix for issue 1692335, naive exception pickling.R David Murray2013-02-271-1/+10
| | | |
* | | | Issue19995: more informative error message; spelling corrections; use ↵Ethan Furman2014-03-211-5/+20
| | | | | | | | | | | | | | | | operator.mod instead of __mod__
* | | | Issue19995: passing a non-int to %o, %c, %x, or %X now raises an exceptionEthan Furman2014-03-191-26/+2
| | | |
* | | | Issue #20574: Implement incremental decoder for cp65001 codeVictor Stinner2014-03-171-32/+9
|/ / / | | | | | | | | | (Windows code page 65001, Microsoft UTF-8).
* | | correct the fix for #20637; allow slot descriptor inheritance to take place ↵Benjamin Peterson2014-03-171-9/+8
| | | | | | | | | | | | before creating cached keys
* | | merge 3.3Benjamin Peterson2014-03-151-1/+1
|\ \ \ | |/ /
| * | avoid referencing past the bounds of an arrayBenjamin Peterson2014-03-151-1/+1
| | |
* | | merge 3.3Benjamin Peterson2014-03-152-2/+3
|\ \ \ | |/ /
| * | avoid referencing out-of-bounds memoryBenjamin Peterson2014-03-151-1/+1
| | |
| * | fix c89 declaration orderBenjamin Peterson2014-03-151-1/+2
| | |
* | | merge 3.3Benjamin Peterson2014-03-151-1/+2
|\ \ \ | |/ /
| * | don't do pointer arithmetic with signed numbersBenjamin Peterson2014-03-151-1/+2
| | |
* | | Make the various iterators' "setstate" sliently and consistently clip theKristján Valur Jónsson2014-03-056-15/+52
|\ \ \ | |/ / | | | | | | | | | index. This avoids the possibility of setting an iterator to an invalid state.
| * | Make the various iterators' "setstate" sliently and consistently clip theKristján Valur Jónsson2014-03-056-15/+52
| | | | | | | | | | | | | | | index. This avoids the possibility of setting an iterator to an invalid state.
* | | Merge with 3.3Kristján Valur Jónsson2014-03-041-1/+1
|\ \ \ | |/ /
| * | Fix pickling of rangeiter. rangeiter_setstate would not allow setting itKristján Valur Jónsson2014-03-041-1/+1
| | | | | | | | | | | | to the exhausted state.
| * | Issue #19619: Blacklist non-text codecs in method APISerhiy Storchaka2014-02-241-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | str.encode, bytes.decode and bytearray.decode now use an internal API to throw LookupError for known non-text encodings, rather than attempting the encoding or decoding operation and then throwing a TypeError for an unexpected output type. The latter mechanism remains in place for third party non-text encodings. Backported changeset d68df99d7a57.
* | | Issue #20786: Fix signatures for dict.__delitem__ and property.__delete__Yury Selivanov2014-03-021-2/+2
| | |
* | | Issue #20637: Key-sharing now also works for instance dictionaries of ↵Antoine Pitrou2014-02-231-0/+3
| | | | | | | | | | | | subclasses. Patch by Peter Ingebretson.
* | | look up __getnewargs__ and __getnewargs_ex__ on the object type (#16251)Benjamin Peterson2014-02-161-12/+6
| | |
* | | merge 3.3 (#20507)Benjamin Peterson2014-02-151-1/+1
|\ \ \ | |/ /
| * | give non-iterable TypeError a message (closes #20507)Benjamin Peterson2014-02-151-1/+1
| | |
* | | Issue #19255: Clear error after failed PyDict_SetItem() on shutdown.Serhiy Storchaka2014-02-121-2/+4
|\ \ \ | |/ / | | | | | | This silences a Coverity complain.
| * | Issue #19255: Clear error after failed PyDict_SetItem() on shutdown.Serhiy Storchaka2014-02-121-2/+4
| | | | | | | | | | | | This silences a Coverity complain.
* | | Issue #19255: The builtins module is restored to initial value beforeSerhiy Storchaka2014-02-101-5/+8
| | | | | | | | | | | | cleaning other modules. The sys and builtins modules are cleaned last.
* | | Issue #20517: Removed unnecessary new (short-lived) functions from PyErr.Larry Hastings2014-02-101-2/+2
| | |
* | | Issue #20530: The signatures for slot builtins have been updatedLarry Hastings2014-02-101-42/+42
| | | | | | | | | | | | to reflect the fact that they only accept positional-only arguments.
* | | Issue #20517: Functions in the os module that accept two filenamesLarry Hastings2014-02-101-33/+86
| | | | | | | | | | | | | | | | | | now register both filenames in the exception on failure. This required adding new C API functions allowing OSError exceptions to reference two filenames instead of one.
* | | Issue #20437: Fixed 22 potential bugs when deleting objects references.Serhiy Storchaka2014-02-092-14/+7
|\ \ \ | |/ /
| * | Issue #20437: Fixed 21 potential bugs when deleting objects references.Serhiy Storchaka2014-02-093-14/+7
| | |
* | | Issue #20530: Argument Clinic's signature format has been revised again.Larry Hastings2014-02-095-92/+131
| | | | | | | | | | | | | | | | | | | | | The new syntax is highly human readable while still preventing false positives. The syntax also extends Python syntax to denote "self" and positional-only parameters, allowing inspect.Signature objects to be totally accurate for all supported builtins in Python 3.4.
* | | Close #20500: Don't trigger PyObject_Str assertion at shutdownNick Coghlan2014-02-091-1/+1
| | |