[issue21654] IDLE call tips emitting future warnings about ElementTree objects
Terry J. Reedy
report at bugs.python.org
Thu Jun 5 22:20:49 CEST 2014
Terry J. Reedy added the comment:
I verified that <type 'instancemethod'> 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 and then checks for len() or == None. I am guessing that instancemethod is specially flagged. But grepping 'furture versions' in 2.7/*.c and *.h got not hits, so I cannot confirm anything. I have no idea where the if/elif/while check are coded.
The important question to me is whether the fix works for you also.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21654>
_______________________________________
More information about the Python-bugs-list
mailing list