rocky
35fcb1edf1
Picking out 3.3 function default values
2018-03-04 18:40:08 -05:00
rocky
ffbce9cb77
3.6 class signature problems...
...
This time getting the class name in when a "load_closure" is added.
2018-03-04 17:25:42 -05:00
rocky
778f92b6f4
Fix a 3.6 CALL_FUNCTION_EX_KW problem..
...
and remove 3.6 customization from pysource.
2018-03-04 09:18:57 -05:00
rocky
a8260edded
3.6 function/class prototype fixes..
...
Had got the order backwards in: class Foo(a=B.c)
String defaults in default parameter tuples need to be quoted
2018-03-03 09:12:02 -05:00
rocky
7200d298a5
Back off unconditional_true test for now - Sigh
2018-03-02 10:06:38 -05:00
rocky
bb13988126
Instruction fixup broken 3.x make_func...
...
for handling default values
2018-03-02 08:03:51 -05:00
rocky
8d503682b3
Use get_inst and self.insts more..
...
needed more in 3.6 to handle EXTENDED_ARGS before JUMP_xxx
2018-03-02 07:15:23 -05:00
rocky
452d17a6c3
3.4 while1 bug fix
2018-03-01 18:56:08 -05:00
rocky
f7439f506a
Fix 3.6 MAKE_FUNCTION for kw params...
...
and remove duplicated attributies in pattr of MAKE_FUNCITON token.
2018-03-01 07:14:46 -05:00
rocky
1fe432585e
Keep pre-3.6 listcomp code patterns in 3.6
2018-02-28 16:22:33 -05:00
rocky
b128e4fde6
Fix 3.6+ nested list comprehensions
...
Modified "load_closure" rule and
changed semantic actions since LOAD_CLOSUREs are stored
inside a MAKE_TUPLE.
FIXME: Not sure if we have additional "if" clauses correct. Test and correct
2018-02-28 11:13:52 -05:00
rocky
afb90dd12e
3.6+ try/finally bugs
...
Another day another 3.6 bug fix attempted
2018-02-27 10:37:18 -05:00
rocky
5c2d0484e5
3.6 MAKE_FUNCTION workarounds
...
Still wrong, but points to diretions for improvements
2018-02-26 09:10:00 -05:00
rocky
31de0d2af5
3.6 keyword args bugs in CALL_FUNCTION_KW
2018-02-26 07:44:37 -05:00
rocky
195075ac01
3.6 while-if-while bug
2018-02-26 01:27:00 -05:00
rocky
df7cfa2d20
Add another 3.6 test for EXTENDED_ARGS
2018-02-25 21:46:42 -05:00
rocky
ee89b5decd
Fix 2.4/2.5 try/else detection...
...
in a hacky way
2018-02-21 04:17:08 -05:00
rocky
f4b7e54313
Refine 2.7 dead code test ..
...
in a hacky way. Will probalby have to expand this in the future or
better do dead code analysis
2018-02-19 07:06:04 -05:00
rocky
08c7966ef9
2.7 for .. try-else bug
2018-02-18 09:13:22 -05:00
rocky
230a38d537
Fix Python 3.5 CALL_FUNCTION_VAR handling
2018-02-12 03:07:03 -05:00
rocky
bb45be2dc7
Start to handle 3.5+ BUILD_LIST_UNPACK in call ..
...
to implement multple star arguments
2018-02-09 03:41:13 -05:00
rocky
4cbba3d46e
2.7 control flow futzing.
...
Some overall cleanup. But again we need to attack all of this more head on.
Closes Issue #149
2018-02-04 14:20:11 -05:00
rocky
106a325ef1
Fix Python 2.7 try: try: else: bug
2018-01-29 08:47:53 -05:00
rocky
5039a71846
fixes 151
2018-01-29 01:05:22 -05:00
rocky
5edcc7c2eb
Remove restriction that there are no more statements after a "return" statement
2018-01-28 00:13:09 -05:00
rocky
71e7120501
JUMP_BACK and CONTINUE need to be treated more similar...
...
fixes 148
2018-01-22 23:08:20 -05:00
rocky
8194595ec9
Handle 3.6+ EXTENDED_ARGs for POP_JUMP_IF... instructions
2018-01-19 16:56:21 -05:00
rocky
4dbcf0400d
Correct 3.6+ calls with kwargs
2018-01-19 06:38:19 -05:00
rocky
2126e4cf32
Fix bug in 3.5+ async stmt ..
...
and in verification status message
2018-01-19 03:15:08 -05:00
rocky
185ec4e306
Fix 2.6 IF/THEN misclassification..
...
with an exception condition
2018-01-13 00:58:16 -05:00
rocky
70ddd71c0e
Test for 2.7 loop try else bug
2018-01-12 22:25:42 -05:00
rocky
c6e20e4444
Fix whileelse bug
2018-01-11 21:52:33 -05:00
rocky
9e92f65a27
Correct Python 2.5- decorator parsing
2018-01-10 11:08:05 -05:00
rocky
abcb769fdf
Fix 2.6- parsing of "for .. try/else" ...
...
with "continue" inside
2018-01-09 08:36:21 -05:00
rocky
892be78927
correct 3.5 CALL_FUNCTION_VAR handling
...
Sigh, 3.6 changes this so this fix is just for this version
2018-01-08 12:24:00 -05:00
rocky
f59174575e
Fix 3.5+ bug in if's with pass bodies
...
Fixes #104 in a somewhat hacky way.
2018-01-08 10:21:53 -05:00
rocky
fbda3ca695
try/else on 2.6 fixup
2018-01-07 21:24:35 -05:00
rocky
78d5d281a8
Handle 2.4- try/finally properly
2017-12-14 19:26:27 -05:00
rocky
acc3e441ac
Fix "or" bug in 2.6- seen via chained comparisons
2017-12-13 07:27:10 -05:00
rocky
733e0ebf9d
Fix 2.6- chained compare in lambda
2017-12-12 14:29:47 -05:00
rocky
832734ccb4
Fix 2.7 lambda with chained compare...
...
More work needs to be done for 2.6-
2017-12-12 13:13:30 -05:00
rocky
88fbb691d8
Fix 3.1 and 3.2 named and kwargs parsing..
...
Improve 3.4 coverage and note a 3.5 while bug
2017-12-07 16:47:56 -05:00
rocky
41bfa3fc01
Back off 3.5 control flow for now
2017-12-07 15:25:32 -05:00
rocky
b6413b6e6e
Skirt around control-flow problems...
...
Tag some of the weaknesses if we can't address them now
2017-12-07 08:55:45 -05:00
rocky
e064791870
Fix 10_del.py syntax
2017-12-05 22:50:21 -05:00
rocky
2599b94786
Start to handle FUTURE_UNICODE_LITERALS flag
2017-12-05 13:28:26 -05:00
rocky
bbaa3e6602
Fix bug in single param **arg
2017-12-05 07:50:22 -05:00
rocky
c953701623
Slightly better 3.x list comprehension handling
2017-12-04 14:15:06 -05:00
rocky
6ecaa16cd5
More weirdness testing
2017-12-03 20:29:55 -05:00
rocky
c791a45aae
Handle a wierd 2.6 conditional false expression...
...
from 2.6. test_grammar
2017-12-03 19:56:14 -05:00