summaryrefslogtreecommitdiffstats
path: root/Objects
Commit message (Collapse)AuthorAgeFilesLines
* Issue #8659: Remove redundant ABS calls. Thanks Daniel Stutzbach.Mark Dickinson2010-05-081-5/+2
|
* Add back in a line that was unneeded which advanced a pointer, but commentedBrett Cannon2010-05-061-0/+1
| | | | | | out as it is currently unneeded. This effectively adds back in the line removed in r80809 as a comment.
* Remove an unneeded assignment.Brett Cannon2010-05-051-2/+2
| | | | Found using Clang's static analyzer.
* Remove an unneeded variable assignment.Brett Cannon2010-05-051-2/+1
| | | | Found using Clang's static analyzer.
* Remove an unneeded variable.Brett Cannon2010-05-051-2/+0
| | | | Found using Clang's static analyzer.
* Remove an unneeded variable increment.Brett Cannon2010-05-051-1/+0
| | | | Found using Clang's static analyzer.
* Issue #8404: Fix set operations on dictionary views.Alexandre Vassalotti2010-05-041-3/+6
|
* Pull a NULL pointer check up to cover more cases in the function.Brett Cannon2010-05-041-2/+4
| | | | Found using Clang's static analyzer.
* Remove an unneeded variable and assignment.Brett Cannon2010-05-041-3/+2
| | | | Found using Clang's static analyzer.
* Improve error message from nb_int returning a non-integer, in various ↵Mark Dickinson2010-05-021-4/+4
| | | | PyInt_As* functions:
* Issue 8436: set.__init__ accepts keyword argsRaymond Hettinger2010-04-181-0/+2
|
* tiny simplificationBenjamin Peterson2010-04-161-2/+1
|
* have a clear error when passing something > sys.maxsize to bytearrayBenjamin Peterson2010-04-161-7/+11
|
* Issue #8328: Silence Visual Studio warnings.Stefan Krah2010-04-071-6/+6
|
* Silence a 'comparison between signed and unsigned integer expressions' gcc ↵Mark Dickinson2010-04-061-1/+1
| | | | warning.
* Issue #8259: Get rid of 'outrageous left shift count' error whenMark Dickinson2010-04-061-14/+6
| | | | | left-shifting an integer by more than 2**31 on a 64-bit machine. Also convert shift counts to a Py_ssize_t instead of a C long.
* Use a better NaN test in _Py_HashDouble as well.Mark Dickinson2010-04-051-3/+6
|
* Use a more robust infinity check in _Py_HashDouble.Mark Dickinson2010-04-051-3/+3
| | | | | This fixes a test_decimal failure on FreeBSD 8.0. (modf apparently doesn't follow C99 Annex F on FreeBSD.)
* Silence a compiler warning.Raymond Hettinger2010-04-031-1/+1
|
* more _PyString_Resize error checkingBenjamin Peterson2010-04-032-12/+18
|
* always check _PyString_Resize for errorBenjamin Peterson2010-04-021-10/+12
| | | | also normalize how this error is checked
* Issue 7994: Make object.__format__ with a non-empty format string a ↵Eric Smith2010-04-022-14/+62
| | | | PendingDecprecationWarning. Still need to remove uses of this from various tests.
* Capsule-related changes:Larry Hastings2010-04-021-0/+20
| | | | | | | | | | | * PyCObject_AsVoidPtr() can now open capsules. This addresses most of the remaining backwards-compatibility concerns about the conversion of Python 2.7 from CObjects to capsules. * CObjects were marked Pending Deprecation. * Documentation about this pending deprecation was added to cobject.h. * The capsule source files were added to the legacy PC build processes.
* Issue #8268: Old-style classes (not just instances) now support weakAntoine Pitrou2010-03-311-1/+4
| | | | references.
* #7643: Unicode codepoints VT (0x0B) and FF (0x0C) are linebreaks according ↵Florent Xicluna2010-03-302-6/+11
| | | | to Unicode Standard Annex #14.
* Backported PyCapsule from 3.1, and converted most uses ofLarry Hastings2010-03-253-10/+329
| | | | CObject to PyCapsule.
* Issue #1583863: An unicode subclass can now override the __str__ methodVictor Stinner2010-03-221-1/+1
|
* Add support for weak references to code objects. This will be used by an ↵Collin Winter2010-03-181-2/+5
| | | | | | optimization in the incoming Python 3 JIT. Patch by Reid Kleckner!
* Issue #8024: Update the Unicode database to 5.2Florent Xicluna2010-03-181-1020/+1241
|
* Issue #7818: set().test_c_api() doesn't expect a set('abc'), modify the set.Victor Stinner2010-03-131-1/+15
|
* #8030: more docstring fix for builtin types.Ezio Melotti2010-02-283-7/+7
|
* The set types can also be called without arguments.Georg Brandl2010-02-281-2/+4
|
* #8030: make builtin type docstrings more consistent: use "iterable" instead ↵Georg Brandl2010-02-283-5/+5
| | | | of "seq(uence)", use "new" to show that set() always returns a new object.
* #7649: "u'%c' % char" now behaves like "u'%s' % char" and raises a ↵Ezio Melotti2010-02-251-9/+18
| | | | UnicodeDecodeError if 'char' is a byte string that can't be decoded using the default encoding.
* Issue #7309: Unchecked pointer access when converting UnicodeEncodeError, ↵Eric Smith2010-02-241-36/+78
| | | | UnicodeDecodeError, and UnicodeTranslateError to strings.
* Issue #7649: Fix u'%c' % char for character in range 0x80..0xFFVictor Stinner2010-02-231-1/+9
| | | | => raise an UnicodeDecodeError. Patch written by Ezio Melotti.
* Issue #6902: Fix problem with built-in types format incorrectly with 0 padding.Eric Smith2010-02-231-4/+7
|
* #7706: DONT_HAVE_ERRNO_H is no longer defined by configure (after rev.46819).Andrew M. Kuchling2010-02-221-1/+1
|
* Issue #7988: Fix default alignment to be right aligned for ↵Eric Smith2010-02-221-10/+40
| | | | complex.__format__. Now it matches other numeric types.
* #7482: clarify error message in case of division by zero of float and ↵Ezio Melotti2010-02-222-4/+4
| | | | complex numbers.
* Issue #5211: Fix complex type to avoid implicit calls toMark Dickinson2010-02-211-26/+45
| | | | complex.__coerce__. Thanks Meador Inge for the patch.
* Silence more compiler warnings; fix an instance of potential undefined ↵Mark Dickinson2010-02-141-4/+5
| | | | behaviour from signed overflow.
* Silence some 'comparison between signed and unsigned' compiler warnings.Mark Dickinson2010-02-141-7/+8
|
* Issue #5677: Explicitly forbid write operations on read-only file objects,Antoine Pitrou2010-02-051-0/+32
| | | | | | and read operations on write-only file objects. On Windows, the system C library would return a bogus result; on Solaris, it was possible to crash the interpreter. Patch by Stefan Krah.
* Issue #7385: Fix a crash in `MemoryView_FromObject` whenAntoine Pitrou2010-02-021-7/+5
| | | | `PyObject_GetBuffer` fails. Patch by Florent Xicluna.
* Issue #7767: Add new C-API function PyLong_AsLongLongAndOverflow, aMark Dickinson2010-01-301-0/+104
| | | | | long long variant of PyLong_AsLongAndOverflow. Patch by Case Van Horsen.
* Issue #7788: Fix a crash produced by deleting a list slice with hugeMark Dickinson2010-01-292-2/+4
| | | | step value. Patch by Marcin Bachry.
* #7775: fixed docstring for rpartitionEzio Melotti2010-01-253-3/+3
|
* Issue #7561: Operations on empty bytearrays (such as `int(bytearray())`)Antoine Pitrou2010-01-171-17/+6
| | | | | | could crash in many places because of the PyByteArray_AS_STRING() macro returning NULL. The macro now returns a statically allocated empty string instead.
* Add note about usage of STRINGLIB_EMPTY.Georg Brandl2010-01-171-4/+5
|