summaryrefslogtreecommitdiffstats
path: root/Objects
Commit message (Collapse)AuthorAgeFilesLines
* add spaceBenjamin Peterson2010-07-021-1/+1
|
* remove unused last argument to property_copyBenjamin Peterson2010-06-281-16/+12
|
* Fix extra space.Ezio Melotti2010-06-262-2/+2
|
* remove INT_MAX assertions; they can fail with large Py_ssize_t #9058Benjamin Peterson2010-06-221-3/+0
|
* fix warning with ucs4Benjamin Peterson2010-06-121-1/+2
|
* Issue #8941: decoding big endian UTF-32 data in UCS-2 builds could crashAntoine Pitrou2010-06-111-19/+21
| | | | | the interpreter with characters outside the Basic Multilingual Plane (higher than 0x10000).
* Issue #8930: fix some C code indentationAntoine Pitrou2010-06-092-217/+217
|
* remove extra byte and fix commentBenjamin Peterson2010-06-071-2/+2
|
* correctly overflow when indexes are too largeBenjamin Peterson2010-06-071-0/+4
|
* locale grouping strings should end in '\0'Benjamin Peterson2010-06-071-1/+1
|
* Update PyUnicode_DecodeUTF8 from RFC 2279 to RFC 3629.Ezio Melotti2010-06-051-63/+56
| | | | | | | | | | | | | | | 1) #8271: when a byte sequence is invalid, only the start byte and all the valid continuation bytes are now replaced by U+FFFD, instead of replacing the number of bytes specified by the start byte. See http://www.unicode.org/versions/Unicode5.2.0/ch03.pdf (pages 94-95); 2) 5- and 6-bytes-long UTF-8 sequences are now considered invalid (no changes in behavior); 3) Add code and tests to reject surrogates (U+D800-U+DFFF) as defined in RFC 3629, but leave it commented out since it's not backward compatible; 4) Change the error messages "unexpected code byte" to "invalid start byte" and "invalid data" to "invalid continuation byte"; 5) Add an extensive set of tests in test_unicode; 6) Fix test_codeccallbacks because it was failing after this change.
* Fix comment typo.Mark Dickinson2010-06-051-1/+1
|
* Issue #8627: Fix "XXX undetected error" from unchecked PyErr_WarnPy3k return.Mark Dickinson2010-06-051-4/+10
| | | | | This is just a quick fix: if the warning is turned into an exception, the exception simply gets ignored.
* Issue #8627: remove out-of-date warning about overriding __cmp__Mark Dickinson2010-06-051-7/+0
|
* _PyObject_LookupSpecial returns a new referenceBenjamin Peterson2010-06-051-0/+1
|
* fix ref countingBenjamin Peterson2010-06-051-1/+1
|
* implement object.__format__ with PyObject_FormatBenjamin Peterson2010-06-051-12/+1
|
* remove PyType_Ready call; float should be initialized in interpreter startupBenjamin Peterson2010-06-051-6/+1
|
* properly lookup the __format__ special methodBenjamin Peterson2010-06-051-21/+11
|
* Issue #8748: Fix incorrect results from comparisons between an integerMark Dickinson2010-05-301-9/+54
| | | | and a complex instance. Based on a patch by Meador Inge.
* Remove declaration for unused variable.Mark Dickinson2010-05-301-1/+0
|
* Issue #5211: Complete removal of implicit coercions for the complexMark Dickinson2010-05-301-19/+2
| | | | | type. Coercion for arithmetic operations was already removed in r78280, but that commit didn't remove coercion for rich comparisons.
* #8635: document enumerate() start parameter in docstring.Georg Brandl2010-05-221-3/+4
|
* Issue #7079: Fix a possible crash when closing a file object while usingAntoine Pitrou2010-05-171-2/+4
| | | | it from another thread. Patch by Daniel Stutzbach.
* Wrap multiline macros in a 'do {} while(0)', for safety.Mark Dickinson2010-05-091-37/+43
|
* Post-detabification cleanup: whitespace fixes and long line rewraps only.Mark Dickinson2010-05-091-159/+155
|
* Untabify C files. Will watch buildbots.Antoine Pitrou2010-05-0934-37897/+37897
|
* 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.