New submission from wyz23x2 <wyz2...@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 <rep...@bugs.python.org> <https://bugs.python.org/issue41266> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com