简体   繁体   English

为什么“转到定义”在Spyder中不起作用?

[英]Why is 'go to definition' not working in Spyder?

I have installed Python using anaconda and I am using the Spyder editor on Mac. 我已经使用anaconda安装了Python,并且正在Mac上使用Spyder编辑器。 I wanna be able to access the function definitions when I right click on a python built in function and click go to definition. 当我右键单击内置函数的python并单击转到定义时,我希望能够访问函数定义。 Right now I get nothing.How do I do this? 现在我什么也没得到,我该怎么办? Am I missing the libraries or there is some settings? 我是否缺少库或有一些设置? Thanks! 谢谢!

when I right click on a python built in function 当我右键单击内置函数的python时

Those are written in C. Spyder has no Python source code to jump to. 这些都是用C编写的。Spyder没有Python源代码可跳转。 It would need access to the C source code and a way to automatically determine where in the C the relevant implementation is, and I don't think it has either of those things. 它需要访问C源代码,并需要一种方法来自动确定相关实现在C中的位置,而且我认为它没有任何一个。

You'll have to find them in the C source code repository, probably in Python/bltinmodule.c or under Objects 您必须在C源代码存储库中找到它们,可能在Python/bltinmodule.c或“ Objects下找到它们

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM