问题描述
我已经把Pydev开始运行了,几乎都运行得很好。但是,我在docstrings中遇到麻烦。比方说我有一个如下功能:
$ _ code> def _get_logging_statement(self):
返回一个容易读取的字符串,它将日志文件中的项目干净地分隔开
result =\\ \
\\\
#============================================ =
result + =\\\
#%-80s#(self)
result = +\\\
\\\
#============= =============================
return result
假设我已经覆盖了repr来格式化该字符串。
当我将鼠标悬停在这在Eclipse中它显示了完整的docstring的意图,但是在docstring下面是实现。有没有办法仅显示文档列表?
目前看起来不像。在这个问题上Google Googled,最高的结果指向我这个:
目前预计。请输入一个功能请求,使
只显示一个选项。
干杯,
Fabio
查看Pydev错误/功能跟踪器,并没有找到此特定问题。您可能需要在Pydev功能请求跟踪器中输入,并查看是否可以在那里获得帮助。
I've gotten Pydev up and running, and almost all is working well. However I'm having some trouble with docstrings.
Let's say for instance I have a function such as the following:
def _get_logging_statement(self):
"""Returns an easy to read string which separates items in the log file cleanly"""
result = "\n\n#============================================="
result += "\n# %-80s#"(self)
result =+ "\n\n#============================================"
return result
Assume I've overridden repr to format that string properly as well.
When I hover over this in Eclipse it's showing me the full docstring as intended, however below the docstring is the implementation. Is there a way to show only the docstring?
Doesn't look like it currently. Googled around for this issue and the top result pointed me to this Pydev-users post:
It's currently expected. Please enter a feature request to make showing just the docstring an option.
Cheers,
Fabio
Looked around the Pydev bug/feature tracker and didn't find this specific issue entered. You might want to enter it in the Pydev feature request tracker and see if you can get help there.
这篇关于Python DocStrings& Pydev的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!