Features
- Rename symbol names, includes variables, functions, imports, classes, arguments,
class private methods. The name replacer avoids a 1:1 mapping of cleartext names
to obfuscated names, the same name may be converted to several different names
within different scopes.
- Remove documentation strings.
- Remove comments.
- Outputs Python source code for maximum flexibility.
Python source code can easily to be used in all available Python interpreters such as
Jython and IronPython.
- Currently only Python 3.x source code are supported.
Unsupported python language features
Functions that access runtime namespace (
exec(),
dir(),
locals(),
globals()
) may go wrong because of accessing objects that has been renamed.
About module level names
Every name except the names listed in module variable __all__
are all
considered private and will be renamed.
If __all__
is not defined, the set of private names includes all names
found in the module’s namespace which begin with underscore character ('_
').
About rename imports option
If __all__
is defined, imported names not in __all__
list will be
renamed regardless of this option.
It's safe to rename function parameters?
If you open options for rename parameters, you need to make sure that do not use them
as keyword arguments in function call.
Offline version
Buy command line version
::...
免责声明:
当前网页内容, 由
大妈 ZoomQuiet
使用工具:
ScrapBook :: Firefox Extension
人工从互联网中收集并分享;
内容版权归原作者所有;
本人对内容的有效性/合法性不承担任何强制性责任.
若有不妥, 欢迎评注提醒:
或是邮件反馈可也:
askdama[AT]googlegroups.com
订阅 substack 体验古早写作:
点击注册~> 获得
100$ 体验券:
关注公众号, 持续获得相关各种嗯哼:
自怼圈/年度番新
关于 ~ DebugUself with DAMA ;-)
粤ICP备18025058号-1
公安备案号:
44049002000656
...::