Skip to content

Provide access to the __STDC_IEC_559__ macro #138580

@skirpichev

Description

@skirpichev

Feature or enhancement

Proposal:

This e.g. can allow us filter out some tests on systems, which don't conform to the C Annex F. Example: #138573.

I'm not sure where to put this stuff. In order of my preference:

  1. New boolean variable in the sys module?
  2. sys.float_info field? Though, sphinx docs says "The values correspond to the various floating-point constants defined in the standard header file float.h for the ‘C’ programming language".
  3. in the math module?

Edit:

  • sysconfig variable as another place

Has this already been discussed elsewhere?

This is a minor feature, which does not need previous discussion elsewhere

Links to previous discussion of this feature:

No response

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    interpreter-core(Objects, Python, Grammar, and Parser dirs)type-featureA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions