mirror of
https://github.com/zrax/pycdc.git
synced 2026-06-23 11:34:07 +00:00
* Modify .gitignore * Added support for SWAP and WITH_EXCEPT_START, WITH_EXCEPT_START is simply added on top of SETUP_WITH_A so that it works properly. * Resolve the warning about comparing size_t and int. * Revert "Resolve the warning about comparing size_t and int." This reverts commit54dfe36629. * Reapply "Resolve the warning about comparing size_t and int." This reverts commitd21d1681ed. * Modify decompyle_test.sh * Modify .gitignore * Fix the logic error by placing the assignment inside the tuple * Re-adding test files * Fixing redundant brackets * Add support for swap bytecode and simple WITH_EXCEPT_START bytecode support. * Clean up some formatting issues --------- Co-authored-by: Michael Hansen <zrax0111@gmail.com>
12 lines
220 B
Python
12 lines
220 B
Python
def SWAP():
|
|
my_array = [
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6,
|
|
8]
|
|
i = 1
|
|
j = 3
|
|
my_array[i], my_array[j], my_array[2] = my_array[j], my_array[i], my_array[4]
|