cpython/Objects
Thomas Wouters e471317a08 Backport trunk revision 53527:
SF patch #1630975: Fix crash when replacing sys.stdout in sitecustomize

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....)
2007-01-23 13:54:30 +00:00
..
stringlib Fix str.rpartition(sep) when sep is not found in str. 2006-09-05 02:21:38 +00:00
abstract.c Forward-port of r52136: a review of overflow-detecting code. 2006-10-04 11:44:06 +00:00
boolobject.c Remove unnecessary casts in type object initializers. 2006-03-30 11:57:00 +00:00
bufferobject.c memcmp() can return values other than -1, 0, and +1 but tp_compare 2006-08-08 17:37:00 +00:00
cellobject.c Another problem reported by Coverity. Backport candidate. 2006-06-30 07:32:46 +00:00
classobject.c Correctly forward exception in instance_contains(). 2006-11-08 06:46:49 +00:00
cobject.c Remove unnecessary casts in type object initializers. 2006-03-30 11:57:00 +00:00
codeobject.c Fix uninitialized memory read reported by Valgrind when running doctest. 2006-07-12 05:27:46 +00:00
complexobject.c Use sizeof(buffer) instead of duplicating the constants to ensure they won't 2006-07-16 02:22:30 +00:00
descrobject.c Change fix for segfaulting property(), add a NEWS entry and a test. 2006-08-04 18:03:37 +00:00
dictnotes.txt Typo fixes 2006-08-04 20:37:43 +00:00
dictobject.c Fix refleak 2006-10-29 23:42:59 +00:00
enumobject.c Use Py_VISIT in all tp_traverse methods, instead of traversing manually or 2006-04-15 21:47:09 +00:00
exceptions.c WindowsError.str should display the windows error code, 2006-10-27 18:47:29 +00:00
fileobject.c Backport trunk revision 53527: 2007-01-23 13:54:30 +00:00
floatobject.c Added a new macro, Py_IS_FINITE(X). On windows there is an intrinsic for this and it is more efficient than to use !Py_IS_INFINITE(X) && !Py_IS_NAN(X). No change on other platforms 2006-05-25 15:53:30 +00:00
frameobject.c Move the initialization of some pointers earlier. The problem is 2006-07-21 05:31:02 +00:00
funcobject.c Whoops, how did that get in there. :-) Revert all the parts of 51227 that were not supposed to go it. Only Modules/_ctypes/cfields.c was supposed to be changed 2006-08-12 02:12:30 +00:00
genobject.c Make use of METH_O and METH_NOARGS where possible. 2006-05-29 21:04:52 +00:00
intobject.c Bug #1545497: when given an explicit base, int() did ignore NULs 2006-10-12 11:28:04 +00:00
iterobject.c Use Py_VISIT in all tp_traverse methods, instead of traversing manually or 2006-04-15 21:47:09 +00:00
listobject.c Backport 52505: 2006-10-28 21:39:10 +00:00
listsort.txt typo fix 2006-08-01 16:24:30 +00:00
longobject.c Forward-port of r52136: a review of overflow-detecting code. 2006-10-04 11:44:06 +00:00
methodobject.c Use Py_VISIT in all tp_traverse methods, instead of traversing manually or 2006-04-15 21:47:09 +00:00
moduleobject.c Use Py_VISIT in all tp_traverse methods, instead of traversing manually or 2006-04-15 21:47:09 +00:00
object.c Slightly revised version of patch #1538956: 2006-08-14 10:55:19 +00:00
obmalloc.c Backport 52506: 2006-10-28 21:39:31 +00:00
rangeobject.c Remove "static forward" declaration. Move constructors 2006-04-11 09:04:12 +00:00
setobject.c SF #1486663 -- Allow keyword args in subclasses of set() and frozenset(). 2007-01-11 18:21:04 +00:00
sliceobject.c Patch #1538606, Patch to fix __index__() clipping. 2006-08-12 17:03:09 +00:00
stringobject.c Forward-port of r52136: a review of overflow-detecting code. 2006-10-04 11:44:06 +00:00
structseq.c Klocwork made another run and found a bunch more problems. 2006-08-12 01:43:40 +00:00
tupleobject.c Patch #1538606, Patch to fix __index__() clipping. 2006-08-12 17:03:09 +00:00
typeobject.c Forward-port of r52136: a review of overflow-detecting code. 2006-10-04 11:44:06 +00:00
unicodectype.c Patch 1494554: Update numeric properties to Unicode 4.1. 2006-05-27 08:36:52 +00:00
unicodeobject.c Forward-port of r52136: a review of overflow-detecting code. 2006-10-04 11:44:06 +00:00
unicodetype_db.h Update Unicode database to Unicode 4.1. 2006-03-09 23:38:20 +00:00
weakrefobject.c _PyWeakref_GetWeakrefCount() now returns a Py_ssize_t instead of long. 2006-08-02 06:14:22 +00:00