rocky
3c6e378cc4
Spelling corrections
2024-07-10 13:31:39 -04:00
Jakub Wilk
7a2348e4cc
Fix typos
2024-01-19 23:20:13 +01:00
rocky
600688a65d
Sync with decompyle3
2022-09-17 10:54:09 -04:00
rocky
85ba8352ba
Port over some recent decompyle3 3.8 fixes
2022-06-26 04:26:15 -04:00
rocky
9b80663529
3.6 async hacking
2022-05-07 07:01:39 -04:00
rocky
8576117d00
Fix More 3.6 async parsing
...
... all from 3.6 test_coroutines.py.
More bugs remain
2022-05-05 07:36:06 -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
219cb0606a
MAKE_FUNCTION_8 -> MAKE_FUNCTION_CLOSURE
...
Clarity is important.
2022-02-27 10:29:53 -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
R. Bernstein
9b5d953614
Merge pull request #364 from rocky/PYTHON3-move
...
use xdis.PYTHON3 not uncompyle.PYTHON3
2021-11-03 01:24:47 -04:00
Markus Elfring
05761b0d46
Issue #363 : Convert 14 statements to the usage of augmented assignments
...
Augmented assignment statements became available with Python 2.
https://docs.python.org/3/whatsnew/2.0.html#augmented-assignment
Thus adjust 14 source code places accordingly.
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net >
2021-11-02 11:25:04 +01:00
rocky
d3cf87e2d9
Start marking test suite since this is going to be copied
2020-05-04 11:43:16 -04: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
31481de209
Test for previous commit
2020-01-22 19:24:29 -05:00
rocky
018583069b
3.7+ bug in handling extended arg
2020-01-22 14:31:45 -05:00
rocky
bc50825460
Conditional jumps to extended-arg JUMP_BACK...
...
this is a major reworking. But it leads the way forward to a
simpler grammar.
2020-01-22 05:32:27 -05:00
rocky
beac1d3567
Fix a bug in 3.6+ keyword-only argument passing
2020-01-21 04:37:58 -05:00
rocky
73937ffeb4
Handle set/dictionary comprehensions in format strings
2020-01-13 23:49:17 -05:00
rocky
a918055a31
3.6+ nested format strings again
2020-01-13 21:25:20 -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
6f6ef19e0a
Start splitting out reduction checks
2020-01-08 20:25:59 -05:00
rocky
c42e16fafe
Fix 3.7+ import as
2020-01-01 22:59:07 -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
fb3761e4f3
Add another 3.8 try/finally rule and semantic action
2019-12-10 22:28:16 -05:00
rocky
9b2e22cbaf
Small "not" bug in prior commit
2019-12-10 16:12:01 -05:00
rocky
58c8fe5a66
Oops - forgot to add the test source
2019-06-11 16:09:04 -04:00
rocky
8b5e0f49f8
Handle {{ }} escape, but when appropriate
2019-05-13 09:41:16 -04:00
x0ret
bf56fbeeec
enhance call_ex_kw(s) positional args handling
2019-05-12 13:11:31 +04:30
rocky
c03b039714
Small tweaks to last commit
2019-05-10 17:25:25 -04:00
rocky
e875b79a75
Fix 3.6. call_ex_kw semantic action
...
Was missing positional args parameter in template. Fix submited by @x0ret
Fixes #227
2019-05-09 09:27:10 -04:00
rocky
b05500dd49
More 3.6+ fstring bugs
2019-05-08 08:57:30 -04:00
rocky
733a44e22f
Revise and hopefully improve 3.6+ fstring handling
2019-05-08 06:03:39 -04:00
rocky
0007abf827
Fix 3.6+ format string interpolation
2019-05-03 19:00:25 -04:00
rocky
257bbc892f
Better 3.6+ format specification handling
2019-05-01 09:17:35 -04:00
rocky
f54cf20d9d
Hacky handling of 3.6 format string 'X'.
2019-04-30 20:06:36 -04:00
rocky
03d23328eb
3.6 constant tuples in call
2019-04-30 16:25:48 -04:00
rocky
3730946a1a
Add semantic rule for 3.x "conditionalnot"
2019-04-22 21:18:17 -04:00
rocky
f1b69a8a28
Add rule for 3.x comp_for
2019-04-22 18:42:21 -04:00
rocky
0de99e5d44
Scale back "try" vs. "tryelse" reduction test on 3.6+
2019-04-18 16:45:44 -04:00
rocky
9b550b9dda
PEP E225 with a nod to Deepcommit
2019-04-14 06:11:16 -04:00
rocky
49e354375e
More run tests
2019-04-10 11:05:46 -04:00
rocky
4a354269bc
Adjust 3.7 chained compare for adjusted grammar
...
Add test for last change
2019-03-23 17:06:50 -04:00
rocky
dcad6cf6ce
Fix if return boundary in 3.6+
...
Fixes #209
2019-03-10 05:59:15 -04:00
rocky
43646b3c71
Comma placement in 3.6 and 3.7 **kwargs
...
fixes #208
2019-01-14 17:41:54 -05:00
rocky
d0dc26caf7
Another test
2019-01-05 16:48:55 -05:00
rocky
d443295df6
Check range of _come_froms on ifelsestmt reduction
...
Fixes #200
2018-12-31 08:39:08 -05:00