rocky
ad00b9a4ee
Use xdis pattr extraction for LOAD_NAME
2023-04-15 07:31:35 -04:00
rocky
bb9b9fb4b3
Improve "if/else" in "for" test
2022-10-16 18:24:48 -04:00
Berbe
512c500810
Add: Tests: CONTINUE in else block in a for loop
2022-10-10 20:33:19 +02:00
rocky
a215ee2f00
Use "co_consts" in docstring detection.
...
Note: this is an upheaval because we need to pass "code" or at least
"code.co_consts" to the docstring detection routine
2020-07-21 10:31:07 -04:00
rocky
0f80c38530
Better doc string detection
...
A bug in 2.7 test_descr.py revealed a problem with the way we were
detecting docstrings.
__doc__ = DocDescr()
was getting confused with a docstring.
This program also reveals other bugs in 3.2+ but we'll deal with that
in another commit.
2020-07-19 20:31:50 -04:00
rocky
278af38df6
conditional -> if_exp ...
...
to match Python IfExp AST
2020-02-07 16:17:47 -05:00
rocky
f2f17740ee
2.7 if_expr_true restriction ...
...
condition_true -> if_expr_true
condition_lambda -> if_expr_lambda
These correspond to the Python AST names better.
2019-05-05 16:09:10 -04:00
rocky
bfceeac6c8
2.7 can have two JUMP_BACKs at the end of a while loop
...
Fixes #215
2019-01-27 21:41:17 -05:00
rocky
df105fbfb2
Fixed one thing in Python 2.7 and break another.
...
We'll go with this until we get to a more serious refactoring.
2019-01-05 16:38:07 -05:00
rocky
b94f98f8f7
Note we can't handle try/else sometimes in 2.7
2018-05-08 10:17:38 -04:00
rocky
15533c5e38
Fixes #174
2018-05-03 14:56:18 -04:00
rocky
e568d68baa
Reinstate a test
2018-03-28 07:52:04 -04:00
rocky
631940887f
Additional Python 2.x assert vs raise testing
2018-03-25 17:35:18 -04:00
rocky
0c3db340fa
2.7 bug confusing "or" with "if" and "assert"
2018-03-21 13:18:18 -04:00
rocky
ff50a7f37b
In 2.7: raise <expr>; expr can't be a "or"
2018-03-20 16:14:53 -04:00
rocky
7200d298a5
Back off unconditional_true test for now - Sigh
2018-03-02 10:06:38 -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
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
70ddd71c0e
Test for 2.7 loop try else bug
2018-01-12 22:25:42 -05:00
rocky
43cea023c4
2.7 control-flow bug: except/pass in loop
2017-11-25 22:18:57 -05:00
rocky
39b9810587
Better names for a test
2017-04-14 05:05:02 -04:00
rocky
8cdaac93ab
Add if1else. Fixes #101
2017-04-13 21:27:22 -04:00
rocky
a3e10db8dc
Handle PyPy CALL_METHOD op more correctly
...
Start testing pypy2.7 and 3.2 bytecodes
2016-07-25 13:05:54 -04:00
rocky
070b7dab7b
Another 2.7 'continue' detection bug
2016-07-23 17:42:42 -04:00
rocky
f6f3ad362b
2.7: Detect "continue" inside except
...
Fixes issue #38 .
This is a bit hacky. We need a more general "continue" detection.
2016-07-23 11:02:01 -04:00
rocky
5b2198a4a6
A 2.6 comprehension bug
2016-06-29 21:24:19 -04:00