On 10 Apr 2023, at 02:18, Jonathan Crall wrote:There's no question that there are lots of ways you can work around the issue (I think the `if 1:` method is the easiest and most portable, but it still is boilerplate which can be confusing if you don't know why it's there). The question is: would e
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 n
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__
Out[*7