rocky
b842189d8a
Merge branch 'master' into python-2.4
2020-01-05 18:06:57 -05:00
rocky
dba95c5200
3.7+ imports yet again
2020-01-05 00:13:53 -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
c42e16fafe
Fix 3.7+ import as
2020-01-01 22:59:07 -05:00
rocky
566143b515
Python 3.7+ optimized if in comprehension
2019-12-28 18:09:00 -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
a3932c7aec
Merge branch 'master' into python-2.4
2019-12-23 11:11:00 -05:00
rocky
bffbd0b352
3.6+ lambda params; add semantic rule customizing for lambdas
2019-12-23 07:19:40 -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
c683f3a88d
Merge branch 'master' into python-2.4
2019-12-17 18:28:22 -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
a1d0ee9694
Merge branch 'master' into python-2.4
2019-12-16 13:37:43 -05:00
rocky
d39169dbda
Add 3.7 async listcomp
2019-12-16 00:14:16 -05:00
rocky
bee7bea330
Merge branch 'master' into python-2.4
2019-12-15 21:19:08 -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
93b31a2fa4
Merge branch 'master' into python-2.4
2019-12-15 10:51:34 -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
bc21e3163f
Merge branch 'master' into python-2.4
2019-12-14 11:03:51 -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
9bde5c6cac
Merge branch 'master' into python-2.4
2019-12-09 03:29:55 -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
495a969ccf
Merge branch 'master' into python-2.4
2019-11-18 18:15:51 -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
5b0f772dc7
Merge branch 'master' into python-2.4
2019-11-10 12:16:04 -05:00
rocky
2da5a5649f
Python 3.5 tolerance
2019-11-10 12:04:21 -05:00
rocky
0a5fcc51d8
Pypy 3.6 fixes and tests
2019-10-29 11:43:09 -04:00
rocky
d41ef3e5dc
Pypy 3.6 tolerance
2019-10-28 14:46:45 -04:00
rocky
ebb0342b38
WIP pypy3.6 handling
2019-10-28 13:20:51 -04:00
rocky
914369bd36
Merge branch 'master' into python-2.4
2019-10-12 20:06:04 -04:00
rocky
163e47fb49
Fragment fixes (and workarounds)
...
fragments.py: add more parent offsets. blacken buffer
parser3.py: additional grammar rules for fragment parser
Misc small typos and corrections
2019-10-12 12:22:27 -04:00
rocky
0cf32f1b70
Better 1.5 parameter tuple handling...
...
Tidy README.rst
2019-10-10 17:20:00 -04:00
rocky
94c01d395a
Merge branch 'master' into python-2.4
2019-08-24 08:32:21 -04:00
rocky
1ebfde6927
Add tree transformation phase...
...
if ... else if ... -> if ... elif ..
if .. : raise AsssertionError -> assert
Add options --tree=before --tree=after -T expanded to include this
This code ported from decompyle3. x0ret did all the heavy lifting.
2019-08-21 09:00:09 -04:00
rocky
ed92f03bed
Merge branch 'master' into python-2.4
2019-07-18 05:30:46 -04:00
rocky
71bdc8dc6a
Merge branch 'master' of github.com:rocky/python-uncompyle6
2019-07-18 05:27:05 -04:00
rocky
71735ca7ef
Note that CALL_METHOD is used in 3.7+
...
and not just Pypy anymore
2019-07-18 05:26:33 -04:00
x0ret
2e01f42f65
Fixes #278
2019-07-14 01:12:42 +04:30
rocky
cc531cf90a
Fix call to code_deparse call in deparse_code2str
...
Fixes #275
2019-07-05 06:06:14 -04:00
rocky
ecab7d7b09
Python 2.4 unpack rule needs adjusting for exceptions
2019-07-03 20:08:23 -04:00
rocky
e56088b566
Need parens in unpack in 2.4ish
2019-07-03 20:04:45 -04:00
rocky
1c21e1c9d2
Merge branch 'master' into python-2.4
2019-07-03 18:35:11 -04:00
rocky
cd2072b8e3
Merge branch 'master' into python-2.4
2019-06-29 15:57:22 -04:00
x0ret
76eef9a149
Handle if elif else case for 3.5
2019-06-29 06:57:23 -04:00
rocky
c8b945fb56
Handling if elif else more
2019-06-29 06:57:23 -04:00
rocky
887a006849
if/elif for 2.5-2.7
...
Specifically simple_source/03_if_elif.py
2019-06-23 21:29:15 -04:00
rocky
c0e8ce22af
Merge branch 'master' into python-2.4
2019-06-23 17:51:21 -04:00
rocky
9d6d6a355d
Start to reinstate elif's
2019-06-21 07:13:05 -04:00