rocky
1819fc8944
ifelsetmt - jump back is only allowed inside loops
2022-10-16 17:50:58 -04:00
R. Bernstein
8e6a0b01fa
Merge pull request #413 from Berbe/for-loop
...
Fix: CONTINUE in else block in a for loop
2022-10-16 17:46:26 -04:00
Berbe
512c500810
Add: Tests: CONTINUE in else block in a for loop
2022-10-10 20:33:19 +02:00
rocky
976705fc0a
Add: Python 2.7: ifelsestmtc
2022-10-10 04:30:48 +02:00
rocky
ae46ccf6d3
Go over 2.7 stdlib exclusions
2022-09-30 20:09:41 -04:00
rocky
a1cc0aab37
Move test: all() not in 2.4
2022-09-30 03:45:24 -04:00
rocky
0c7427069e
strings need quotes in ADD_VALUE instructions
2022-09-30 03:33:47 -04:00
rocky
2264ccb1d5
A partial reduce-action sync with decompyle3
...
Start us add _check prefixes and _invalid to the end of check methods
2022-09-30 02:45:52 -04:00
rocky
3bd3029169
Confused == with =
2022-09-29 20:08:07 -04:00
rocky
ad1fa98870
Detect Python 2.7 weird "for-block" bytecode
...
It has an unnecessary JUMP_ABSOLUTE to a JUMP_LOOP
Fixes #408
2022-09-27 08:58:35 -04:00
rocky
8c85260852
Lint-like changes from VSCode
...
Also allow 3.11 to run this
2022-09-21 08:29:06 -04:00
rocky
62b816c60b
Correct a signature return
2022-09-21 02:08:08 -04:00
rocky
d0f173a620
Lint from pycharm
2022-09-21 01:53:56 -04:00
rocky
7c3aff19af
"async for"s can has pass blocks
2022-09-21 00:27:40 -04:00
rocky
be9af85e16
Hande Python 3.5 make_function() semantic action
...
Fixes #409
2022-09-21 00:19:37 -04:00
rocky
6c116fe4f9
Bump default master Python version
2022-09-20 17:35:33 -04:00
rocky
62760eb556
Deal with 2.x EXTENDED_ARGS on JUMP_ABSOLUTE
...
in scanner2's "continue" detection
Fixes #310
2022-09-18 21:12:27 -04:00
rocky
600688a65d
Sync with decompyle3
2022-09-17 10:54:09 -04:00
rocky
a68f440d6f
Sync with decompyle3
...
Better PyPy 3.7 tolerance
2022-09-17 01:59:42 -04:00
rocky
f913306070
Use github xdis...
...
So we pick up newer versions of Python 3.{7,8,9}.14 & 3.10.7
2022-09-16 19:03:00 -04:00
rocky
04df8a98fb
uncompyle6.disasm -> uncompyle6.code_fns
2022-09-16 15:46:46 -04:00
rocky
4b2a2e218a
Misc lint stuff from pycharm...
...
that has been applied to decompyle3 already
2022-09-16 15:38:13 -04:00
rocky
4260deea11
Tidy ifelsemstmt check
2022-08-29 05:46:46 -04:00
R. Bernstein
200250df56
Merge pull request #406 from tangboxuan/master
...
Fix offset of extended argument instruction
2022-08-24 05:51:41 -04:00
rocky
765b0149ea
iftstmt reduce rule for 2.6:
...
In ifsmt there can be a JUMP_ABSOLUTE right before the endif and a jump
the endif doesn't fall through to the place after the endif.
2022-08-24 05:33:22 -04:00
Bo Xuan
2f3b5e53d4
Add test case
2022-08-24 16:19:39 +08:00
rocky
3cc51aa37f
Reduce 2.6 excluded tests
2022-08-23 21:51:33 -04:00
R. Bernstein
19152e7ed8
Merge pull request #407 from rocky/python-2.6-if-fixup
...
Push reducechecks from 2.7 into 2.6
2022-08-23 21:41:16 -04:00
rocky
71b1446c9c
Push reducechecks from 2.7 into 2.6
...
Some adaption is needed. These rules may also help earlier 2.x Python as well
2022-08-23 21:36:55 -04:00
rocky
14aa0ce8f0
sort a list
2022-08-23 20:17:06 -04:00
rocky
dfd8762dbd
Update 2.6 exclude list
2022-08-23 17:26:45 -04:00
rocky
21b4d52a77
Correct 2.6 erroneous ifelse detection
2022-08-23 16:50:50 -04:00
rocky
9da3e4b3c0
For some 2.6 test PYTHON needs to be set to pytest
2022-08-23 08:11:06 -04:00
rocky
d73d0dd11a
PYTHON_VERSION -> PYTHON_VERSION_TRIPLE
2022-08-23 06:54:23 -04:00
Bo Xuan
81633b3c1c
Fix offset of extended argument instruction
2022-08-23 14:18:31 +08:00
rocky
4120213710
Update link which has gone stale
2022-08-14 20:32:47 -04:00
rocky
610f2c827c
Remove 3.6-specific iflastsmt reduce check
...
Fixes #344
2022-07-07 06:54:05 -04:00
rocky
5a4136a7f6
Some limited support for 3.8 "=" specifier
2022-07-06 13:00:52 -04:00
rocky
cc4ea47d24
Use ifelsetmt reduction rule on 2.7
2022-07-04 07:56:44 -04:00
rocky
85ba8352ba
Port over some recent decompyle3 3.8 fixes
2022-06-26 04:26:15 -04:00
rocky
7f798541f0
Python 3.8 while and whileTrue loops
2022-06-16 15:42:51 -04:00
rocky
7fb483c566
Sync up with decompile3's 3.8 try/else handling
2022-06-08 12:49:23 -04:00
rocky
6597737709
Merge branch 'master' of github.com:rocky/python-uncompyle6
2022-05-28 15:48:28 -04:00
rocky
c08ab41afd
Go over what constitutes a bug, yet again
2022-05-28 15:45:51 -04:00
rocky
2cc58fec97
Note narrowing bug
2022-05-21 12:30:21 -04:00
rocky
8f7f0be7fa
Administrivia
...
Workflows CI: go back to released versions rather than github versions
pyenv-newest-versions: updaed to use newest Python releases
pypy38.py: fix wrong package name import
3.6-exclude.sh: update and advance
2022-05-20 06:44:20 -04:00
rocky
3f4e85695e
Reduce 3.7 exclusion tests
2022-05-14 22:24:25 -04:00
rocky
5c29b9a5e5
remove \n in lambda; 2.6 grammar cleanup
2022-05-14 20:28:24 -04:00
rocky
fa9cc4c669
Correct 2.5-7 relative import formatting
2022-05-14 19:35:24 -04:00
rocky
656a9aa290
Bugs in 2.x relative import '.' and 1.x bytecode
2022-05-14 17:46:48 -04:00