Neal Norwitz
f71847e645
If the for loop isn't entered, entryblock will be NULL. If passed
...
to stackdepth_walk it will be dereffed.
Not sure if I found with failmalloc or Klockwork #55 .
2006-07-23 07:51:58 +00:00
Neal Norwitz
b59d08c2fb
Fix more memory allocation issues found with failmalloc.
2006-07-22 16:20:49 +00:00
Neal Norwitz
d12bd012a6
Handle more memory allocation failures without crashing.
2006-07-21 07:59:47 +00:00
Neal Norwitz
84be93b2db
Bug #1512814 , Fix incorrect lineno's when code within a function
...
had more than 255 blank lines. Byte codes need to go first, line #s second.
2006-07-16 01:50:38 +00:00
Neal Norwitz
ed65755608
Bug #1512814 , Fix incorrect lineno's when code at module scope
...
started after line 256.
2006-07-10 00:04:44 +00:00
Neil Schemenauer
0e07b60a4e
Fix AST compiler bug #1501934 : incorrect LOAD/STORE_GLOBAL generation.
2006-07-09 16:16:34 +00:00
Neal Norwitz
2585ad58e6
Fix indentation of case and a Py_ssize_t issue.
2006-06-12 02:09:34 +00:00
Georg Brandl
ddbaa660d3
Patch #1346214 : correctly optimize away "if 0"-style stmts
...
(thanks to Neal for review)
2006-06-04 21:56:52 +00:00
Georg Brandl
7784f12d74
Replace Py_BuildValue("OO") by PyTuple_Pack.
2006-05-26 20:04:44 +00:00
Guido van Rossum
da5b701aee
Get rid of __context__, per the latest changes to PEP 343 and python-dev
...
discussion.
There are two places of documentation that still mention __context__:
Doc/lib/libstdtypes.tex -- I wasn't quite sure how to rewrite that without
spending a whole lot of time thinking about it; and whatsnew, which Andrew
usually likes to change himself.
2006-05-02 19:47:52 +00:00
Martin v. Löwis
0cc56e5c59
Introduce asdl_int_seq, to hold cmpop_ty.
2006-04-13 12:29:43 +00:00
Skip Montanaro
869bacd465
revert - breaks build of Python/ast.c w/ gcc
2006-04-13 09:48:28 +00:00
Skip Montanaro
b940671186
Use union to discriminate pointer types from enum/int types.
2006-04-13 09:37:01 +00:00
Anthony Baxter
d691f1a35f
casting nastiness to make C++ compiler happy
2006-04-13 01:23:28 +00:00
Anthony Baxter
2c33fc77fe
per Jeremy's email, remove the _WITH_CAST versions of macros. g++
...
still has errors from the casts of asdl_seq_GET to cmpop_ty, but
otherwise it's C++ clean.
2006-04-12 00:43:09 +00:00
Anthony Baxter
7b782b61c5
more low-hanging fruit to make code compile under a C++ compiler. Not
...
entirely happy with the two new VISIT macros in compile.c, but I
couldn't see a better approach.
2006-04-11 12:01:56 +00:00
Neal Norwitz
14bc4e4d89
Use PyObject_* allocator since FutureFeatures is small
2006-04-10 06:57:06 +00:00
Neal Norwitz
b183a25c29
Fix some warnings on HP-UX when using cc/aCC
2006-04-10 01:03:32 +00:00
Jeremy Hylton
ed40ea1159
Generate line number table entries for except handlers.
...
Re-enable all the tests in test_trace.py except one. Still not sure that these tests test what they used to test, but they pass. One failing test seems to be caused by undocumented line number table behavior in Python 2.4.
2006-04-04 14:26:39 +00:00
Neal Norwitz
cbce280d4f
Don't abbreviate ABS, use long name ABSOLUTE.
2006-04-03 06:26:32 +00:00
Jeremy Hylton
12603c41da
Expand comments on line numbers and blocks.
...
Reorder compiler_set_lineno() call for consistency.
2006-04-01 16:18:02 +00:00
Georg Brandl
5c170fd4a9
Fix some missing checks after PyTuple_New, PyList_New, PyDict_New
2006-03-17 19:03:25 +00:00
Nick Coghlan
eadee9a744
Fix SF bug #1448804 and ad a test to ensure that all subscript operations continue to be handled correctly
2006-03-13 12:31:58 +00:00
Guido van Rossum
f669436189
Um, I thought I'd already checked this in.
...
Anyway, this is the changes to the with-statement
so that __exit__ must return a true value in order
for a pending exception to be ignored.
The PEP (343) is already updated.
2006-03-10 02:28:35 +00:00
Neal Norwitz
10be2ea85d
SF bug 1442442: LIST_APPEND optimization got lost in the AST merge.
...
Add it back.
2006-03-03 20:29:11 +00:00