简体   繁体   English

从ipython选项卡完成中的属性中区分方法

[英]Distinguish methods from attributes in ipython tab completion

Is it possible to configure IPython such that the tab completion allows me to visually distinguish between attributes and methods of an object? 是否可以配置IPython,使制表符补全允许我在视觉上区分对象的属性和方法? Probably the nicest way do this is by color, similar to the fancycompleter module (can this module be tied into ipython?). 可能最好的方法是通过颜色进行显示,类似于fancycompleter模块(可以将此模块绑定到ipython吗?)。 Another way would be to add a star or parentheses to callables. 另一种方法是在可调用对象上添加星号或括号。

No, the messaging protocol doesn't allow that. 不,消息协议不允许这样做。 But there is a proposal for completion machinery improvement , you can take part of the discussion and think we us of what would be necessary to implement that. 但是有一个完善完井机械的建议,您可以参加讨论,并认为我们认为实现此目标所必需的。

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

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