Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Merged
encukou merged 28 commits intopython:mainfromzklaus:add-sys.abi_info
Sep 8, 2025
Merged
Show file tree
Hide file tree
Changes from1 commit
Commits
Show all changes
28 commits
Select commitHold shift + click to select a range
2e3e54a
Add sys.abi_info
zklausAug 1, 2025
2ddafa4
📜🤖 Added by blurb_it.
blurb-it[bot]Aug 6, 2025
cdc50c3
Simplify pointer_bits handling
zklausAug 7, 2025
6fb25a3
Remove explicit C API function
zklausAug 7, 2025
4c3d83d
Make abi_info object a simple namespace with no explicit C API
zklausAug 7, 2025
820e002
Cleanup scaffolding
zklausAug 7, 2025
918521f
Fix make_abi_info to be static
zklausAug 7, 2025
7863651
Add test
zklausAug 12, 2025
81d75fc
Fix test
zklausAug 12, 2025
41027a3
Add link
zklausAug 14, 2025
56726ab
Rename attributes
zklausAug 14, 2025
94b7f40
Add better attribute specification to docs
zklausAug 21, 2025
6887d6c
Base `debug` on Py_REF_DEBUG
zklausAug 21, 2025
7ced683
Add byteorder
zklausAug 21, 2025
cc5ae8c
Fix test
zklausAug 21, 2025
5c18587
Improve error message in test
zklausAug 21, 2025
d025d17
Apply suggestions from code review
zklausSep 2, 2025
a089371
Revert "Base `debug` on Py_REF_DEBUG"
zklausSep 2, 2025
44ce7c7
Add whatsnew entry for improved sys module
zklausSep 2, 2025
8f57f17
Update Python/sysmodule.c
zklausSep 3, 2025
77f7b9b
Integrate suggestions from Adam Turner
zklausSep 3, 2025
312bff1
Add Windows configuration equivalents
zklausSep 4, 2025
ed7b6d9
Fix rst lint
zklausSep 4, 2025
15f065a
Use Sphinx markup for attributes
encukouSep 5, 2025
151eb4c
Merge pull request #3 from encukou/add-sys.abi_info
zklausSep 8, 2025
9f5ffae
Merge branch 'main' into add-sys.abi_info
AA-TurnerSep 8, 2025
128b150
Don't use ReST in a C comment
encukouSep 8, 2025
0506533
docs rephrasing
AA-TurnerSep 8, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
docs rephrasing
  • Loading branch information
@AA-Turner
AA-Turner committedSep 8, 2025
commit050653395572562345ac3de5043a9bfda41230be
24 changes: 13 additions & 11 deletionsDoc/library/sys.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -29,28 +29,30 @@ always available. Unless explicitly noted otherwise, all variables are read-only

.. attribute:: abi_info.pointer_bits

The width of pointers in bits, as an integer, equivalent
to ``8 * sizeof(void *)``. Usually, this is ``32`` or ``64``.
The width of pointers in bits, as an integer,
equivalent to ``8 * sizeof(void *)``.
Usually, this is ``32`` or ``64``.

.. attribute:: abi_info.free_threaded

Aboolean indicating whether the interpreter was built with
ABoolean indicating whether the interpreter was built with
:term:`free threading` support.
This reflects the presence of the :option:`--disable-gil` configure
option, or the setting of the ``DisableGil`` propertyonWindows,
respectively.
This reflectseitherthe presence of the :option:`--disable-gil`
:file:`configure` option (onUnix)
or setting the ``DisableGil`` property (on Windows).

.. attribute:: abi_info.debug

Aboolean indicating whether the interpreter was built in
ABoolean indicating whether the interpreter was built in
:ref:`debug mode <debug-build>`.
This reflects the presence of the :option:`--with-pydebug` configure
option, or the ``Debug`` configuration on Windows, respectively.
This reflects either the presence of the :option:`--with-pydebug`
:file:`configure` option (on Unix)
or the ``Debug`` configuration (on Windows).

.. attribute:: abi_info.byteorder

A string indicating the native byte order, either ``'big'`` or
``'little'``.
A string indicating the native byte order,
either ``'big'`` or``'little'``.
This is the same as the :data:`byteorder` attribute.


Expand Down
2 changes: 1 addition & 1 deletionDoc/whatsnew/3.15.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -463,7 +463,7 @@ ssl
sys
---

*Added :data:`sys.abi_info`object tomake ABI information more easily accessible.
*Add :data:`sys.abi_info`namespace toimprove access to ABI information.
(Contributed by Klaus Zimmermann in :gh:`137476`.)


Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp