View Issue Details

IDProjectCategoryView StatusLast Update
0000488FreeCADBugpublic2011-11-21 13:29
ReporterzapplAssigned To 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version0.11 
Target VersionFixed in Version0.12 
Summary0000488: python console: buggy CallTips completion for members, starting with underscore ('_')
DescriptionThere's a bug in the CallTips-completion for selecting members that start with an underscore (e.g. __doc__).
For reproducing this bug, try the following example:
1) after importing sys, type: sys._
   note: the CallTips-window pops up at '.', but input the '_' anyways
2) select member __doc__, using Up/Down keys
3) commit the selection by pressing enter
This results in the following string at the input line:
>>> sys.__doc___
               ^- one '_' too many!
So pressing enter afterwards results in:
AttributeError: 'module' object has no attribute '__doc___'
Additional InformationThis problem still exists in HEAD@5151.
So I tracked this bug down to file CallTips.cpp.
The appended patch should fix the issue.
TagsNo tags attached.

Activities

2011-11-21 11:34

 

pyconsole_underscore.patch (Attachment missing)

wmayer

2011-11-21 13:29

administrator   ~0001339

Thanks for sending the patch. It is accepted and committed in rev. 5152.

Issue History

Date Modified Username Field Change
2011-11-21 11:34 zappl New Issue
2011-11-21 11:34 zappl File Added: pyconsole_underscore.patch
2011-11-21 13:29 wmayer Note Added: 0001339
2011-11-21 13:29 wmayer Status new => closed
2011-11-21 13:29 wmayer Resolution open => fixed
2011-11-21 13:29 wmayer Fixed in Version => 0.12