summaryrefslogtreecommitdiffstats
path: root/Objects
Commit message (Collapse)AuthorAgeFilesLines
* Issue #19171: speed some cases of 3-argument long pow().Tim Peters2013-10-051-4/+10
| | | | | | | | Reduce the base by the modulus when the base is larger than the modulus. This can unboundedly speed the "startup costs" of doing modular exponentiation, particularly in cases where the base is much larger than the modulus. Original patch by Armin Rigo, inspired by https://github.com/pyca/ed25519.
* #19069: use imperative mood in float object docstrings. Patch by Marco Buttu.Ezio Melotti2013-10-051-11/+11
|
* #19068: use imperative mood in complex object docstrings. Patch by Marco Buttu.Ezio Melotti2013-10-051-2/+2
|
* #19067: use imperative mood in range object docstrings. Patch by Marco Buttu.Ezio Melotti2013-10-051-3/+3
|
* Issue #19014: memoryview.cast() is now allowed on zero-length views.Antoine Pitrou2013-10-031-1/+1
|
* Issue #18594: Fix the fast path for collections.Counter().Raymond Hettinger2013-10-011-4/+1
| | | | The path wasn't being taken due to an over-restrictive type check.
* Issue #18942: sys._debugmallocstats() output was damaged on Windows.Tim Peters2013-09-061-1/+1
| | | | | | _PyDebugAllocatorStats() called PyOS_snprintf() with a %zd format code, but MS doesn't support that code. Interpolated PY_FORMAT_SIZE_T in place of the "z".
* Issue #18783: Removed existing mentions of Python long type in docstrings,Serhiy Storchaka2013-08-275-61/+60
| | | | error messages and comments.
* Various clarifications based on feedback & questions over the years.Tim Peters2013-08-241-19/+96
| | | | (grafted from 23181bf411a16287a0a54e910fc0f9ecd2764bf0)
* Add line explaining the "%sort" test.Tim Peters2013-08-221-0/+1
| | | | (grafted from 1ea833ecaf5a9d43a886e9e73b4e2551d0d5b548)
* Issue 18719: Remove a false optimizationRaymond Hettinger2013-08-141-9/+0
| | | | | | | | | | Remove an unused early-out test from the critical path for dict and set lookups. When the strings already have matching lengths, kinds, and hashes, there is no additional information gained by checking the first characters (the probability of a mismatch is already known to be less than 1 in 2**64).
* Silence compiler warning for an unused declarationRaymond Hettinger2013-08-041-1/+0
|
* Silence compiler warning about an uninitialized variableRaymond Hettinger2013-08-041-1/+1
|
* Issue #16741: Fix an error reporting in int().Serhiy Storchaka2013-08-032-51/+67
|
* Propagate error when PyByteArray_Resize() fails in bytearray_translate()Christian Heimes2013-07-211-1/+4
| | | | CID 715334
* Check return value of PyType_Ready(&EncodingMapType)Christian Heimes2013-07-201-1/+2
| | | | CID 486654
* Issue #18184: PyUnicode_FromFormat() and PyUnicode_FromFormatV() now raiseSerhiy Storchaka2013-06-231-2/+7
| | | | OverflowError when an argument of %c format is out of range.
* remove MAX_MAXCHAR because it's unsafe for computing maximum codepoitn value ↵Benjamin Peterson2013-06-101-31/+26
| | | | (see #18183)
* only recursively expand in the format spec (closes #17644)Benjamin Peterson2013-05-171-2/+8
|
* Issue #17563: Fix dict resize performance regression.Raymond Hettinger2013-05-171-7/+11
|
* when arguments are cells clear the locals slot (backport of #17927)Benjamin Peterson2013-05-151-0/+12
|
* Issue #17237: Fix crash in the ASCII decoder on m68k.Antoine Pitrou2013-05-111-0/+9
|
* Issue #17408: Avoid using an obsolete instance of the copyreg module when ↵Antoine Pitrou2013-05-041-5/+17
| | | | the interpreter is shutdown and then started again.
* Remove trailing whitespace.Ezio Melotti2013-04-211-7/+7
|
* Issue #17715: Add missing NULL Check to PyNumber_Long.Mark Dickinson2013-04-131-0/+2
|
* Issue #16447: Fix potential segfault when setting __name__ on a class.Mark Dickinson2013-04-131-1/+4
|
* Fix supernumerary 's' in sys._debugmallocstats() output.Antoine Pitrou2013-04-111-1/+1
|
* don't run frame if it has no stack (closes #17669)Benjamin Peterson2013-04-101-1/+1
|
* Revert a premature patch for issue #14010 (changeset aaaf36026511).Serhiy Storchaka2013-04-061-5/+2
|
* Issue #14010: Fix a crash when iterating or deleting deeply nested filtersSerhiy Storchaka2013-04-061-2/+5
| | | | (builting and in itertools module, i.e. map(), itertools.chain(), etc).
* list slotdefs in offset order rather than sorting them (closes #17610)Benjamin Peterson2013-04-011-112/+99
| | | | This means we can remove our usage of qsort() than relied on undefined behavior.
* Issue 17447: Clarify that str.isidentifier doesn't check for reserved keywords.Raymond Hettinger2013-03-231-1/+4
|
* _PyUnicode_Writer() now also reuses Unicode singletons:Victor Stinner2013-03-061-1/+1
| | | | empty string and latin1 single character
* fix possible setdefault refleak (closes #17328)Benjamin Peterson2013-03-041-2/+2
|
* Issue #17223: Fix PyUnicode_FromUnicode() for string of 1 character outsideVictor Stinner2013-02-251-7/+7
| | | | the range U+0000-U+10ffff.
* Remove unused defines.Serhiy Storchaka2013-02-231-6/+0
|
* fix building without pymalloc (closes #17228)Benjamin Peterson2013-02-201-1/+1
|
* Fix error messages.Stefan Krah2013-02-191-2/+3
|
* #7963: fix error message when 'object' called with arguments.R David Murray2013-02-191-1/+1
|\
| * #7963: fix error message when 'object' called with arguments.R David Murray2013-02-191-2/+2
| | | | | | | | Patch by Alexander Belopolsky.
* | Issue #12983: Bytes literals with invalid \x escape now raise a SyntaxErrorSerhiy Storchaka2013-02-101-2/+3
|\ \ | |/ | | | | and a full traceback including line number.
| * Issue #12983: Bytes literals with invalid \x escape now raise a SyntaxErrorSerhiy Storchaka2013-02-101-2/+3
| | | | | | | | and a full traceback including line number.
* | Issue #17173: Remove uses of locale-dependent C functions (isalpha() etc.) ↵Antoine Pitrou2013-02-091-2/+2
|\ \ | |/ | | | | | | | | | | | | in the interpreter. I've left a couple of them in: zlib (third-party lib), getaddrinfo.c (doesn't include Python.h, and probably obsolete), _sre.c (legitimate use for the re.LOCALE flag), mpdecimal (needs to build without Python.h).
| * Issue #17173: Remove uses of locale-dependent C functions (isalpha() etc.) ↵Antoine Pitrou2013-02-092-3/+3
| | | | | | | | | | | | | | | | in the interpreter. I've left a couple of them in: zlib (third-party lib), getaddrinfo.c (doesn't include Python.h, and probably obsolete), _sre.c (legitimate use for the re.LOCALE flag).
* | Issue #17137: When an Unicode string is resized, the internal wide characterVictor Stinner2013-02-071-0/+4
| | | | | | | | string (wstr) format is now cleared.
* | Issue #17043: The unicode-internal decoder no longer read past the end ofSerhiy Storchaka2013-02-071-26/+22
|\ \ | |/ | | | | input buffer.
| * Issue #17043: The unicode-internal decoder no longer read past the end ofSerhiy Storchaka2013-02-071-27/+24
| | | | | | | | input buffer.
* | Issue #17034: Use Py_CLEAR() in bytesobject.c.Serhiy Storchaka2013-02-021-8/+4
|\ \ | |/
| * Issue #17034: Use Py_CLEAR() in bytesobject.c.Serhiy Storchaka2013-02-021-8/+4
| |
| * Silence a -Wformat-extra-argument warning when compiling.Gregory P. Smith2013-02-021-7/+15
| |