Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
gh-133143: Make information about the interpreter ABI more accessible#137476
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes from1 commit
2e3e54a2ddafa4cdc50c36fb25a34c3d83d820e002918521f786365181d75fc41027a356726ab94b7f406887d6c7ced683cc5ae8c5c18587d025d17a08937144ce7c78f57f1777f7b9b312bff1ed7b6d915f065a151eb4c9f5ffae128b1500506533File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -38,6 +38,9 @@ always available. Unless explicitly noted otherwise, all variables are read-only | ||
| *debug* is a boolean indicating whether the interpreter was built in | ||
| :ref:`debug mode <debug-build>`, i.e. with the :option:`--with-pydebug` option. | ||
| *byteorder* is a string indicating the native byte order, either ``'big'`` or | ||
vstinner marked this conversation as resolved. OutdatedShow resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
| ``'little'``. This is the same as the :data:`byteorder` attribute. | ||
zklaus marked this conversation as resolved. OutdatedShow resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
| .. versionadded:: next | ||
zklaus marked this conversation as resolved. OutdatedShow resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -3680,6 +3680,20 @@ make_abi_info(void) | ||
| goto error; | ||
| } | ||
| #if PY_BIG_ENDIAN | ||
| value = PyUnicode_FromString("big"); | ||
| #else | ||
| value = PyUnicode_FromString("little"); | ||
| #endif | ||
| if (value == NULL) { | ||
| goto error; | ||
| } | ||
| res = PyDict_SetItemString(abi_info, "byteorder", value); | ||
| if (res < 0) { | ||
| goto error; | ||
| } | ||
| Py_DECREF(value); | ||
zklaus marked this conversation as resolved. OutdatedShow resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
| ns = _PyNamespace_New(abi_info); | ||
| Py_DECREF(abi_info); | ||
| return ns; | ||