cpython/Include
Christian Heimes c896700235 Partial fix for bug #1306
Multiple reinitializations of Python 3.0 failed on a system without a hardcoded default fs encoding. The patch makes sure that the default fs encoding is freed and reset to NULL on e.g. Linux.
I've also taken the liberty to increase the debugging in Objects/object.c:_Py_ForgetReference(). The method is used to validate the reference chain.
Reinitialization still fails in the 3rd round of my test suite:
* ob
object  : <refcnt 0 at 0x821c840>
type    : str
refcount: 0
address : 0x821c840
* op->_ob_prev->_ob_next
object  : <refcnt 0 at 0x821c840>
type    : str
refcount: 0
address : 0x821c840
* op->_ob_next->_ob_prev
object  : bytearray(b'')
type    : bytearray
refcount: 1
address : 0x826b838
Fatal Python error: UNREF invalid object
2007-11-30 10:18:26 +00:00
..
Python-ast.h Issue #1066: implement PEP 3109, 2/3 of PEP 3134. 2007-08-31 00:04:24 +00:00
Python.h Delete bufferobject.[ch]. 2007-10-08 03:32:34 +00:00
abstract.h Merging the py3k-pep3137 branch back into the py3k branch. 2007-11-06 21:34:58 +00:00
asdl.h Whoops, fix build breakage. There were still a few uses of the bool type. 2007-02-26 19:14:12 +00:00
ast.h Merge from ast-arena. This reduces the code in Python/ast.c by ~300 lines, 2005-12-17 20:54:49 +00:00
bitset.h REMOVED all CWI, CNRI and BeOpen copyright markings. 2000-09-01 23:29:29 +00:00
boolobject.h Merged revisions 56467-56482 via svnmerge from 2007-07-21 17:22:18 +00:00
bytes_methods.h For PEP3137: Adds missing methods to the mutable PyBytes object (soon 2007-10-16 06:31:30 +00:00
bytesobject.h Added all PyTypeObjects to the appropriate header files. 2007-11-29 22:35:39 +00:00
cStringIO.h Merged revisions 56467-56482 via svnmerge from 2007-07-21 17:22:18 +00:00
cellobject.h Merged revisions 56467-56482 via svnmerge from 2007-07-21 17:22:18 +00:00
ceval.h Make identifiers str (not str8) objects throughout. 2007-06-10 09:51:05 +00:00
classobject.h Removed the API to create unbound methods and simplified the API for bound methods. The signature is PyMethod_New(func, instance). 2007-11-27 10:40:20 +00:00
cobject.h Merged revisions 56467-56482 via svnmerge from 2007-07-21 17:22:18 +00:00
code.h Patch #1272, by Christian Heimes and Alexandre Vassalotti. 2007-10-15 02:52:41 +00:00
codecs.h Merge part of the trunk changes into the p3yk branch. This merges from 43030 2006-04-21 09:43:23 +00:00
compile.h Merge p3yk branch with the trunk up to revision 45595. This breaks a fair 2006-04-21 10:40:58 +00:00
complexobject.h Merged revisions 56467-56482 via svnmerge from 2007-07-21 17:22:18 +00:00
datetime.h Merged revisions 56467-56482 via svnmerge from 2007-07-21 17:22:18 +00:00
descrobject.h Added all PyTypeObjects to the appropriate header files. 2007-11-29 22:35:39 +00:00
dictobject.h Added all PyTypeObjects to the appropriate header files. 2007-11-29 22:35:39 +00:00
enumobject.h Implement and apply PEP 322, reverse iteration 2003-11-06 14:06:48 +00:00
errcode.h Implement PEP 3131. Add isidentifier to str. 2007-08-15 07:32:56 +00:00
eval.h Jiwon Seo's PEP 3102 implementation. 2006-10-27 23:31:49 +00:00
fileobject.h Partial fix for bug #1306 2007-11-30 10:18:26 +00:00
floatobject.h Merged revisions 56467-56482 via svnmerge from 2007-07-21 17:22:18 +00:00
formatter_unicode.h Implementation of PEP 3101, Advanced String Formatting. 2007-08-25 02:26:07 +00:00
frameobject.h Merged revisions 56467-56482 via svnmerge from 2007-07-21 17:22:18 +00:00
funcobject.h Fix some comments 2007-08-25 17:01:41 +00:00
genobject.h Merged revisions 56467-56482 via svnmerge from 2007-07-21 17:22:18 +00:00
graminit.h Merged revisions 55407-55513 via svnmerge from 2007-05-22 18:11:13 +00:00
grammar.h REMOVED all CWI, CNRI and BeOpen copyright markings. 2000-09-01 23:29:29 +00:00
import.h Merged revisions 59005-59040 via svnmerge from 2007-11-18 19:35:23 +00:00
intobject.h Merged revisions 55342-55406 via svnmerge from 2007-05-17 18:20:34 +00:00
intrcheck.h Excise DL_EXPORT from Include. 2002-08-12 07:21:58 +00:00
iterobject.h Added all PyTypeObjects to the appropriate header files. 2007-11-29 22:35:39 +00:00
listobject.h Added all PyTypeObjects to the appropriate header files. 2007-11-29 22:35:39 +00:00
longintrepr.h Merged revisions 56467-56482 via svnmerge from 2007-07-21 17:22:18 +00:00
longobject.h This is roughly socket2.diff from issue 1378, with a few changes applied 2007-11-16 01:24:05 +00:00
marshal.h Merge ssize_t branch. 2006-02-15 17:27:45 +00:00
memoryobject.h Fix problems with memoryview object. There is still more to do to finish PEP 3118. The memory-view object needs to be fleshed out and the struct module needs to be modified. 2007-10-12 23:27:53 +00:00
metagrammar.h REMOVED all CWI, CNRI and BeOpen copyright markings. 2000-09-01 23:29:29 +00:00
methodobject.h Get rid of METH_OLDARGS. 2007-09-01 13:59:50 +00:00
modsupport.h Four months of trunk changes (including a few releases...) 2006-12-13 04:49:30 +00:00
moduleobject.h Get rid of more uses of string and use const in a few places. 2007-08-26 02:21:42 +00:00
node.h Patch #1440601: Add col_offset attribute to AST nodes. 2006-03-01 22:49:05 +00:00
object.h Replace PyObject_Unicode with PyObject_Str everywhere, and remove the 2007-11-15 20:48:54 +00:00
objimpl.h Remove _PyObject_Del 2007-08-19 22:48:23 +00:00
opcode.h Merging the py3k-pep3137 branch back into the py3k branch. 2007-11-06 21:34:58 +00:00
osdefs.h Remove RISCOS support 2007-08-16 14:35:24 +00:00
parsetok.h Convert code from sys.stdin.encoding to UTF-8 in 2007-09-04 09:18:06 +00:00
patchlevel.h Tweak the version *string* to clarify that this isn't your father's 3.0a1. :-) 2007-10-20 00:05:19 +00:00
pgen.h Changes from Jonathan Riehl to allow his pgen extension (PEP 269) to 2003-04-17 14:55:42 +00:00
pgenheaders.h Use Py_GCC_ATTRIBUTE instead of __attribute__. Compilers other than GCC 2002-09-15 14:09:54 +00:00
py_curses.h Merged revisions 56467-56482 via svnmerge from 2007-07-21 17:22:18 +00:00
pyarena.h Added words about what PyArena_Malloc() does. 2006-03-02 21:14:45 +00:00
pydebug.h Merging the py3k-pep3137 branch back into the py3k branch. 2007-11-06 21:34:58 +00:00
pyerrors.h Merging the py3k-pep3137 branch back into the py3k branch. 2007-11-06 21:34:58 +00:00
pyexpat.h Merged revisions 46753-51188 via svnmerge from 2006-08-11 14:57:12 +00:00
pyfpe.h Some patches to Lee Busby's fpectl mods that accidentally didn't make it 1997-10-20 23:50:01 +00:00
pygetopt.h Excise DL_EXPORT from Include. 2002-08-12 07:21:58 +00:00
pymactoolbox.h SF patch #1035255: Remove CoreServices / CoreFoundation dependencies in core 2004-11-05 07:02:59 +00:00
pymem.h Merged revisions 55325-55327 via svnmerge from 2007-05-14 22:51:27 +00:00
pyport.h Remove support for BeOS 2007-08-17 12:57:41 +00:00
pystate.h Make identifiers str (not str8) objects throughout. 2007-06-10 09:51:05 +00:00
pystrtod.h Merge ssize_t branch. 2006-02-15 17:27:45 +00:00
pythonrun.h Convert code from sys.stdin.encoding to UTF-8 in 2007-09-04 09:18:06 +00:00
pythread.h Merged revisions 46753-51188 via svnmerge from 2006-08-11 14:57:12 +00:00
rangeobject.h Added all PyTypeObjects to the appropriate header files. 2007-11-29 22:35:39 +00:00
setobject.h Added all PyTypeObjects to the appropriate header files. 2007-11-29 22:35:39 +00:00
sliceobject.h Merged revisions 56467-56482 via svnmerge from 2007-07-21 17:22:18 +00:00
stringobject.h Added all PyTypeObjects to the appropriate header files. 2007-11-29 22:35:39 +00:00
structmember.h Fixed some build issues and updated docs. 2007-11-17 19:08:41 +00:00
structseq.h Remove PyArg_Parse usage from time module. (An extra set of eyeballs on 2007-08-24 21:11:00 +00:00
symtable.h Merged revisions 56467-56482 via svnmerge from 2007-07-21 17:22:18 +00:00
sysmodule.h Add const to input string parameters 2007-08-25 00:32:45 +00:00
timefuncs.h Bug 975996: Add _PyTime_DoubleToTimet to C API 2004-06-20 02:50:16 +00:00
token.h Make ELLIPSIS a separate token. This makes it a syntax error to write ". . ." for Ellipsis. 2007-03-18 19:01:53 +00:00
traceback.h Merged revisions 56467-56482 via svnmerge from 2007-07-21 17:22:18 +00:00
tupleobject.h Added all PyTypeObjects to the appropriate header files. 2007-11-29 22:35:39 +00:00
ucnhash.h Avoid forward-declaring the methods array. 2006-03-10 11:20:04 +00:00
unicodeobject.h Added all PyTypeObjects to the appropriate header files. 2007-11-29 22:35:39 +00:00
weakrefobject.h Merged revisions 56467-56482 via svnmerge from 2007-07-21 17:22:18 +00:00