Logo
Explore Help
Register Sign In
Lil-Ran/Pyarmor-Static-Unpack-1shot
1
0
Fork 0
You've already forked Pyarmor-Static-Unpack-1shot
Code Issues Pull Requests Releases Wiki Activity
Files
e892da34cf73e222942b474b90b4ecf007016453
Pyarmor-Static-Unpack-1shot/pycdc/tests/tokenized/swap.txt

7 lines
207 B
Plaintext
Raw Normal View History

Add support for `swap` bytecode and simple `WITH_EXCEPT_START` bytecode support. (#488) * 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 commit 54dfe36629855ca557277572d307dacaf6a64fe9. * Reapply "Resolve the warning about comparing size_t and int." This reverts commit d21d1681ed6496856ea65151e5fd798f0a718416. * 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>
2024-06-24 02:59:30 +08:00
def SWAP ( ) : <EOL>
<INDENT>
my_array = [ 1 , 2 , 3 , 4 , 5 , 6 , 8 ] <EOL>
i = 1 <EOL>
j = 3 <EOL>
my_array [ i ] , my_array [ j ] , my_array [ 2 ] = my_array [ j ] , my_array [ i ] , my_array [ 4 ] <EOL>
Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 41ms Template: 4ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API