Skip to content

Add primitives for math constants #985

Closed
python/mypy
#15324
@JukkaL

Description

Add primitives for at least commonly used math constants, such as math.pi and math.e. For example, math.pi should be compiled into the float literal 3.141592653589793.

See also #984.

Here's a list of constants we may want to cover:

  • pi
  • e
  • tau
  • inf
  • nan

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions