[issue41266] Wrong hint when class methods and builtins named same

E. Paine report at bugs.python.org
Sat Jul 11 13:11:59 EDT 2020


E. Paine <paineelisha at gmail.com> added the comment:

Both of the following cases give the correct popup help information:

float.hex(

And:

t = type("test_hex", (), {"hex": lambda nothing: None})
t.hex(

The reason your case fails is because IDLE doesn't evaluate `1.3` to a float and does indeed use the normal `hex` method help (as you established with your `list` test).

----------
nosy: +epaine

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41266>
_______________________________________


More information about the Python-bugs-list mailing list