Skip to content

Commit

Permalink
Get ready for release 3.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rocky committed May 21, 2022
1 parent 41fa83e commit b2756f1
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/osx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
run: |
python -m pip install --upgrade pip
# Until the next xdis release
pip install git+https://github.com/rocky/python-xdis#egg=xdis
# pip install git+https://github.com/rocky/python-xdis#egg=xdis
pip install -e .
pip install -r requirements-dev.txt
- name: Test decompyle3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
run: |
python -m pip install --upgrade pip
# Until the next xdis release
pip install git+https://github.com/rocky/python-xdis#egg=xdis
# pip install git+https://github.com/rocky/python-xdis#egg=xdis
pip install -e .
pip install -r requirements-dev.txt
- name: Test decompyle3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
run: |
python -m pip install --upgrade pip
# Until the next xdis release
pip install git+https://github.com/rocky/python-xdis#egg=xdis
# pip install git+https://github.com/rocky/python-xdis#egg=xdis
pip install -e .
pip install -r requirements-dev.txt
- name: Test decompyle3
Expand Down
17 changes: 17 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
3.9.0
=====

* Speed up processing long literal collections: dictionary, list, set; we can also handle about 5K of them now
* Improve handling of async comprehensions: async "for"/"forelse", "async with"
* Reorganize semantic actions so that n_actions are separate; likewise for comprehensions and generators
* Improve 3.8 decompilation
* Support decompiling code fragment of comprehensions
* Correct various operator precendence, and show operator precedence in -T/--tree++
* Correct PyPy decompilation, suport pyston-3.8-2.3.3
* Reorganize parsing modules and classes, to support fragment deparsing
* Add `BINARY_MATRIX_MULTPILY` in grammar
* Add psuedo opcode: LOAD_ARG; `JUMP_BACK` -> `JUMP_LOOP`; `MAKE_FUNCTION_8` -> `MAKE_FUNCTION_CLOSURE`
* Numerous bugs fixed, especially comprehension bugs
* Code cleanup
* Black format more files

3.8.0
=====

Expand Down
2 changes: 1 addition & 1 deletion __pkginfo__.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
]
}
ftp_url = None
install_requires = ["click", "spark-parser >= 1.8.9, < 1.9.0", "xdis >= 6.0.3,<6.1.0"]
install_requires = ["click", "spark-parser >= 1.8.9, < 1.9.0", "xdis >= 6.0.4,<6.1.0"]

license = "GPL3"
mailing_list = "[email protected]"
Expand Down
2 changes: 1 addition & 1 deletion decompyle3/bin/decompile_code_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def main(code_format, show_asm, grammar, tree, tree_plus, outfile, files):
"""Decompile all code objects of a certain format."""

version_tuple = sys.version_info[0:2]
if not version_tuple in ((3, 7), (3, 8),):
if version_tuple not in ((3, 7), (3, 8),):
print(
f"Note: {program} can decompile only bytecode from Python 3.10"
f"""\n\tYou have version: {version_tuple_to_str()}."""
Expand Down
2 changes: 1 addition & 1 deletion decompyle3/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# This file is suitable for sourcing inside bash as
# well as importing into Python
# fmt: off
__version__="3.9.0a1" # noqa
__version__="3.9.0" # noqa

0 comments on commit b2756f1

Please sign in to comment.