[issue21654] IDLE call tips emitting future warnings about ElementTree objects

2014-06-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: I verified that is used in 2.7 for both unbound and bound methods of both old- and new-style classes. In 3.0, old-style classes and unbound methods were removed. 2.x types seem not to have __bool__, so I suspect that the condition code special cases numbers a

[issue21654] IDLE call tips emitting future warnings about ElementTree objects

2014-06-05 Thread R. David Murray
R. David Murray added the comment: Do either of you know what that warning is about? I'm getting it in some code that I'm running successfully in both python2.7 and python3.4, and python3.4 doesn't give me a warning. -- nosy: +r.david.murray ___ Py

[issue21654] IDLE call tips emitting future warnings about ElementTree objects

2014-06-04 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue21654] IDLE call tips emitting future warnings about ElementTree objects

2014-06-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: This is 2.7 only. Warnings may have been expanded a bit in 2.7.7. I know there are plans to widen net further in 2.7.8. We can leave this open until you are convinced it works or discover otherwise. -- ___ Python tr

[issue21654] IDLE call tips emitting future warnings about ElementTree objects

2014-06-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset 09b33fc96a50 by Terry Jan Reedy in branch '2.7': Issue #21654: Fix interaction with warnings. Patch by Raymond Hettinger. http://hg.python.org/cpython/rev/09b33fc96a50 -- nosy: +python-dev ___ Python trac

[issue21654] IDLE call tips emitting future warnings about ElementTree objects

2014-06-03 Thread Raymond Hettinger
Raymond Hettinger added the comment: I've checked both the recently released 2.7.7 and the current 27 head on the hg repo. They both have the error. A suggested patch is attached. -- ___ Python tracker

[issue21654] IDLE call tips emitting future warnings about ElementTree objects

2014-06-03 Thread Raymond Hettinger
Changes by Raymond Hettinger : Added file: http://bugs.python.org/file35480/fix_calltips.py ___ Python tracker ___ ___ Python-bugs-list mailin

[issue21654] IDLE call tips emitting future warnings about ElementTree objects

2014-06-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: Line 1.20 in the correct link. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue21654] IDLE call tips emitting future warnings about ElementTree objects

2014-06-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: I guess rev #s are different on different systems. Try d55d1cbf5f9a or revd55d1cbf5f9a -- ___ Python tracker ___ __

[issue21654] IDLE call tips emitting future warnings about ElementTree objects

2014-06-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: According to my local copy of the repository, rev88617 2014 Jan 21 removed what I believe was the only line with 'if ob.im_self'. The change may have been in 2.7.5, certainly 2.7.6. I cannot find it in the current code. Please recheck your version; this may ha

[issue21654] IDLE call tips emitting future warnings about ElementTree objects

2014-06-03 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- keywords: +easy nosy: +terry.reedy stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list

[issue21654] IDLE call tips emitting future warnings about ElementTree objects

2014-06-03 Thread Raymond Hettinger
New submission from Raymond Hettinger: 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", lin