FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-138580: add sys.float_info.iec_60559 boolean flag by skirpichev · Pull Request #138811 · python/cpython · GitHub

Repository navigation

Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension .c  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
Prev Previous commit
Next Next commit
+1
  • Loading branch information
skirpichev committed Sep 12, 2025
commit d81b486e50ec0e35274109bc13caee868ca421e8
6 changes: 5 additions & 1 deletion Objects/floatobject.c
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,11 @@ PyFloat_GetInfo(void)
SetDblFlag(DBL_EPSILON);
SetIntFlag(FLT_RADIX);
SetIntFlag(FLT_ROUNDS);
SetFlag(PyBool_FromLong(__STDC_IEC_559__));
#ifdef __STDC_IEC_559__
SetFlag(PyBool_FromLong(1));
#else
SetFlag(PyBool_FromLong(0));
#endif
#undef SetIntFlag
#undef SetDblFlag
#undef SetFlag
Expand Down
Loading

Back | FazBrowse Home | New Git URL