We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a69992 commit d49abc9Copy full SHA for d49abc9
1 file changed
Doc/library/sys.rst
@@ -30,8 +30,11 @@ always available. Unless explicitly noted otherwise, all variables are read-only
30
.. code-block:: python
31
32
>>> import sys
33
- >>> getattr(sys, 'abiflags', '')
34
- DeprecationWarning: sys.abiflags will be set to a meaningful value on all platforms ...
+ >>> getattr(sys, 'abiflags', None)
+ <python-input-1>:1: DeprecationWarning: sys.abiflags will be set to a meaningful value on all platforms ...
35
+ >>> hasattr(sys, 'abiflags')
36
+ <python-input-2>:1: DeprecationWarning: sys.abiflags will be set to a meaningful value on all platforms ...
37
+ False
38
39
Due to historical reasons, :data:`sys.abiflags` is not covered by
40
:pep:`3149` on Windows. Now we have multiple builds, such as the
0 commit comments