Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Bug #1653736: Properly discard third argument to slot_nb_inplace_power. | Martin v. Löwis | 2007-02-09 | 1 | -1/+7 |
| | | | | Will backport. | ||||
* | Bypass set specific optimizations for set and frozenset subclasses. | Raymond Hettinger | 2007-02-08 | 1 | -7/+7 |
| | |||||
* | Do not let overflows in enumerate() and count() pass silently. | Raymond Hettinger | 2007-02-08 | 1 | -0/+6 |
| | |||||
* | Silence compiler warning | Raymond Hettinger | 2007-02-07 | 1 | -1/+1 |
| | |||||
* | Bug #1575169: operator.isSequenceType() now returns False for subclasses of ↵ | Raymond Hettinger | 2007-02-07 | 1 | -0/+2 |
| | | | | dict. | ||||
* | SF #1615701: make d.update(m) honor __getitem__() and keys() in dict subclasses | Raymond Hettinger | 2007-02-07 | 1 | -1/+1 |
| | |||||
* | Bug #1648179: set.update() not recognizing __iter__ overrides in dict ↵ | Raymond Hettinger | 2007-02-01 | 1 | -4/+4 |
| | | | | subclasses. | ||||
* | Fix crasher for when an object's __del__ creates a new weakref to itself. | Brett Cannon | 2007-01-23 | 2 | -0/+14 |
| | | | | | | Patch only fixes new-style classes; classic classes still buggy. Closes bug #1377858. Already backported. | ||||
* | SF patch #1630975: Fix crash when replacing sys.stdout in sitecustomize | Thomas Wouters | 2007-01-23 | 1 | -0/+2 |
| | | | | | | | | | | | When running the interpreter in an environment that would cause it to set stdout/stderr/stdin's encoding, having a sitecustomize that would replace them with something other than PyFile objects would crash the interpreter. Fix it by simply ignoring the encoding-setting for non-files. This could do with a test, but I can think of no maintainable and portable way to test this bug, short of adding a sitecustomize.py to the buildsystem and have it always run with it (hmmm....) | ||||
* | SF #1486663 -- Allow keyword args in subclasses of set() and frozenset(). | Raymond Hettinger | 2007-01-11 | 1 | -2/+2 |
| | |||||
* | Minor change in int() docstring for proper spacing. | Gustavo Niemeyer | 2007-01-10 | 1 | -1/+1 |
| | |||||
* | Mention in the int() docstring that a base zero has meaning, as | Gustavo Niemeyer | 2007-01-10 | 1 | -2/+3 |
| | | | | stated in http://docs.python.org/lib/built-in-funcs.html as well. | ||||
* | For sets with cyclical reprs, emit an ellipsis instead of infinitely recursing. | Raymond Hettinger | 2006-12-30 | 1 | -4/+24 |
| | |||||
* | Typo fix | Andrew M. Kuchling | 2006-12-22 | 1 | -1/+1 |
| | |||||
* | Port Georg's dictobject.c fix keys that were tuples got unpacked on the way ↵ | Raymond Hettinger | 2006-12-08 | 1 | -1/+15 |
| | | | | | | to setting a KeyError (svn revision 52535, sf bug 1576657). | ||||
* | Port Armin's fix for a dict resize vulnerability (svn revision 46589, sf bug ↵ | Raymond Hettinger | 2006-12-08 | 1 | -6/+31 |
| | | | | 1456209). | ||||
* | Eliminate two redundant calls to PyObject_Hash(). | Raymond Hettinger | 2006-12-08 | 1 | -4/+23 |
| | |||||
* | Patch [ 1586791 ] better error msgs for some TypeErrors | Georg Brandl | 2006-11-19 | 3 | -14/+22 |
| | |||||
* | Bug #1067760: Deprecate passing floats to file.seek. | Martin v. Löwis | 2006-11-12 | 1 | -4/+17 |
| | |||||
* | Correctly forward exception in instance_contains(). | Martin v. Löwis | 2006-11-08 | 1 | -4/+6 |
| | | | | | Fixes #1591996. Patch contributed by Neal Norwitz. Will backport. | ||||
* | Fix refleak | Neal Norwitz | 2006-10-29 | 1 | -0/+1 |
| | |||||
* | Bug #1576657: when setting a KeyError for a tuple key, make sure that | Georg Brandl | 2006-10-29 | 1 | -3/+16 |
| | | | | the tuple isn't used as the "exception arguments tuple". | ||||
* | Don't inline Py_ADDRESS_IN_RANGE with gcc 4+ either. | Neal Norwitz | 2006-10-28 | 1 | -1/+2 |
| | | | | Will backport. | ||||
* | Prevent crash if alloc of garbage fails. Found by Typo.pl. | Neal Norwitz | 2006-10-28 | 1 | -0/+5 |
| | | | | Will backport. | ||||
* | Fix warnings with HP's C compiler. It doesn't recognize that infinite | Neal Norwitz | 2006-10-28 | 2 | -0/+6 |
| | | | | | | loops are, um, infinite. These conditions should not be able to happen. Will backport. | ||||
* | WindowsError.str should display the windows error code, | Thomas Heller | 2006-10-27 | 1 | -7/+7 |
| | | | | | | | not the posix error code; with test. Fixes #1576174. Will backport to release25-maint. | ||||
* | Bug #1545497: when given an explicit base, int() did ignore NULs | Georg Brandl | 2006-10-12 | 1 | -2/+19 |
| | | | | embedded in the string to convert. | ||||
* | Fix wording in comment | Andrew M. Kuchling | 2006-10-09 | 1 | -2/+2 |
| | |||||
* | Forward-port of r52136,52138: a review of overflow-detecting code. | Armin Rigo | 2006-10-04 | 8 | -65/+104 |
| | | | | | | | | | | | | | | | | | | | | | | | * unified the way intobject, longobject and mystrtoul handle values around -sys.maxint-1. * in general, trying to entierely avoid overflows in any computation involving signed ints or longs is extremely involved. Fixed a few simple cases where a compiler might be too clever (but that's all guesswork). * more overflow checks against bad data in marshal.c. * 2.5 specific: fixed a number of places that were still confusing int and Py_ssize_t. Some of them could potentially have caused "real-world" breakage. * list.pop(x): fixing overflow issues on x was messy. I just reverted to PyArg_ParseTuple("n"), which does the right thing. (An obscure test was trying to give a Decimal to list.pop()... doesn't make sense any more IMHO) * trying to write a few tests... | ||||
* | Fix integer negation and absolute value to not rely | Martin v. Löwis | 2006-10-04 | 1 | -4/+3 |
| | | | | | on undefined behaviour of the C compiler anymore. Will backport to 2.5 and 2.4. | ||||
* | Bug #1566800: make sure that EnvironmentError can be called with any | Georg Brandl | 2006-09-30 | 1 | -1/+1 |
| | | | | number of arguments, as was the case in Python 2.4. | ||||
* | Patch #1567691: super() and new.instancemethod() now don't accept | Georg Brandl | 2006-09-30 | 2 | -0/+4 |
| | | | | | keyword arguments any more (previously they accepted them, but didn't use them). | ||||
* | Allow exceptions to be directly sliced again | Brett Cannon | 2006-09-20 | 1 | -1/+8 |
| | | | | | | | (e.g., ``BaseException(1,2,3)[0:2]``). Discovered in Python 2.5.0 by Thomas Heller and reported to python-dev. This should be backported to 2.5 . | ||||
* | Remove the __unicode__ method from exceptions. Allows unicode() to be called | Brett Cannon | 2006-09-09 | 1 | -17/+0 |
| | | | | | | | on exception classes. Would require introducing a tp_unicode slot to make it work otherwise. Fixes bug #1551432 and will be backported. | ||||
* | Fix refcounts and add error checks. | Raymond Hettinger | 2006-09-07 | 1 | -8/+35 |
| | |||||
* | Bug #1542051: Exceptions now correctly call PyObject_GC_UnTrack. | Georg Brandl | 2006-09-06 | 1 | -2/+8 |
| | | | | | Also make sure that every exception class has __module__ set to 'exceptions'. | ||||
* | Fix SF bug #1546288, crash in dict_equal. | Neal Norwitz | 2006-09-05 | 1 | -0/+3 |
| | |||||
* | "Conceptual" merge of rev 51711 from the 2.5 branch. | Tim Peters | 2006-09-05 | 1 | -1/+1 |
| | | | | | | | | | | | | i_divmod(): As discussed on Python-Dev, changed the overflow checking to live happily with recent gcc optimizations that assume signed integer arithmetic never overflows. This differs from the corresponding change on the 2.5 and 2.4 branches, using a less obscure approach, but one that /may/ tickle platform idiocies in their definitions of LONG_MIN. The 2.4 + 2.5 change avoided introducing a dependence on LONG_MIN, at the cost of substantially goofier code. | ||||
* | Fix endcase for str.rpartition() | Raymond Hettinger | 2006-09-04 | 3 | -8/+8 |
| | |||||
* | Make sure memory is properly cleaned up in file_init. | Brett Cannon | 2006-08-31 | 1 | -1/+1 |
| | | | | Backport candidate. | ||||
* | Reverting the patch that tried to fix the issue whereby x**2 raises | Alex Martelli | 2006-08-23 | 1 | -3/+3 |
| | | | | | | | OverflowError while x*x succeeds and produces infinity; apparently these inconsistencies cannot be fixed across ``all'' platforms and there's a widespread feeling that therefore ``every'' platform should keep suffering forevermore. Ah well. | ||||
* | x**2 should about equal x*x (including for a float x such that the result is | Alex Martelli | 2006-08-23 | 1 | -3/+3 |
| | | | | | | inf) but didn't; added a test to test_float to verify that, and ignored the ERANGE value for errno in the pow operation to make the new test pass (with help from Marilyn Davis at the Google Python Sprint -- thanks!). | ||||
* | Patch #1541585: fix buffer overrun when performing repr() on | Neal Norwitz | 2006-08-21 | 1 | -12/+29 |
| | | | | | | a unicode string in a build with wide unicode (UCS-4) support. This code could be improved, so add an XXX comment. | ||||
* | Fix a couple of ssize-t issues reported by Alexander Belopolsky on python-dev | Neal Norwitz | 2006-08-21 | 1 | -1/+1 |
| | |||||
* | Move initialization to after the asserts for non-NULL values. | Neal Norwitz | 2006-08-19 | 1 | -2/+4 |
| | | | | | | Klocwork 286-287. (I'm not backporting this, but if someone wants to, feel free.) | ||||
* | Move initialization of interned strings to before allocating the | Neal Norwitz | 2006-08-19 | 1 | -11/+15 |
| | | | | | | object so we don't leak op. (Fixes an earlier patch to this code) Klockwork #350 | ||||
* | Subclasses of int/long are allowed to define an __index__. | Neal Norwitz | 2006-08-15 | 1 | -4/+2 |
| | |||||
* | Fix refleak introduced in rev. 51248. | Georg Brandl | 2006-08-14 | 1 | -1/+3 |
| | |||||
* | Correct an accidentally removed previous patch. | Marc-André Lemburg | 2006-08-14 | 1 | -5/+2 |
| | |||||
* | Slightly revised version of patch #1538956: | Marc-André Lemburg | 2006-08-14 | 3 | -21/+93 |
| | | | | | | | | | | Replace UnicodeDecodeErrors raised during == and != compares of Unicode and other objects with a new UnicodeWarning. All other comparisons continue to raise exceptions. Exceptions other than UnicodeDecodeErrors are also left untouched. |