[Python-ideas] Re: Can we give built-in `help` function a `__qualname__` attribute

2023-04-10 Thread Christopher Barker
On Mon, Apr 10, 2023 at 12:39 PM Jeremiah Paige wrote: > The help function is not a built-in but an instance of a class defined in > _sitebuiltins. > Like other instances, it has neither __qualname__ nor __name__, but its > __class__ does. > indeed: In [*7*]: help.__class__.__qualname__

[Python-ideas] Re: Can we give built-in `help` function a `__qualname__` attribute

2023-04-10 Thread Jeremiah Paige
The help function is not a built-in but an instance of a class defined in _sitebuiltins. Like other instances, it has neither __qualname__ nor __name__, but its __class__ does. On Fri, Apr 7, 2023 at 7:46 PM Samuel Muldoon wrote: > Hi, > > A lot of python's built-in functions have an attribute

[Python-ideas] Re: Can we give built-in `help` function a `__qualname__` attribute

2023-04-08 Thread Michael Foord
On Sat, 8 Apr 2023 at 03:45, Samuel Muldoon wrote: > Hi, > > A lot of python's built-in functions have an attribute named __qualname__. > > However, the built-in `help` function has no __qualname__ attribute. > > In a future version of python can we have: > > help.__qualname__ = "help" > > That