Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • pypy pypy
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 668
    • Issues 668
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 14
    • Merge requests 14
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • PyPy
  • pypypypy
  • Issues
  • #2822

Closed
Open
Created May 04, 2018 by Bitbucket Importer@bitbucket_importerMaintainer

Py_IS_NAN, Py_IS_FINITE, Py_IS_INFINITY missing

Created originally on Bitbucket by Hrvoje Nikšić

Some C extensions use Py_IS_NAN, Py_IS_FINITE, and Py_IS_INFINITY as portable means to access those properties across platforms supported by Python.

It is fairly easy to work around the lack of these macros, as modern C and C++ provide equivalent functionality in the standard library. Still, Python/C extensions using them will not compile out of the box under PyPy, so I am reporting this as a minor issue.

A possible fix might be simply to synchronize pymath.h with the latest CPython incarnation. The PyPy version appears to be imported from an earlier CPython source that only contained Py_NAN, while the latest one also contains the above mentioned macros, and also Py_OVERFLOWED, Py_NAN, Py_HUGE_VAL, Py_MATH_E, Py_MATH_El, Py_MATH_PI, and Py_MATH_PIl.

Attachments: pypy-pymath

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking