◐ Shell
clean mode source ↗

Message 150033 - Python tracker

Message150033

Author roger.serwy
Recipients Roy.Fox, ned.deily, roger.serwy, terry.reedy
Date 2011-12-21.18:37:53
SpamBayes Score 0.00028341555
Marked as misclassified No
Message-id <1324492674.1.0.690916832184.issue12510@psf.upfronthosting.co.za>
In-reply-to
Content
The attached patch fixes the bug. The bug occurs in "get_entity" which is used to get the object. Then "get_argspec" determines the calltip text. 

The calltip can be prevented for strings by having get_argspec check if the object has a "__call__" method. I opted for adding "not callable" to the calltip initially for testing, but setting argspec="" will prevent the calltip altogether.
History
Date User Action Args
2011-12-21 18:37:54roger.serwysetrecipients: + roger.serwy, terry.reedy, ned.deily, Roy.Fox
2011-12-21 18:37:54roger.serwysetmessageid: <1324492674.1.0.690916832184.issue12510@psf.upfronthosting.co.za>
2011-12-21 18:37:53roger.serwylinkissue12510 messages
2011-12-21 18:37:53roger.serwycreate