Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Builtin methods like 'str' and 'int' are changed which cause the error of program #10

Open
DeriZSY opened this issue Jan 25, 2022 · 3 comments

Comments

@DeriZSY
Copy link

DeriZSY commented Jan 25, 2022

Hi, thanks for making this available. I found that some built-in methods for type conversion will be changed during the conversion. for example:

    self.fps = int(25)

is changed to:

    self.fps = l125(25)

what should I do to avoid it?

@HorridModz
Copy link

Hi, thanks for making this available. I found that some built-in methods for type conversion will be changed during the conversion. for example:

    self.fps = int(25)

is changed to:

    self.fps = l125(25)

what should I do to avoid it?

Check if your code still works. It should. In python, setting a variable to a function name will make the variable run the function.
For example:
toint = int
print(toint("8"))
Will do the same thing as:
print(int("8"))

@ghost
Copy link

ghost commented Sep 9, 2022

Hi, thanks for making this available. I found that some built-in methods for type conversion will be changed during the conversion. for example:

    self.fps = int(25)

is changed to:

    self.fps = l125(25)

what should I do to avoid it?

Check if your code still works. It should. In python, setting a variable to a function name will make the variable run the function. For example: toint = int print(toint("8")) Will do the same thing as: print(int("8"))

While a cool workaround, this isn't good in production because it would require a lot of edits if you want to simply obfuscate your code

@none-None1
Copy link

The obfuscator should list built-in names and avoid obfuscating them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants