Staging
v0.5.1
https://github.com/python/cpython
Revision 20cc6be1aada880f0267eaca39ebb70d0e790692 authored by Andrew M. Kuchling on 05 October 2006, 19:32:52 UTC, committed by Andrew M. Kuchling on 05 October 2006, 19:32:52 UTC
 you find that Python does print "MemoryError".  There's no traceback
 and no indication of which line of code is responsible, but it's
 better than a segfault.]

Handle NULL nodes while parsing.  I'm not entirely sure this is correct.
There might be something else that needs to be done to setup the error.

Klocwork #295.
1 parent 6d0bc3e
History
Tip revision: 20cc6be1aada880f0267eaca39ebb70d0e790692 authored by Andrew M. Kuchling on 05 October 2006, 19:32:52 UTC
[Backport r51222 | neal.norwitz -- if you hack the code to set r=NULL,
Tip revision: 20cc6be
File Mode Size
acceler.c -rw-r--r-- 2.8 KB
bitset.c -rw-r--r-- 949 bytes
firstsets.c -rw-r--r-- 2.2 KB
grammar.c -rw-r--r-- 5.2 KB
grammar.mak -rw-r--r-- 1.3 KB
grammar1.c -rw-r--r-- 1.0 KB
intrcheck.c -rw-r--r-- 2.4 KB
listnode.c -rw-r--r-- 983 bytes
metagrammar.c -rw-r--r-- 2.2 KB
myreadline.c -rw-r--r-- 5.4 KB
node.c -rw-r--r-- 3.5 KB
parser.c -rw-r--r-- 8.9 KB
parser.h -rw-r--r-- 1000 bytes
parsetok.c -rw-r--r-- 5.1 KB
pgen.c -rw-r--r-- 14.2 KB
pgenmain.c -rw-r--r-- 3.2 KB
printgrammar.c -rw-r--r-- 2.4 KB
tokenizer.c -rw-r--r-- 32.4 KB
tokenizer.h -rw-r--r-- 2.3 KB
tokenizer_pgen.c -rw-r--r-- 36 bytes

back to top