x0ret
2e01f42f65
Fixes #278
2019-07-14 01:12:42 +04:30
rocky
44a4aab0a7
Use black to reformat some files
2019-07-04 09:56:50 -04:00
rocky
f425db33b7
except_cond3 needs to be in 2.x
2019-07-03 19:16:09 -04:00
rocky
e55a0410c9
weak-verify -> syntax-verify. More bytecode tests
2019-07-01 10:23:43 -04:00
R. Bernstein
0fe8961418
Merge pull request #269 from rocky/if-elif-else-more
...
If elif else more
2019-07-01 09:52:11 -04:00
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
999f1fb0f9
Mostly x0ret's while(1)/if fixes ..
...
plus a potential test
2019-06-29 07:01:45 -04:00
rocky
0dc19a8fdd
Correct 3.4 "yield from" semantic action bug
2019-06-29 04:59:03 -04:00
rocky
e2d7f01298
Handle 2-arg asserts in 3.6+ish
...
Changed files have also been reformatted via the blacken formatter
2019-06-18 22:09:16 -04:00
rocky
58c8fe5a66
Oops - forgot to add the test source
2019-06-11 16:09:04 -04:00
rocky
aea1adeb85
Reinstate test
2019-06-11 16:04:29 -04:00
rocky
76dcaf9bf0
Tweaks to x0ret's anotation type handling
...
- match AST names a little better: AnnAssign -> ann_assign...
- localize Annotation type grammar change only when we have it
- Add reduce rule to combine assignment and annotate declaration
- Add annotation-type test from Python 3.6
- Docuemnt what's up with annotation types
2019-06-11 11:02:25 -04:00
rocky
24ba5d7f40
One more LOAD_CONST->LOAD_STR remnant and...
...
We're good to go!
All function signatures seem to be working! YAY!
Credit goes to x0ret
2019-06-09 18:20:05 -04:00
rocky
9ab086b207
Add more x0ret tests
2019-06-09 15:19:01 -04:00
rocky
c8fc6a704c
LOAD_CONST->LOAD_STR bugs and 3.4 kwargsonly
2019-06-09 02:18:21 -04:00
rocky
86fd5dbf7a
3.3-3.4 pos kwargs ordering
2019-06-08 18:40:50 -04:00
rocky
117b4ff4f1
Add kwonly parsing.
...
* annotation parsing for kwonly args is missing.
* Start filling out runnable tests. More work is needed on tests.
* refresh incorrect bytecode_3.3_run/15_assert.pyc
2019-06-08 15:29:18 -04:00
rocky
9bae73679f
Reinstate 3.6. docstring test
2019-06-07 12:32:21 -04:00
rocky
ceebe9ab60
Add x0ret's annotation test on 3.6
2019-06-07 04:56:03 -04:00
x0ret
c7b20edba0
add annotations type test cases
2019-06-06 19:14:03 +04:30
rocky
af209dc142
Bug in 3.5+ generator detection...
...
Also bug in 3.5 code detection for async attribute
2019-06-05 19:08:21 -04:00
x0ret
39c12704a8
fix unicode docstring again, handling unicode string in py2, fix docstring indentation
2019-05-28 15:11:44 +04:30
rocky
3b3fc09b60
Reinstate more docstring tests
...
But 3.{6,7} are stil broken
2019-05-27 20:59:29 -04:00
rocky
f7697ccd7b
Some docstring bugs fixed, some remain...
...
I had broken escaping the tail quote by inadvertently switching from """
by default to '''.
Some additional tests have been added to 00_docstring.py for
this. However...
Unicode decoding is still broken. For now I've added errors="ignore" to
.decode("utf-8", ...) until a better fix is found. Sigh.
2019-05-27 18:01:08 -04:00
rocky
792ef5b5b8
Simplfy - TODO fix unicode in docstrings
2019-05-24 11:03:44 -04:00
rocky
47ed0795b2
3.x docsting escaping works differently?
2019-05-24 09:53:56 -04:00
rocky
cccf33573b
A runnable docstring test...
...
TODO: fix up the code! so this doesn't throw an assert error!
2019-05-24 02:29:23 -04:00
rocky
9ed4326f7e
Administrivia
2019-05-21 08:29:03 -04:00
rocky
3abe8d11d3
3.7 handling of 4-level attribute import
...
Fixes #239
2019-05-14 12:09:38 -04:00
x0ret
3d732db3cc
fix chained compare parse error
2019-05-13 19:57:24 +04:30
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
78ca6a0c1f
Add 3.7 testcase for ex_kw call
2019-05-11 19:37:44 -04:00
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
b57ca392a2
2.7 confusion around "and" vs comprehension "if"
...
Fixes #225
2019-05-08 16:27:41 -04:00
rocky
b05500dd49
More 3.6+ fstring bugs
2019-05-08 08:57:30 -04:00
rocky
8909fe8d37
Merge branch 'master' of github.com:rocky/python-uncompyle6
2019-05-08 06:04:11 -04:00
rocky
733a44e22f
Revise and hopefully improve 3.6+ fstring handling
2019-05-08 06:03:39 -04:00
rocky
f2f17740ee
2.7 if_expr_true restriction ...
...
condition_true -> if_expr_true
condition_lambda -> if_expr_lambda
These correspond to the Python AST names better.
2019-05-05 16:09:10 -04:00
rocky
393e5c9303
IfExp precidence handling in 2.6...
...
2.7 still has a bug
2019-05-05 09:48:20 -04:00
rocky
8e9ce0be31
3.7: if <expr> and not <expr> else <expr>
2019-05-04 22:14:07 -04:00
rocky
0007abf827
Fix 3.6+ format string interpolation
2019-05-03 19:00:25 -04:00
rocky
2813e2212f
tidy "not" precedence.
2019-05-02 11:44:20 -04:00
rocky
293e7b0367
store_subscript precedence fix and...
...
Allow format specifier "%p" to indicate a nonterminal name,
like "%c" allows.
store_subscr -> store_subscript to match Python AST a little closer.
2019-05-02 06:43:53 -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
a981db884c
Pypy 3.6 tolerance
2019-04-30 05:12:42 -04:00