为什么eclipse-python没有魔术重构? [英] why doesn't eclipse-python have magic refactor?

查看:103
本文介绍了为什么eclipse-python没有魔术重构?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Eclipse能够利用编译后的字节码来启用魔术重构功能-重命名方法,向上和向下跟踪类层次结构以及通过方法调用进行跟踪。

Eclipse is able to utilize compiled bytecode to enable "magic refactor" functionality--renaming methods, tracing up and down class hierarchies and tracing through method calls.

什么是否存在技术上的障碍,这使得像Python和Javascript这样的语言更难做到?

What technical barriers exist that make this harder to do for languages like Python and Javascript?

推荐答案

,因此证明了对静态信息的跟踪类似的方法和类层次结构完全可以在python中实现。 PyDev eclipse插件可以做到这一点。 PyLint插件通过假设运行时没有任何时髦的事情,甚至对动态变量之类的东西进行静态分析,也做得很好。

so it turns out that tracing of static information like methods and class hierarchies is perfectly possible in python. PyDev eclipse plugin does it. PyLint plugin attempts to do static analysis even on stuff like dynamic variables by assuming that nothing funky happens at runtime and does a pretty good job.

这篇关于为什么eclipse-python没有魔术重构?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆