Benjamin Peterson
1bd74dea9b
backport r67373: checking for errors from NEW_IDENTIFIER
2008-11-25 22:49:28 +00:00
Mark Dickinson
ab396e07cc
Issue #3360 : Fix incorrect parsing of '020000000000.0'.
...
This is a backport of r65005.
2008-07-16 11:04:17 +00:00
Georg Brandl
d297f1ad78
#3117 : backport r55087, fixes segfault with lambda (None,): None.
2008-06-15 19:53:12 +00:00
Sean Reifscheider
4af861cb4e
Back-port of rev 61240 for issue #2238 , fixing: Some syntax errors in *args
...
and **kwargs expressions could give bogus error messages.
2008-03-20 17:39:31 +00:00
Martin v. Löwis
73c01d4101
Added checks for integer overflows, contributed by Google. Some are
...
only available if asserts are left in the code, in cases where they
can't be triggered from Python code.
2008-02-14 11:26:18 +00:00
Neal Norwitz
14f848bb22
Backport 58330:
...
Fix Coverity #158 : Check the correct variable.
2007-10-05 03:45:42 +00:00
Georg Brandl
eec47f3556
Backport fix of #1752175 .
2007-08-23 18:08:33 +00:00
Georg Brandl
73c958aced
Disallow function calls like foo(None=1).
...
Backport from py3k rev. 55708 by Guido.
(backport from rev. 55802)
2007-06-07 13:23:28 +00:00
Collin Winter
7d9ac78384
Patch #1642547 : Fix an error/crash when encountering syntax errors in complex if statements.
...
Backported from r54404.
2007-03-16 04:12:48 +00:00
Neal Norwitz
a3ce6aa8b7
Backport 52621:
...
Bug #1588287 : fix invalid assertion for `1,2` in debug builds.
2006-11-04 19:32:54 +00:00
Georg Brandl
c57221e158
Backport rev. 51972:
...
Bug #1557232 : fix seg fault with def f((((x)))) and def f(((x),)).
These tests should be improved. Hopefully this fixes variations when
flipping back and forth between fpdef and fplist.
2006-09-25 07:04:10 +00:00
Neal Norwitz
3b3aae013b
Bug #1520864 (again): unpacking singleton tuples in list comprehensions and
...
generator expressions (x for x, in ... ) works again.
Sigh, I only fixed for loops the first time, not list comps and genexprs too.
I couldn't find any more unpacking cases where there is a similar bug lurking.
2006-09-05 03:56:01 +00:00
Neal Norwitz
6f5ff3f3eb
Klocwork made another run and found a bunch more problems.
...
This is the first batch of fixes that should be easy to verify based on context.
This fixes problem numbers: 220 (ast), 323-324 (symtable),
321-322 (structseq), 215 (array), 210 (hotshot), 182 (codecs), 209 (etree).
2006-08-12 01:43:40 +00:00
Neal Norwitz
c173b488dc
Add some asserts and update comments
2006-07-30 19:18:13 +00:00
Neal Norwitz
0d62a06206
Patch #1531113 : Fix augmented assignment with yield expressions.
...
Also fix a SystemError when trying to assign to yield expressions.
2006-07-30 06:53:31 +00:00
Neal Norwitz
d12bd012a6
Handle more memory allocation failures without crashing.
2006-07-21 07:59:47 +00:00
Neal Norwitz
edef2be4af
Bug #1520864 : unpacking singleton tuples in for loop (for x, in) work again.
2006-07-12 05:26:17 +00:00
Neil Schemenauer
6ec6ab02c3
Fix SF bug 1441486: bad unary minus folding in compiler.
2006-07-09 21:19:29 +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
fb48afa708
Fix SF bug #1519018 : 'as' is now validated properly in import statements
2006-07-08 05:31:37 +00:00
Georg Brandl
7784f12d74
Replace Py_BuildValue("OO") by PyTuple_Pack.
2006-05-26 20:04:44 +00:00
Neal Norwitz
5ef922447c
Fix #1474677 , non-keyword argument following keyword.
2006-05-19 06:43:50 +00:00
Neal Norwitz
373f0a718c
- Bug #1487966 : Fix SystemError with conditional expression in assignment
...
Most of the test_syntax changes are just updating the numbers.
2006-05-15 07:04:36 +00:00
Martin v. Löwis
6685128b97
Fix more ssize_t issues.
2006-04-22 11:40:03 +00:00
Martin v. Löwis
0cc56e5c59
Introduce asdl_int_seq, to hold cmpop_ty.
2006-04-13 12:29:43 +00:00