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
a267bfb47fe4d5ea3f6eafcc2fa808ec254cce46
Pyarmor-Static-Unpack-1shot/tests/tokenized/load_classderef.txt

7 lines
86 B
Plaintext
Raw Normal View History

Added support for `LOAD_CLASSDEREF` The opcode itself is exactly the same as `LOAD_DEREF` 1) The problem is when the class is a closure (e.g. defined inside a function body) then there is a `BUILD_TUPLE` after the `LOAD_BUILD_CLASS` which makes problems. 2) There is another problem which makes the `code->name()` of the class to be part of the function locals. (e.g. `func.<locals>.my_class` instead of `my_class`) which makes the check `srcString->isEqual(code->name().cast<PycObject>())` be invalid.
2024-02-26 16:52:31 +02:00
def func ( ) : <EOL>
<INDENT>
x = 1 <EOL>
class my_class : <EOL>
<INDENT>
y = x <EOL>
Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 969ms Template: 6ms
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