简体   繁体   中英

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 :

转到定义

正如评论中提到的,VSCode 只能向您显示它可以访问的源代码,并且许多 Python 内置函数和 stdlib(包括itertools模块)是在编译后的 C 中实现的——没有源代码可以向您展示。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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