python-obfuscator
python-obfuscator copied to clipboard
Builtin methods like 'str' and 'int' are changed which cause the error of program
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?
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"))
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 = intprint(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
The obfuscator should list built-in names and avoid obfuscating them.