Skip to content

Commit 05c3c07

Browse files
zklausAA-Turner
andauthored
Apply suggestions from code review
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
1 parent 34c7afe commit 05c3c07

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

peps/pep-0780.rst

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ library as ``sys.abi_features``, and as the new environment marker variable
165165
``sys_abi_features``.
166166

167167
ABI Features
168-
''''''''''''
168+
------------
169169

170170
ABI features are intrinsic properties of the Python interpreter, expressed as
171171
simple, understandable strings.
@@ -199,8 +199,8 @@ which case there MUST be at most one feature present.
199199
this feature MUST NOT be present.
200200

201201

202-
Addition to the Python Standard Library
203-
'''''''''''''''''''''''''''''''''''''''
202+
The :data:`!sys.abi_features` attribute
203+
---------------------------------------
204204

205205
Making the ABI features available in an easily accessible, expressive,
206206
standardized way is useful beyond the scope of environment markers.
@@ -224,8 +224,8 @@ defined in this PEP or in a subsequent PEP.
224224
An example value would be ``sys.abi_features == frozenset({"free-threading",
225225
"debug", "32-bit"})`` on a free-threaded debug build for win32.
226226

227-
Environment Markers
228-
'''''''''''''''''''
227+
``sys_abi_features`` environment marker
228+
---------------------------------------
229229

230230
To make ABI features available in dependency specifications, a new environment
231231
marker variable, ``sys_abi_features``, is added to the format of dependency
@@ -258,7 +258,8 @@ Like the grammar, also the overview table of environment markers in
258258
- Sample values
259259
* - ``sys_abi_features``
260260
- ``sys.abi_features`` [#sys-abi-features]_
261-
- ``set()``, ``{"free-threading"}``, ``{"free-threading", "debug"}``
261+
- ``frozenset()``, ``frozenset({'free-threading', '64-bit'})``,
262+
``frozenset({'gil-enabled', 'debug', '32-bit'})``
262263

263264
With these additions, ABI features can be used in dependency specifications via
264265
the ``in`` operator to test for the presence of a feature, or the ``not in``
@@ -361,11 +362,11 @@ of the ``packaging`` library at `Environment markers for ABI features
361362
also available.
362363

363364
Since ``pip`` uses a vendored copy of ``packaging`` internally, we also provide
364-
`a patched version of pip
365-
<https://github.com/zklaus/pip/tree/env-marker-free-threading>`__, which is
366-
based on pypa/pip:main with the vendored ``packaging`` replaced by the
365+
`a patched version of pip`__, which replaces the vendored ``packaging`` with the
367366
reference implementation linked above.
368367

368+
__ https://github.com/zklaus/pip/tree/env-marker-free-threading
369+
369370
Rejected Ideas
370371
==============
371372

0 commit comments

Comments
 (0)