[New-bugs-announce] [issue41266] Wrong hint when class methods and builtins named same

wyz23x2 report at bugs.python.org
Fri Jul 10 04:49:55 EDT 2020


New submission from wyz23x2 <wyz23x2 at 163.com>:

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, there isn't a list() method in floats, but the hint still pops up and shows the __doc__ for list(iterable=(), /).

----------
assignee: terry.reedy
components: IDLE
messages: 373455
nosy: terry.reedy, wyz23x2
priority: normal
severity: normal
status: open
title: Wrong hint when class methods and builtins named same
versions: Python 3.10, Python 3.7, Python 3.8, Python 3.9

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


More information about the New-bugs-announce mailing list