python - Python : How to easily track the module/function definition in big package
问题描述
I'm new in coding. Let say i got a big python package contains many files and folder structures (contains many module). If i open any random file and found custom functions/modules and want to know what their jobs and purposes. For simple example i found this :
value = grabData(var)
i want to track this grabdata() , what the definition is or where it's located etc. But sometimes this kind of functions is located on other files (via import). What is the easiest way to track them. Tracking backward using 'import' statement seems not efficient. Any tips ?
解决方案
Consider using a Python integrated development environment in your development workflow. IDEs often include features such as Go To Declaration
or Find Usages
that are accessible simply by right-clicking on the symbol you are looking for.
For example, here is how to Find Usages
of a symbol in the PyCharm IDE: link to PyCharm docs.
You can find a list of Python IDEs to install on the Python community Wiki.
推荐阅读
- wpf - SkiaSharp 可以在 WPF 应用程序中使用吗?
- xaml - Xamarin 在调试启动时崩溃:尝试调用虚拟方法
- angular - Angular Material SideNav - 隐藏在移动设备上的铁路模式
- c# - 在 Wix 安装期间 C# 自定义操作无法找到 appsettings.json 文件
- c# - 调用 InitializeComponent() 后 C# 自定义控件的属性未初始化?
- github - 如何为我的 Github 操作找到正确的入站规则以部署在我的 AWS EC2 服务器上?
- swift - 为什么我的 collada DAE 角色在 Xcode 上是绿色的?
- c# - Unity 3D:协程武器动画不会多次执行
- python - PIL 的 Image.fromarray 函数()让我很困惑
- r - 是否可以将参考列的值返回到 r 中的多个列