cpython/Include
Martin v. Löwis 5b222135f8 Make identifiers str (not str8) objects throughout.
This affects the parser, various object implementations,
and all places that put identifiers into C string literals.

In testing, a number of crashes occurred as code would
fail when the recursion limit was reached (such as the
Unicode interning dictionary having key/value pairs where
key is not value). To solve these, I added an overflowed
flag, which allows for 50 more recursions after the
limit was reached and the exception was raised, and
a recursion_critical flag, which indicates that recursion
absolutely must be allowed, i.e. that a certain call
must not cause a stack overflow exception.

There are still some places where both str and str8 are
accepted as identifiers; these should eventually be
removed.
2007-06-10 09:51:05 +00:00
..
Python-ast.h Merged revisions 55407-55513 via svnmerge from 2007-05-22 18:11:13 +00:00
Python.h Cruft removal: 2006-12-28 04:47:50 +00:00
abstract.h - PEP 3106: dict.iterkeys(), .iteritems(), .itervalues() are now gone; 2007-02-11 06:12:03 +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
boolobject.h Merged the int/long unification branch, by very crude means (sorry Thomas!). 2007-01-14 03:31:43 +00:00
bufferobject.h Merge ssize_t branch. 2006-02-15 17:27:45 +00:00
bytesobject.h Rough and dirty job -- allow concatenation of bytes and arbitrary 2007-04-13 01:39:34 +00:00
cStringIO.h Merge ssize_t branch. 2006-02-15 17:27:45 +00:00
cellobject.h Wrote down the invariants of some common objects whose structure is 2004-10-28 16:32:00 +00:00
ceval.h Make identifiers str (not str8) objects throughout. 2007-06-10 09:51:05 +00:00
classobject.h Completely get rid of PyClass and PyInstance. 2006-08-17 05:42:55 +00:00
cobject.h Make CObjects mutable. Fixes #477441. 2003-10-19 18:30:01 +00:00
code.h Jiwon Seo's PEP 3102 implementation. 2006-10-27 23:31:49 +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
datetime.h Add missing backslash for PyDateTimeAPI->Delta_FromDelta() macro. 2004-06-28 00:48:30 +00:00
descrobject.h
dictobject.h Merged revisions 53875-53911 via svnmerge from 2007-02-25 20:39:11 +00:00
enumobject.h Implement and apply PEP 322, reverse iteration 2003-11-06 14:06:48 +00:00
errcode.h Patch #802188: better parser error message for non-EOL following line cont. 2005-03-03 11:45:45 +00:00
eval.h Jiwon Seo's PEP 3102 implementation. 2006-10-27 23:31:49 +00:00
fileobject.h Merged revisions 53952-54987 via svnmerge from 2007-04-27 19:54:29 +00:00
floatobject.h Remove the deprecated and useless "pend" argument from 2007-03-18 18:35:15 +00:00
frameobject.h Merged revisions 55270-55324 via svnmerge from 2007-05-14 22:03:55 +00:00
funcobject.h PEP 3107 - Function Annotations thanks to Tony Lownds 2006-12-28 06:47:50 +00:00
genobject.h Merge p3yk branch with the trunk up to revision 45595. This breaks a fair 2006-04-21 10:40:58 +00:00
graminit.h Merged revisions 55407-55513 via svnmerge from 2007-05-22 18:11:13 +00:00
grammar.h
import.h Merge current trunk into p3yk. This includes the PyNumber_Index API change, 2006-08-21 19:07:27 +00:00
intobject.h Merged revisions 55342-55406 via svnmerge from 2007-05-17 18:20:34 +00:00
intrcheck.h
iterobject.h SF patch 1546297 (with some tweaks): 2006-08-25 23:26:40 +00:00
listobject.h Merged revisions 53875-53911 via svnmerge from 2007-02-25 20:39:11 +00:00
longintrepr.h Merge ssize_t branch. 2006-02-15 17:27:45 +00:00
longobject.h Get rid of all #ifdef Py_USING_UNICODE (it is always present now). 2007-05-03 17:49:24 +00:00
marshal.h Merge ssize_t branch. 2006-02-15 17:27:45 +00:00
metagrammar.h
methodobject.h Completely get rid of PyClass and PyInstance. 2006-08-17 05:42:55 +00:00
modsupport.h Four months of trunk changes (including a few releases...) 2006-12-13 04:49:30 +00:00
moduleobject.h Add const to several API functions that take char *. 2005-12-10 18:50:16 +00:00
node.h Patch #1440601: Add col_offset attribute to AST nodes. 2006-03-01 22:49:05 +00:00
object.h Add functions PyUnicode_Append() and PyUnicode_AppendAndDel() that mirror 2007-05-18 17:15:44 +00:00
objimpl.h Get rid of most of the flags (in tp_flags) that keep track of various 2006-07-27 21:53:35 +00:00
opcode.h Merged revisions 55225-55227,55229-55269 via svnmerge from 2007-05-11 16:50:42 +00:00
osdefs.h Much-needed merge (using svnmerge.py this time) of trunk changes into p3yk. 2006-05-27 19:21:47 +00:00
parsetok.h Checkpoint. 218 tests are okay; 53 are failing. Done so far: 2006-03-15 04:58:47 +00:00
patchlevel.h This gets at least test_cmd_line working again and a few more modules built. 2006-03-17 08:27:50 +00:00
pgen.h
pgenheaders.h
py_curses.h FreeBSD 5.x uses different wchar_t/win_t guards than earlier versions 2003-06-29 15:46:21 +00:00
pyarena.h Added words about what PyArena_Malloc() does. 2006-03-02 21:14:45 +00:00
pydebug.h Checkpoint. Manipulated things so that string literals are always 2007-04-27 23:53:51 +00:00
pyerrors.h Change PyErr_Format() to generate a unicode string (by using 2007-05-25 15:46:59 +00:00
pyexpat.h Merged revisions 46753-51188 via svnmerge from 2006-08-11 14:57:12 +00:00
pyfpe.h
pygetopt.h
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 Change float.__str__() and complex.__str__() to return 2007-05-31 15:51:35 +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 Patch #1680961: remove sys.exitfunc and replace it with a private C API. Also, reimplement atexit in C so it can take advantage of this private API. 2007-03-21 02:57:17 +00:00
pythread.h Merged revisions 46753-51188 via svnmerge from 2006-08-11 14:57:12 +00:00
rangeobject.h Rename test_xrange.py to test_range.py and fix the 2007-05-21 18:01:17 +00:00
setobject.h Merged revisions 53952-54987 via svnmerge from 2007-04-27 19:54:29 +00:00
sliceobject.h Merge p3yk branch with the trunk up to revision 45595. This breaks a fair 2006-04-21 10:40:58 +00:00
stringobject.h Make identifiers str (not str8) objects throughout. 2007-06-10 09:51:05 +00:00
structmember.h Completely get rid of PyClass and PyInstance. 2006-08-17 05:42:55 +00:00
structseq.h
symtable.h Hide list comp variables and support set comprehensions 2007-04-15 12:05:43 +00:00
sysmodule.h
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 Moved tracebackobject to traceback.h, Closes SF Bug #497067 2004-03-21 18:37:23 +00:00
tupleobject.h Merged revisions 53875-53911 via svnmerge from 2007-02-25 20:39:11 +00:00
ucnhash.h Avoid forward-declaring the methods array. 2006-03-10 11:20:04 +00:00
unicodeobject.h Make identifiers str (not str8) objects throughout. 2007-06-10 09:51:05 +00:00
weakrefobject.h Merged revisions 46753-51188 via svnmerge from 2006-08-11 14:57:12 +00:00