Commit Graph

171 Commits

Author SHA1 Message Date
rocky
967a44c587 Merge branch 'python-3.0-to-3.2' into python-2.4-to-2.7 2024-07-11 18:37:37 -04:00
rocky
acdf777a35 Sync with decompile3 2024-06-03 07:39:13 -04:00
rocky
404c46c6bb Better const key sorting 2024-06-03 07:18:37 -04:00
rocky
4482730a23 Merge branch 'python-3.0-to-3.2' into python-2.4-to-2.7 2024-05-30 04:52:22 -04:00
rocky
6f2a837765 Better sorting of TABLE_DIRECT keys 2024-05-30 04:35:58 -04:00
rocky
3b1742e779 Merge branch 'python-3.0-to-3.2' into python-2.4-to-2.7 2024-03-08 04:41:40 -05:00
rocky
156188f8bb withasstmt -> with_as
This matches Python's AST naamae better. Some linting and
sorting of dictionary keys done as well.
2024-03-08 04:10:33 -05:00
rocky
8542df4639 Add context manager test...
handle degenerate 3.8 withas
2024-03-07 18:08:07 -05:00
rocky
f1169af582 simplify withas (for now) 2024-03-06 17:19:57 -05:00
rocky
f9eb15582a Merge branch 'python-3.0-to-3.2' into python-2.4-to-2.7 2024-02-24 18:22:34 -05:00
rocky
8a1fd7e127 Keep optype info in token...
It is useful for ADD_VALUE
2024-02-24 17:41:32 -05:00
rocky
b538da1e5f Merge branch 'python-3.0-to-3.2' into python-2.4-to-2.7 2024-02-17 15:24:29 -05:00
rocky
f94100d24c sync with decompile3 2024-02-17 15:09:00 -05:00
rocky
aadc66fe4a Merge branch 'python-3.0-to-3.2' into python-2.4 2024-02-04 13:18:47 -05:00
rocky
dcc9d1a571 Fix spelling via "codespell" 2023-12-17 10:52:32 -05:00
rocky
4aa7f1ce67 Merge branch 'python-3.0-to-3.2' into python-2.4 2023-07-29 13:03:38 -04:00
rocky
ddeb5af6d6 compare_chained2 _> compare_chained_right 2023-07-29 12:09:25 -04:00
rocky
843e3585e2 chained-compare1 -> chained-compare-middle 2023-07-29 12:01:14 -04:00
rocky
697d765a43 Merge branch 'python-3.3-to-3.5' into python-2.4 2022-07-04 07:12:09 -04:00
rocky
85ba8352ba Port over some recent decompyle3 3.8 fixes 2022-06-26 04:26:15 -04:00
rocky
fa9cc4c669 Correct 2.5-7 relative import formatting 2022-05-14 19:35:24 -04:00
rocky
c504bb2491 2.5-2.7 relative import fixes 2022-05-14 19:25:26 -04:00
rocky
021810bb2c Correct 2.x formatting "slice2" nonterminal 2022-05-14 16:54:50 -04:00
rocky
a040439f48 bug in formatting slice2 nonterminal 2022-05-14 16:51:28 -04:00
rocky
0170e39f5d Merge branch 'python-3.3-to-3.5' into python-2.4 2022-05-14 10:43:42 -04:00
rocky
f5043408ec Start rolling in LOAD_ARG for 3.7+ 2022-05-06 02:41:02 -04:00
rocky
eba0d37d0f Improve Python 1.x decompiling
Still has bugs, but is much better.
2022-04-30 05:54:22 -04:00
rocky
e5d82f7613 Merge branch 'python-3.3-to-3.5' into python-2.4 2022-04-25 08:05:28 -04:00
rocky
371138cfbc handle long literal constants faster 2022-04-24 13:11:20 -04:00
rocky
3c2ed93b34 Python 2.4 seems broken 2022-04-15 08:57:55 -04:00
rocky
a1fe069c8c Handle walrus operator
Or rather set precedence on call_stmt and expr_stmt

Adjust pytest test_single_compile so it works now
2022-04-12 05:21:13 -04:00
rocky
2efe2b5b47 WIP 2022-03-04 05:07:31 -05:00
rocky
6f112ec5b2 Ensure no parens on subscript slice 2022-03-03 21:05:47 -05:00
rocky
ce5207333f Remove TABLE_R0 - it hasn't been used in a while 2022-02-27 10:18:57 -05:00
rocky
3ab9272eb0 Merge branch 'python-3.3-to-3.5' into python-2.4 2022-01-03 22:10:47 -05:00
rocky
deea74b6a8 ret_expr -> return_expr
This matches Python's AST a little more closely
2022-01-03 21:56:07 -05:00
rocky
b3163d09e8 Merge branch 'python-3.3-to-3.5' into python-2.4 2021-12-26 18:53:19 -05:00
rocky
3234673422 mklambda -> lambda_body matches Python AST better
Note: we can't use "lambda" since that is a reserved word
2021-12-26 18:48:51 -05:00
rocky
948ecf3123 Merge branch 'python-3.3-to-3.5' into python-2.4 2021-11-03 02:38:24 -04:00
rocky
f6f0e344d0 Python 3.6+ specialization 2021-11-03 02:23:19 -04:00
rocky
2fbe61aa11 Merge branch 'python-3.3-to-3.5' into python-2.4 2021-11-03 01:46:03 -04:00
rocky
ed34bf9d4a use xdis.PYTHON3 not uncompyle.PYTHON3 2021-11-02 06:53:11 -04:00
rocky
1a3bd3cabe Merge branch 'master' into python-2.4 2020-09-05 06:02:41 -04:00
rocky
b4db22d525 Narrow precedence for call statement 2020-09-03 04:35:59 -04:00
rocky
8879708da7 del_stmt -> delete to match Python AST better 2020-09-02 07:14:56 -04:00
rocky
c105edff47 Merge branch 'master' into python-2.4 2020-07-21 18:52:31 -04: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
527d1b4163 Merge branch 'master' into python-2.4 2020-05-18 23:25:53 -04:00
rocky
d7c3b8454b 3.8 needs call_stmt -> call
Simplify/regularize how "return" works
2020-05-18 22:26:18 -04:00
rocky
f5bcdeec95 Merge branch 'master' into python-2.4 2020-04-16 13:09:07 -04:00