rocky
20af515dda
Handle comprehensions inside a lambda
2023-08-11 12:13:46 -04:00
rocky
5b3ea47bac
Correct long-literals for Python 2.7
2022-10-16 19:33:51 -04:00
rocky
4260deea11
Tidy ifelsemstmt check
2022-08-29 05:46:46 -04:00
Bo Xuan
2f3b5e53d4
Add test case
2022-08-24 16:19:39 +08:00
rocky
e564ac3ab1
Go over long-literal test
2022-04-24 17:50:32 -04:00
rocky
f3ac70d0ea
test tweak again
2022-04-21 05:34:15 -04:00
rocky
c88d9de316
Correct 3.7 "impor"t and "from .. import"
2022-04-20 20:03:28 -04:00
rocky
04510ac2f8
lambda formatting in f-string
...
In a formatted string using "lambda', we should not add "\n".
For example in:
f'{(lambda x:x)("8")!r}'
Adding a "\n" after "lambda x: x" will give an error message:
SyntaxError: f-string expression part cannot include a backslash
2022-04-12 16:49:58 -04:00
rocky
bc71bf7acd
Shorten 10_complex.py
...
Runtime testing took too long because ranges were larger than needed
Also use newer convention for marking runable codes
2022-04-03 06:41:58 -04:00
rocky
96b1e435c2
Fixes #360
2021-06-15 22:42:55 -04:00
rocky
54932d36fa
Small tweaks...
...
add-test.py: wasn't handling optimize correctly. Handle python version better
parse27.py: dyslexia
01_for_else_try_else.py: bug in found in 1.4 anydbm.py which we will
address soon
2020-07-06 18:19:06 -04:00
rocky
d343384db7
A runnable "async" and "async with" test
2020-05-16 07:55:51 -04:00
rocky
fc00d394ec
And restore a 3.7 test
2020-04-18 23:21:00 -04:00
rocky
4796fb9e70
"or" rule regularization + regressions from xdis
2020-04-16 23:45:39 -04:00
rocky
af8add9df4
Bug in finding annotation in fn with docstring
2020-03-31 11:13:12 -04:00
rocky
874d196e5c
3.x ifelsestmtc reduction rule fix
2020-02-13 05:41:15 -05:00
rocky
6cbb631aa6
In lambda code we, no stinking bogus yield
2020-02-09 07:32:06 -05:00
rocky
e4a196278a
More control-flow testing based on past failures...
...
Some of these still cause problems. Sigh.
2020-02-02 06:08:19 -05:00
rocky
16a51961c3
Add tests based on recent runtests.sh failures...
...
These run quicker and are distilled to simple examples.
2020-02-01 20:32:23 -05:00
rocky
10695d882e
Fix bug in 3.7 chained comparison semantic action
2020-01-24 06:14:28 -05:00
rocky
5c31fdc362
Fix bug in 3.6 handling kwonly params ...
...
when there are annotation args
2020-01-24 05:47:41 -05:00
rocky
beac1d3567
Fix a bug in 3.6+ keyword-only argument passing
2020-01-21 04:37:58 -05:00
rocky
7ec1d0e17b
Merge branch 'master' of github.com:rocky/python-uncompyle6
2020-01-17 04:44:59 -05:00
rocky
027c9a7dc0
Fix "for ... if" bug introduced since 3.6.2...
...
However we've isolated and documented the 3.x grammar a little bit better
2020-01-17 04:41:16 -05:00
rocky
6d368d2b30
parens around consts when taking attr again
2020-01-16 22:15:28 -05:00
rocky
a532aa5b0e
3.7+ use attribute_w_parens like we do in pre 3.7
2020-01-16 11:43:29 -05:00
rocky
73937ffeb4
Handle set/dictionary comprehensions in format strings
2020-01-13 23:49:17 -05:00
rocky
ec3a9978fc
Better 3.6+ nested format strings
2020-01-13 19:08:54 -05:00
rocky
54f4806021
More fstring bugs -- nested fstring grammar rules
2020-01-13 08:04:53 -05:00
rocky
de282af05d
Fix some fstring formats bugs...
...
* Need parens around a lambda in an format string.
* handle format string specifier + width
Note: other format-string bugs remain.
2020-01-13 06:40:18 -05:00
rocky
f56ad56021
Wacky string at beginning of fn which is not docstring...
...
3.7.6 test_fstring.py tests this.
2020-01-12 22:59:06 -05:00
rocky
c3d7ba6dad
3.7 "imports" and "or"
2020-01-11 07:23:23 -05:00
rocky
6cef42f6c7
3.7+ "or" disambiguation and assert2 handling
2020-01-10 20:44:28 -05:00
rocky
7dee584a46
3.7+ "or" handling in listcomp
2020-01-09 03:15:30 -05:00
rocky
6646d18c7a
More complex complex test
2020-01-05 11:54:41 -05:00
rocky
825add1af7
3.7+ "if not" in list comprehension and other bug fixes
2020-01-03 09:01:48 -05:00
rocky
732b5165c2
Fix a 3.7+ chained compare bug...
...
others remain though.
2020-01-03 00:55:45 -05:00
rocky
c42e16fafe
Fix 3.7+ import as
2020-01-01 22:59:07 -05:00
rocky
6de57249ed
Start 3.6+ var type annotations and decompyle3 merge...
...
Although overall an improvement, some new breakage
has occurred and should be fixed.
2020-01-01 01:42:00 -05:00
rocky
566143b515
Python 3.7+ optimized if in comprehension
2019-12-28 18:09:00 -05:00
rocky
b2e1edb434
Fix Python 3.7+ "import as" but keep "import from" working
2019-12-28 11:09:31 -05:00
rocky
bffbd0b352
3.6+ lambda params; add semantic rule customizing for lambdas
2019-12-23 07:19:40 -05:00
rocky
f3bec73840
Fix Bug in 3.6+ in call_ex_kw4 and call_kw36
2019-12-22 08:49:12 -05:00
rocky
805ec7dbfc
Add "if_not_and" rule similar to "if_not_or" rule.
2019-12-13 05:15:21 -05:00
rocky
c6ddefcef5
Merging in recent 3.7 and 3.8 improvements from decompyle6
...
This rebases 3.7, 3.8 ...decompilation off of 3.7ish rather than a 3.4
base.
Add more 3.7 and 3.8 tests
2019-12-08 17:54:59 -05:00
rocky
9bd85fe5a0
Correct assert{,2} transforms
...
Fixes #289
2019-09-23 08:26:16 -04:00
x0ret
2e01f42f65
Fixes #278
2019-07-14 01:12:42 +04:30
rocky
4c76931807
Update tests related to branch
2019-06-30 18:20:40 -04:00
rocky
32c7b8f23d
Add tests for x0ret's recent varrg fixes
2019-06-29 15:50:47 -04:00
rocky
9ab086b207
Add more x0ret tests
2019-06-09 15:19:01 -04:00