This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients rhettinger
Date 2014-06-04.01:30:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1401845460.42.0.600793284066.issue21654@psf.upfronthosting.co.za>
In-reply-to
Content
While editing code that uses ElementTree, the call tips code is working in the background and emits warnings to the console:

Warning (from warnings module):
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/idlelib/CallTips.py", line 170
    if ob.im_self:
FutureWarning: The behavior of this method will change in future versions.  Use specific 'len(elem)' or 'elem is not None' test instead.

This appears to be an unfortunate interaction between the call tips code and the objects being call-tipped.  The behavior appears to be new (I had not encountered it prior to 2.7.7).

If possible the call-tip code should test for len(ob.im_self) or somesuch.
History
Date User Action Args
2014-06-04 01:31:00rhettingersetrecipients: + rhettinger
2014-06-04 01:31:00rhettingersetmessageid: <1401845460.42.0.600793284066.issue21654@psf.upfronthosting.co.za>
2014-06-04 01:31:00rhettingerlinkissue21654 messages
2014-06-04 01:30:59rhettingercreate