Skip to content

Improve builtins.__doc__ #103886

Closed
Closed
@JelleZijlstra

Description

@JelleZijlstra
>>> import builtins
>>> print(builtins.__doc__)
Built-in functions, exceptions, and other objects.

Noteworthy: None is the `nil' object; Ellipsis represents `...' in slices.
>>> 

A few possible improvements:

  • None is not actually in the builtins module, as it's a keyword
  • Ellipsis has more uses than just slices
  • The docstring doesn't explain what "builtins" means. It should say that this module is special in that its namespace is always available, or something along those lines.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation in the Doc dir

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions