8000 Confusing output from `help(math.pi)` · Issue #104042 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content
Confusing output from help(math.pi) #104042
Closed as not planned
Closed as not planned
@mfriedenthal

Description

@mfriedenthal

Documentation

Both print(math.pi.__doc__) and print(help(math.pi)) are returning the wrong documentation.

(A clear and concise description of the issue.)
image

This code was executed in Thonny 4.02, Python version 3.10.9.

**Convert a string or number to a floating point number, if possible.
Help on float object:

class float(object)
| float(x=0, /)
|
| Convert a string or number to a floating point number, if possible.**

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibPython modules in the Lib dir

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0