summaryrefslogtreecommitdiffstats
path: root/Objects
Commit message (Collapse)AuthorAgeFilesLines
* Issue #21350: Fix file.writelines() to accept arbitrary buffer objects, as ↵Antoine Pitrou2014-05-081-7/+7
| | | | | | advertised. Patch by Brian Kearns.
* Issue #20434 Correct error handlin of _PyString_Resize and _PyBytes_ResizeKristján Valur Jónsson2014-04-252-6/+4
|
* Issue #12546: Allow \x00 as a fill character for builtin type __format__ ↵Eric V. Smith2014-04-141-10/+8
| | | | methods.
* bail in unicode error's __str__ methods if the objects are not properly ↵Benjamin Peterson2014-04-021-0/+12
| | | | initialized (closes #21134)
* fix expandtabs overflow detection to be consistent and not rely on signed ↵Benjamin Peterson2014-03-301-19/+19
| | | | overflow
* add braces and fix indentationBenjamin Peterson2014-03-301-17/+18
|
* fix indentation and add bracesBenjamin Peterson2014-03-301-16/+17
|
* 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 #20437: Fixed 43 potential bugs when deleting objects references.Serhiy Storchaka2014-02-092-8/+4
|
* mmap obmalloc arenas so that they may be immediately returned to the system ↵Benjamin Peterson2014-02-041-13/+37
| | | | when unused (closes #20494)
* Circumventing a bug in glibc (issue #17976).Serhiy Storchaka2013-12-171-3/+5
| | | | Patch by Jaakko Moisio.
* Issue #17976: Fixed potential problem with file.write() not detecting IO errorSerhiy Storchaka2013-12-171-1/+5
| | | | | by inspecting the return value of fwrite(). Based on patches by Jaakko Moisio and test by Victor Stinner.
* Issue #14432: Generator now clears the borrowed reference to the thread stateVictor Stinner2013-12-131-0/+3
| | | | | | | Fix a crash when a generator is created in a C thread that is destroyed while the generator is still used. The issue was that a generator contains a frame, and the frame kept a reference to the Python state of the destroyed C thread. The crash occurs when a trace function is setup.
* Issue #6477: Revert fbb97f6eb3b3 as it broke test_xpickle.Alexandre Vassalotti2013-12-011-2/+2
|
* Issue #6477: Added pickling support for singletons and their types.Alexandre Vassalotti2013-12-011-2/+2
|
* fix docstring. extra \.Gregory P. Smith2013-11-251-1/+1
|
* Document that @property can incorporate a docstring from the getter method. ↵Raymond Hettinger2013-11-241-5/+9
| | | | Improve readabilty with additional whitespace.
* 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
|