rocky
9e0c65881d
Sync with master
2017-10-10 22:52:07 -04:00
rocky
c796d6a799
Merge commit '1d7a3c6444eab5a02d899f789f2a57cfdcbc5a84' into python-2.4
2017-10-10 22:50:28 -04:00
rocky
d4f6cec3d0
Sync with master
2017-10-05 11:17:49 -04:00
rocky
eee751e22a
Go over table-semantics description yet again
2017-10-03 05:44:55 -04:00
rocky
0654aed6c8
Get ready for release 2.12.0
2017-09-25 20:08:50 -04:00
rocky
aadea7224d
Unit test for format-specifiers
...
And in the process we catch some small bugs
2017-09-21 11:25:51 -04:00
rocky
1e858efafd
Tidy pysource and fragments
2017-09-20 19:08:41 -04:00
rocky
da7421da1c
Tidy pysource and fragments a little more
2017-09-20 19:02:56 -04:00
rocky
147b6e1cfe
Small fixes
...
test_pyenvlib.py: it is sys.exit(), not exit()
pysource.py: reinstate nod type of async_func_call
2017-09-20 11:32:42 -04:00
rocky
7725b8e7de
small fixes...
...
test_pythonlib.py: it is sys.exit not exit
pysource.py: restore node type on async_call function
2017-09-20 11:30:50 -04:00
rocky
d7b12f4da1
More small doc changes
2017-09-20 02:49:14 -04:00
rocky
62ddbe320d
Start pysource unit test
2017-09-20 01:15:37 -04:00
rocky
c7b9e54e59
Update Table-driven info...
...
Start a pysource unit test.
2017-09-20 00:06:50 -04:00
rocky
a694601264
emgine -> template_engine
2017-09-17 12:03:49 -04:00
rocky
3003070acb
engine -> template_engine
2017-09-17 11:56:51 -04:00
rocky
f017acce21
More semantic action cleanup
2017-09-10 02:56:47 -04:00
rocky
6888553773
Merge branch 'master' into python-2.4
2017-06-25 18:56:31 -04:00
rocky
9c072a6a42
3.x funciton and annotation bug fixes
2017-06-25 18:46:03 -04:00
rocky
af3d46b35c
Use xdis' instruction offset calculation fns..
...
next_offset, op_size, has_argument
2017-06-24 06:43:04 -04:00
rocky
e1bc0c5cd6
Python 2 sometimes need str->uncode in writing?
2017-06-19 08:02:59 -04:00
rocky
5a519ed36a
Allow deparsed out to be str as well as unicode
2017-06-19 07:55:09 -04:00
rocky
b7d8cbfaf5
Merge branch 'master' into python-2.4
2017-06-18 15:40:40 -04:00
rocky
e9588e56e2
Disable "continue" removal in pysource.py
...
"continue" could be the only statement and then removing it
might lead to a dangling "else".
2017-06-08 04:35:06 -04:00
rocky
eb92418224
Python 3.5 *args with kwargs handling.
...
3.5 is a snowflake here. Thank you, Python.
Fully fixes Issue 95.
3.6 is broken on this source, but for a *different* reason. Sigh.
2017-06-04 17:53:51 -04:00
rocky
61810172d1
Merge branch 'master' into python-2.4
2017-06-03 05:50:42 -04:00
rocky
9a3e11a957
Fragment bugs
...
fragment.py:
* deparse_code_aorund_offset: was sometimes returning the wrong type
* capture function name offset
* lint imports
pysource.py: use a clearer variable name
2017-06-03 05:18:40 -04:00
rocky
d4dab54c7b
Merge branch 'master' into python-2.4
2017-05-30 02:18:57 -04:00
rocky
394120bb1a
Fix up 3.6 unmapexpr
2017-05-23 21:10:14 -04:00
rocky
7257ba41c5
Fix up retreiving "async" property on 3.6
2017-05-23 21:02:06 -04:00
rocky
9eee4eccd7
Fix bug in a 3.6 class name.
2017-05-23 19:00:06 -04:00
rocky
cf3c07e047
Add fuzzy offset deparse lookup
2017-05-23 06:10:31 -04:00
rocky
5ebb731c04
Worse results. Revert some of the last changes
2017-05-20 07:50:41 -04:00
rocky
d3794ec9af
More explicit about 3.5 UNMAP_PACK
...
Have to reduce 3.5 bytecode testing for now, code is more solid.
2017-05-20 07:40:59 -04:00
rocky
2a47f0309f
Fix EXTENDED_ARG for long lists, sets, maps
2017-05-19 15:36:53 -04:00
rocky
2ad40a5648
Allow LOAD_CONST EXTENDED_ARG
2017-05-16 00:22:48 -04:00
rocky
b1e32c7cc5
towards fixing a 3.5.CALL_FUNCTONI_VAR bug
2017-05-14 12:23:47 -04:00
rocky
a32c0e68ef
Bang on 3.6 MAKE_FUNCTION a bit more
...
parse3.py, parse36.py: adding return_closure rule tags what's going on
with this rule
pysource.py: start changing semantic rules to support code changed by
new make_function semantics
README.rst: typo
2017-05-13 10:06:43 -04:00
Daniel Bradburn
93437152a2
Fixed bug in compiling double star arg only function calls where the closing parenthesis would be missed
2017-05-10 22:52:49 +02:00
Daniel Bradburn
ca1679e636
Added support for support for Python 3.6 CALL_FUNCTION_KW
2017-05-10 21:49:42 +02:00
rocky
8d084ed358
pysource guard and another appveyor test
2017-05-08 07:03:10 -04:00
rocky
449d74af51
More guarded CONTINUE deletion
2017-05-07 13:30:26 -04:00
rocky
f8a40c1949
Reduce spurious "continue" statements
2017-05-07 13:15:26 -04:00
rocky
d6c45979ba
Merge branch 'master' into python-2.4
2017-05-06 07:16:39 -04:00
rocky
246495febd
Bang more on BUIlD_MAP_UNPACK
...
there are still bugs. Note:
{**{'x': 1}, **{'y': 2}} and
{{'x': 1}, **{'y': 2}}
generate the same Python 3.5+ bytecode.
2017-05-02 21:55:41 -04:00
rocky
26cd91046e
Remove extra unpack *. Issue #98
2017-05-01 05:26:55 -04:00
rocky
364827a2f2
Handle BUILD_MAP_UNPACK in a build_list
2017-04-29 21:44:52 -04:00
rocky
819458564c
A hacky way to get CALL_FUNCTION_EX_KW to work.
2017-04-27 21:38:30 -04:00
rocky
486f313532
remove debug code
2017-04-26 02:14:28 -04:00
rocky
84fd71b73b
Python 3.6 CALL_FUNCTION_EX first attempt
2017-04-25 07:31:01 -04:00
rocky
87db833f62
Add await expr
...
Fixes #111
2017-04-22 10:39:20 -04:00