summaryrefslogtreecommitdiffstats
path: root/Objects
Commit message (Collapse)AuthorAgeFilesLines
* Issue #19279: UTF-7 decoder no more produces illegal unicode strings.Serhiy Storchaka2013-10-191-0/+2
|
* 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. (grafted from f34c59494420765b013136ca93f63b716d9f1d30)
* #19069: use imperative mood in float object docstrings. Patch by Marco Buttu.Ezio Melotti2013-10-051-9/+9
|
* #19068: use imperative mood in complex object docstrings. Patch by Marco Buttu.Ezio Melotti2013-10-051-2/+2
|
* Various clarifications based on feedback & questions over the years.Tim Peters2013-08-241-19/+96
|
* Add line explaining the "%sort" test.Tim Peters2013-08-221-0/+1
|
* Issue 18719: Remove a false optimizationRaymond Hettinger2013-08-141-1/+0
| | | | | | | | | | Remove an unused early-out test from the critical path for dict and set lookups. When the strings already have matching lengths 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).
* Issue #15866: The xmlcharrefreplace error handler no more produces two XMLSerhiy Storchaka2013-08-061-21/+61
| | | | entities for a non-BMP character on narrow build.
* Silence compiler warning for unused declaration.Raymond Hettinger2013-08-051-1/+0
|
* Issue #18427: str.replace could crash the interpreter with huge strings.Ronald Oussoren2013-07-111-3/+3
| | | | | | | | | This fixes two places where 'int' was used to represent the size of strings, instead of 'Py_ssize_t'. (The issue is not present in the corresponding code in the 3.x branches) Fixes #18427
* Issue #18184: PyUnicode_FromFormat() and PyUnicode_FromFormatV() now raiseSerhiy Storchaka2013-06-231-1/+18
| | | | OverflowError when an argument of %c format is out of range.
* Issue #18137: Detect integer overflow on precision in float.__format__()Victor Stinner2013-06-231-2/+14
| | | | and complex.__format__().
* add missing NULL check (closes #18019)Benjamin Peterson2013-05-201-0/+4
|
* Issue #16447: Fix potential segfault when setting __name__ on a class.Mark Dickinson2013-04-131-1/+5
|
* list slotdefs in offset order rather than sorting them (closes #17610)Benjamin Peterson2013-04-071-131/+114
| | | | | | This means we can remove our usage of qsort() than relied on undefined behavior. Backport by Zbigniew Halas.
* Revert a premature patch for issue #14010 (changeset d17d10c84d27).Serhiy Storchaka2013-04-061-3/+0
|
* Issue #14010: Fix a crash when iterating or deleting deeply nested filtersSerhiy Storchaka2013-04-061-0/+3
| | | | in itertools module (i.e. itertools.izip(), itertools.chain(), etc).
* allow any type with __getitem__ to be a mapping for the purposes of % (#15801)Benjamin Peterson2013-03-242-4/+4
|
* Issue #10211 : Buffer object should support the new buffer interface.Kristján Valur Jónsson2013-03-191-2/+13
|
* Issue #16445: Fix potential segmentation fault when deleting an exception ↵Mark Dickinson2013-03-031-2/+1
| | | | message.
* fix building without pymalloc (closes #17228)Benjamin Peterson2013-02-201-1/+1
|
* #7963: fix error message when 'object' called with arguments.R David Murray2013-02-191-2/+2
| | | | Patch by Alexander Belopolsky.
* 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 stringobject.c.Serhiy Storchaka2013-02-021-10/+5
|
* Silence a -Wformat-extra-argument warning when compiling.Gregory P. Smith2013-02-021-7/+15
|
* Issue #16979: Fix error handling bugs in the unicode-escape-decode decoder.Serhiy Storchaka2013-01-291-51/+28
|
* Issue #10156: In the interpreter's initialization phase, unicode globalsSerhiy Storchaka2013-01-261-41/+38
| | | | are now initialized dynamically as needed.
* Issue #16975: Fix error handling bug in the escape-decode decoder.Serhiy Storchaka2013-01-251-0/+4
|
* Issue #16335: Fix integer overflow in unicode-escape decoder.Serhiy Storchaka2013-01-211-1/+2
|
* Issue #15989: Fix possible integer overflow in str formatting as in unicode ↵Serhiy Storchaka2013-01-191-2/+6
| | | | formatting.
* Issue #15989: Fix several occurrences of integer overflowSerhiy Storchaka2013-01-194-6/+42
| | | | | | | when result of PyInt_AsLong() or PyLong_AsLong() narrowed to int without checks. This is a backport of changesets 13e2e44db99d and 525407d89277.
* Improve tooltips by listing the most common argument pattern first.Raymond Hettinger2013-01-191-1/+1
|
* Issue #14850: Now a chamap decoder treates U+FFFE as "undefined mapping"Serhiy Storchaka2013-01-151-21/+25
| | | | in any mapping, not only in an unicode string.
* Issue #11461: Fix the incremental UTF-16 decoder. Original patch bySerhiy Storchaka2013-01-081-1/+4
| | | | | Amaury Forgeot d'Arc. Added tests for partial decoding of non-BMP characters.
* Fix out of bound read in UTF-32 decoder on "narrow Unicode" builds.Serhiy Storchaka2013-01-081-1/+1
|
* untabifyBenjamin Peterson2013-01-021-3/+3
|
* call PyErr_Clear() when ignoring error from PyNumber_Int (closes #15516)Benjamin Peterson2013-01-021-1/+4
| | | | Patch from Tom Tromey.
* ensure the attribute name string is initalized before using it (closes #16839)Benjamin Peterson2013-01-021-1/+6
|
* get the core to compile --disable-unicodeBenjamin Peterson2013-01-021-1/+3
|
* Issue #16761: Raise TypeError when int() or long() called with base argument ↵Serhiy Storchaka2012-12-282-2/+14
| | | | only.
* Issue #16602: When a weakref's target was part of a long deallocation chain, ↵Antoine Pitrou2012-12-081-3/+2
| | | | | | the object could remain reachable through its weakref even though its refcount had dropped to zero. Thanks to Eugene Toder for diagnosing and reporting the issue.
* Issue #9742: Sneaky fix for build failure on Solaris 9.Mark Dickinson2012-11-171-0/+9
|
* Issue #15379: Fix passing of non-BMP characters as integers for the charmap ↵Antoine Pitrou2012-11-171-2/+26
| | | | | | decoder (already working as unicode strings). Patch by Serhiy Storchaka.
* Issue #16453: Fix equality testing of dead weakref objects.Antoine Pitrou2012-11-111-4/+8
| | | | Also add tests for hashing.
* Fix compilation on WindowsChristian Heimes2012-11-031-1/+1
|
* #8401: assigning an int to a bytearray slice (e.g. b[3:4] = 5) now raises an ↵Ezio Melotti2012-11-031-0/+6
| | | | error.
* avoid a function call with redundant checks for dict sizeBenjamin Peterson2012-10-311-1/+1
|
* only fast-path fromkeys() when the constructor returns a empty dict (closes ↵Benjamin Peterson2012-10-311-33/+34
| | | | #16345)
* initialize more global type objects (closes #16369)Benjamin Peterson2012-10-312-0/+18
|
* Issue #14700: Fix buggy overflow checks for large precision and width in ↵Mark Dickinson2012-10-284-22/+17
| | | | new-style and old-style formatting.