rocky
|
716e097654
|
kwonly args in lambas for 3.3..3.5
|
2020-01-05 11:17:33 -05:00 |
|
rocky
|
dba95c5200
|
3.7+ imports yet again
|
2020-01-05 00:13:53 -05:00 |
|
rocky
|
d5df411c7a
|
3.7+ multiple imports of dotted path
|
2020-01-03 23:22:28 -05:00 |
|
rocky
|
077f192711
|
Improve 3.7+ dotted imports
|
2020-01-03 21:22:55 -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
|
7bd81efe9b
|
3.7+ "from import" vs "import as" disambiguation
|
2020-01-02 09:43:37 -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
|
62c249d6b2
|
Simplify make_function3 by customization
We now have different routines for 3.6+
(and 2.x from before).
This is desirable before fixing 3.0..3.5 lambdas with default
paramerts and * args.
|
2019-12-27 13:02:59 -05:00 |
|
rocky
|
db2fdb30fd
|
Tidy code.
* Don't use "str" as a variable name
* blacken helper and alphabetically order fns
* use helper function `find_code_node()` in transform `mk_func()`
|
2019-12-27 12:38:09 -05:00 |
|
rocky
|
37301ab49e
|
Was dropping docstrings! Add in decompyle make_function36
|
2019-12-27 11:41:03 -05:00 |
|
rocky
|
97e3a7eb02
|
Split out make_function.py into v2 and v3 versions
A custom 3.3 make_function will be coming soon.
|
2019-12-27 03:32:15 -05:00 |
|
rocky
|
8b48f62fc8
|
lambda *args with kwargs in 3.4 and 3.5
|
2019-12-23 20:51:03 -05:00 |
|
rocky
|
bffbd0b352
|
3.6+ lambda params; add semantic rule customizing for lambdas
|
2019-12-23 07:19:40 -05:00 |
|
rocky
|
50fbea1a06
|
Python lambda *arg handling
|
2019-12-23 05:33:20 -05:00 |
|
rocky
|
c078048fb0
|
Fixes in 3.5+ lambdas break 3.3-. Deal with later.
|
2019-12-22 13:31:49 -05:00 |
|
rocky
|
6a82b1045e
|
3.x lambda * handling
|
2019-12-22 12:28:27 -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
|
28d9e66a53
|
Redo the way we handle complex literals and 3.7+ bug fixes...
In 3.7+ remove assert_expr* parser rules
Fix "call" precidence in 3.7+ for it children
|
2019-12-19 06:40:13 -05:00 |
|
rocky
|
e39c6c7f0a
|
Fix "with as" indenting and decorated "async def"
Misc other improvements: make check-short now is short
|
2019-12-18 09:14:09 -05:00 |
|
rocky
|
8470bded59
|
Bugs found in test_complex.py
list comprehensions from 3.x closures didn't handle nested for's
before 3.6.
Handle nanj and infj.
|
2019-12-17 18:27:43 -05:00 |
|
rocky
|
01b2b46757
|
Handle named parameters in 3.0..3.3 lambdas
What a pain. Thank you, Python!
|
2019-12-17 09:36:10 -05:00 |
|
rocky
|
89e7a0a246
|
ASYNC_GENERATOR -> 3.5+ "async def"
|
2019-12-16 13:44:33 -05:00 |
|
rocky
|
179fcafaba
|
Fix indentation format in "async for"
|
2019-12-16 13:36:46 -05:00 |
|
rocky
|
d39169dbda
|
Add 3.7 async listcomp
|
2019-12-16 00:14:16 -05:00 |
|
rocky
|
996719688a
|
Merge branch 'master' of github.com:rocky/python-uncompyle6
|
2019-12-15 21:18:44 -05:00 |
|
rocky
|
af9f6b05fa
|
Add 3.7 "async for" in generator
|
2019-12-15 21:18:37 -05:00 |
|
rocky
|
e93b70bcce
|
Fix Python 3.x pringing superclasses...
class Description: not class Description("Description").
Introduced in not catching LOAD_CONST->LOAD_STR change
|
2019-12-15 10:49:24 -05:00 |
|
rocky
|
0eaeb82d48
|
Sync a little with decompyle3
|
2019-12-15 08:07:02 -05:00 |
|
rocky
|
41b6e91286
|
More stringent transform test for assert
|
2019-12-14 11:31:13 -05:00 |
|
rocky
|
56bf3e3125
|
unary_expr -> unary_op
|
2019-12-14 10:57:19 -05:00 |
|
rocky
|
805ec7dbfc
|
Add "if_not_and" rule similar to "if_not_or" rule.
|
2019-12-13 05:15:21 -05:00 |
|
rocky
|
668141662e
|
unary_expr -> unary_op to match Python AST
former unary_op is now unary_operator
|
2019-12-11 15:47:46 -05:00 |
|
rocky
|
cc55fa1de1
|
binary_expr -> bin_op to match Python AST
I know binary_expr is more natural, but as with things Python we
sometimes sacrifice elegance and clarity for Python Fascism.
|
2019-12-11 13:35:21 -05:00 |
|
rocky
|
05f3dad32c
|
Fix some 3.7+ "if"/"and" logic bugs
|
2019-12-11 06:56:43 -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
|
cea2c7e1dc
|
One more "assert" transform
|
2019-12-10 15:46:26 -05:00 |
|
rocky
|
79c38441b5
|
Better "assert" transformation. More 3.8 tests
|
2019-12-10 10:43:01 -05:00 |
|
rocky
|
edbbefb57d
|
Start to remove crud in control-flow detection for 3.7+
|
2019-12-09 18:28:57 -05:00 |
|
rocky
|
99b8a99ffa
|
Python 2.5 fixes..
* "with" handling.
* Go over 2.5 runtest.sh exclusions
|
2019-12-09 06:57:02 -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
|
301464d646
|
Accomodate for optional docstring in function kw calculation
|
2019-12-02 12:58:26 -05:00 |
|
rocky
|
6659fffc0d
|
Two Bugs ...
2.7: more stringent comparison and comp_if testing
2.6-2.7: fix botched dict constant translation
|
2019-11-18 06:49:36 -05:00 |
|
rocky
|
d21d93fd84
|
Handle 3.0 call_stmt better
|
2019-11-16 15:21:59 -05:00 |
|
rocky
|
44f0ba0efb
|
Add 3.0 try/except rule
|
2019-11-15 23:39:36 -05:00 |
|
rocky
|
bc8907e752
|
Guard again improper assert transform...
we see this happen in getheader() from 3.0.1/lib/python3.0/http/client.pyc
|
2019-11-15 22:19:17 -05:00 |
|