[英]Go to definition in VS code doesn't show the body of a function
When I right click on a function and then select "Go to definition" there shows up a module with that function, but it only shows the parameters which have to be passed to it, and I can't see anything about the body of the function.当我右键单击一个函数然后选择“转到定义”时,会显示一个带有该函数的模块,但它只显示必须传递给它的参数,而我看不到任何关于功能。
Here is what's shown when I went to the definition of itertools.dropwhile
:这是我转到itertools.dropwhile
的定义时显示的内容:
正如评论中提到的,VSCode 只能向您显示它可以访问的源代码,并且许多 Python 内置函数和 stdlib(包括itertools
模块)是在编译后的 C 中实现的——没有源代码可以向您展示。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.