On Mon, Apr 10, 2023 at 12:39 PM Jeremiah Paige <ucod...@gmail.com> 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__

Out[*7*]: '_Helper'


One of the tricks with Python is that not all Callables are functions --
even if they appear to be.

Why do you want a __qualname__ for help?

-CHB


On Fri, Apr 7, 2023 at 7:46 PM Samuel Muldoon <muldoonsam...@gmail.com>
> 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"
>>
>> _______________________________________________
>> Python-ideas mailing list -- python-ideas@python.org
>> To unsubscribe send an email to python-ideas-le...@python.org
>> https://mail.python.org/mailman3/lists/python-ideas.python.org/
>> Message archived at
>> https://mail.python.org/archives/list/python-ideas@python.org/message/PKBVAC4M2LGIB55XT4WJPVOFFZGXJHHP/
>> Code of Conduct: http://python.org/psf/codeofconduct/
>>
> _______________________________________________
> Python-ideas mailing list -- python-ideas@python.org
> To unsubscribe send an email to python-ideas-le...@python.org
> https://mail.python.org/mailman3/lists/python-ideas.python.org/
> Message archived at
> https://mail.python.org/archives/list/python-ideas@python.org/message/RJSQTN6DK5GUHTYP2CSZV7FH45IHUC6X/
> Code of Conduct: http://python.org/psf/codeofconduct/
>


-- 
Christopher Barker, PhD (Chris)

Python Language Consulting
  - Teaching
  - Scientific Software Development
  - Desktop GUI and Web Development
  - wxPython, numpy, scipy, Cython
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/EWZWXWRDY4UADZFX7ZZSDWJ3BH3HHYXV/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to