summaryrefslogtreecommitdiffstats
path: root/Objects
Commit message (Collapse)AuthorAgeFilesLines
* merge 3.2Benjamin Peterson2012-10-311-1/+1
|\
| * avoid a function call with redundant checks for dict sizeBenjamin Peterson2012-10-311-1/+1
| |
* | merge 3.2 (#16345)Benjamin Peterson2012-10-311-29/+30
|\ \ | |/
| * only fast-path fromkeys() when the constructor returns a empty dict (closes ↵Benjamin Peterson2012-10-311-33/+34
| | | | | | | | #16345)
* | do safety checks on __qualname__ assignmentBenjamin Peterson2012-10-311-0/+2
| |
* | don't shadow the __qualname__ descriptor with __qualname__ in the class's ↵Benjamin Peterson2012-10-311-5/+4
| | | | | | | | __dict__ (closes #16271)
* | merge 3.2 (#16369)Benjamin Peterson2012-10-312-0/+30
|\ \ | |/
| * initialize more global type objects (closes #16369)Benjamin Peterson2012-10-312-0/+30
| |
| * Issue #14700: Fix buggy overflow checks for large precision and width in ↵Mark Dickinson2012-10-283-20/+15
| | | | | | | | new-style and old-style formatting.
* | Issue #16277: merge fix from 3.2Mark Dickinson2012-10-181-0/+8
|\ \ | |/
| * Issue #16277: in PyLong_FromVoidPtr, add missing branch for sizeof(void*) <= ↵Mark Dickinson2012-10-181-0/+8
| | | | | | | | sizeof(long).
* | Close #16160: Subclass support now works for types.SimpleNamespace. Thanks ↵Eric Snow2012-10-171-12/+12
| | | | | | | | to RDM for noticing.
* | Issue #14783: Merge changes from 3.2.Chris Jerdonek2012-10-074-10/+20
|\ \ | |/
| * Issue #14783: Improve int() docstring and also str(), range(), and slice().Chris Jerdonek2012-10-074-9/+19
| | | | | | | | | | | | This commit rewrites the docstring for int() to incorporate the documentation changes made in issue #16036. It also switches the docstrings for int(), str(), range(), and slice() to use multi-line signatures.
* | Issue #16096: Fix signed overflow in Objects/longobject.c. Thanks Serhiy ↵Mark Dickinson2012-10-061-3/+2
| | | | | | | | Storchaka.
* | Issue #16096: Fix several occurrences of potential signed integer overflow. ↵Mark Dickinson2012-10-062-22/+13
| | | | | | | | Thanks Serhiy Storchaka.
* | #16127: remove outdated references to narrow builds. Patch by Serhiy Storchaka.Ezio Melotti2012-10-051-10/+4
| |
* | Fix PyUnicode_Format(): return NULL if PyUnicode_READY(uformat) failedVictor Stinner2012-10-041-1/+3
| | | | | | | | | | This error cannot occur in practice: PyUnicode_FromObject() always return a "ready" string.
* | Fix typo.Ezio Melotti2012-09-281-2/+2
| |
* | Issue #16060: Fix a double DECREF in int() implementation. Thanks Serhiy ↵Mark Dickinson2012-09-271-4/+3
| | | | | | | | Storchaka.
* | Issue #15379: Fix passing of non-BMP characters as integers for the charmap ↵Antoine Pitrou2012-09-231-3/+4
|\ \ | |/ | | | | | | | | decoder (already working as unicode strings). Patch by Serhiy Storchaka.
| * Issue #15379: Fix passing of non-BMP characters as integers for the charmap ↵Antoine Pitrou2012-09-231-2/+26
| | | | | | | | | | | | decoder (already working as unicode strings). Patch by Serhiy Storchaka.
* | Issue 15959: Merge from 3.2.Mark Dickinson2012-09-201-1/+1
|\ \ | |/
| * Issue 15959: Fix type mismatch for quick{_neg}_int_allocs. Thanks Serhiy ↵Mark Dickinson2012-09-201-1/+1
| | | | | | | | Storchaka.
* | Issue #15144: Fix possible integer overflow when handling pointers as ↵Antoine Pitrou2012-09-205-32/+18
| | | | | | | | | | | | integer values, by using Py_uintptr_t instead of size_t. Patch by Serhiy Storchaka.
* | Silence compiler warnings on Solaris 10 via explicit (void *) casts.Trent Nelson2012-09-191-3/+3
|\ \ | |/
| * Silence compiler warnings on Solaris 10 via explicit (void *) casts.Trent Nelson2012-09-191-3/+3
| | | | | | | | (Compiler: Solaris Studio 12.3)
* | Fix out of bounds read in long_new() for empty bytes with an explicit base. ↵Christian Heimes2012-09-121-2/+2
|\ \ | |/ | | | | int(b'', somebase) calls PyLong_FromString() with char* of length 1 but the function accesses the first argument at offset 1. CID 715359
| * Fix out of bounds read in long_new() for empty bytes with an explicit base. ↵Christian Heimes2012-09-121-2/+2
| | | | | | | | int(b'', somebase) calls PyLong_FromString() with char* of length 1 but the function accesses the first argument at offset 1. CID 715359
* | Issue #15900: Fixed reference leak in PyUnicode_TranslateCharmap()Christian Heimes2012-09-111-6/+5
| |
* | Fixed memory leak in error branch of object_repr which may leak a reference ↵Christian Heimes2012-09-101-1/+3
|\ \ | |/ | | | | to mod when type_qualname returns NULL. CID 715371
| * Fixed memory leak in error branch of object_repr which may leak a reference ↵Christian Heimes2012-09-101-1/+3
| | | | | | | | to mod when type_name returns NULL. CID 715371
* | Fixed memory leak in error branch of formatfloat(). CID 719687Christian Heimes2012-09-101-1/+3
| |
* | Fixed possible reference leak to mod when type_name() returns NULLChristian Heimes2012-09-101-1/+3
|\ \ | |/
| * Fixed possible reference leak to mod when type_name() returns NULLChristian Heimes2012-09-101-1/+3
| |
* | PyTuple_Pack() was missing va_end() in its error branch which lead to a ↵Christian Heimes2012-09-101-1/+3
|\ \ | |/ | | | | resource leak.
| * PyTuple_Pack() was missing va_end() in its error branch which lead to a ↵Christian Heimes2012-09-101-1/+3
| | | | | | | | resource leak.
* | Fixed resource leak to scratch when _PyUnicodeWriter_Prepare failsChristian Heimes2012-09-101-1/+3
| |
* | Py_TYPE() has already dereferenced self before the NULL check. Moved ↵Christian Heimes2012-09-101-1/+2
|\ \ | |/ | | | | Py_TYPE() after the check for self == NULL
| * Py_TYPE() has already dereferenced self before the NULL check. Moved ↵Christian Heimes2012-09-101-1/+2
| | | | | | | | Py_TYPE() after the check for self == NULL
* | Issue #13992: The trashcan mechanism is now thread-safe. This eliminatesAntoine Pitrou2012-09-052-0/+42
|\ \ | |/ | | | | | | | | | | | | | | sporadic crashes in multi-thread programs when several long deallocator chains ran concurrently and involved subclasses of built-in container types. Note that the trashcan functions are part of the stable ABI, therefore they have to be kept around for binary compatibility of extensions.
| * Issue #13992: The trashcan mechanism is now thread-safe. This eliminatesAntoine Pitrou2012-09-052-0/+42
| | | | | | | | | | | | | | | | | | | | | | sporadic crashes in multi-thread programs when several long deallocator chains ran concurrently and involved subclasses of built-in container types. Because of this change, a couple extension modules compiled for 3.2.4 (those which use the trashcan mechanism, despite it being undocumented) will not be loadable by 3.2.3 and earlier. However, extension modules compiled for 3.2.3 and earlier will be loadable by 3.2.4.
* | Issue #15855: added docstrings for memoryview methods and data descriptors ↵Alexander Belopolsky2012-09-031-13/+28
| | | | | | | | new in 3.3.
* | Issue #15855: added docstrings for memoryview methods and data descriptors ↵Alexander Belopolsky2012-09-031-10/+41
|\ \ | |/ | | | | (merge 3.2).
| * Issue #15855: added docstrings for memoryview methods and data descriptors.Alexander Belopolsky2012-09-031-11/+43
| |
* | Fix C++-style comment (xlc compilation failure)Antoine Pitrou2012-09-021-1/+1
| |
* | Make super() internal errors RuntimeError instead of SystemError (closes #15839)Benjamin Peterson2012-09-021-7/+7
| |
* | merge headsBenjamin Peterson2012-08-281-2/+2
|\ \
| * | Issue #15784: Modify OSError.__str__() to better distinguish betweenRichard Oudkerk2012-08-281-2/+2
| | | | | | | | | | | | errno error numbers and Windows error numbers.
* | | merge 3.2 (#15801)Benjamin Peterson2012-08-281-2/+1
|\ \ \ | |/ / |/| / | |/