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

2020-07-11 Thread E. Paine
E. Paine 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`

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

2020-07-10 Thread wyz23x2
New submission from wyz23x2 : There is a function hex(number, /), and float objects have a method hex(). When something like 1.3.hex( is typed, the yellow box's first line contains hex(number, /). But the method is actually hex(), no arguments. It confuses users. And when 1.3.list( is typed, t