bpo-1294959: Try to clarify the meaning of platlibdir (GH-20332) · python/cpython@242d956 · GitHub
Skip to content

Commit 242d956

Browse files
authored
bpo-1294959: Try to clarify the meaning of platlibdir (GH-20332)
Try to make the meaning of platlibdir clear. The previous wording could be misinterpreted to suggest that it will be used to find all shared libraries on the system, and not just Python extensions. Furthermore, it was unclear whether it affects third-party (site-packages) extensions or not. The new wording tries to make its dual purpose clear, and provide the additional example of extensions in site-packages.
1 parent fda7f6d commit 242d956

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

Doc/library/sys.rst

Lines changed: 4 additions & 3 deletions

Doc/whatsnew/3.9.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -552,10 +552,9 @@ sys
552552
---
553553

554554
Add a new :attr:`sys.platlibdir` attribute: name of the platform-specific
555-
library directory. It is used to build the path of platform-specific dynamic
556-
libraries and the path of the standard library. It is equal to ``"lib"`` on
557-
most platforms. On Fedora and SuSE, it is equal to ``"lib64"`` on 64-bit
558-
platforms.
555+
library directory. It is used to build the path of standard library and the
556+
paths of installed extension modules. It is equal to ``"lib"`` on most
557+
platforms. On Fedora and SuSE, it is equal to ``"lib64"`` on 64-bit platforms.
559558
(Contributed by Jan Matějek, Matěj Cepl, Charalampos Stratakis and Victor Stinner in :issue:`1294959`.)
560559

561560
Previously, :attr:`sys.stderr` was block-buffered when non-interactive. Now

Misc/NEWS.d/3.9.0a5.rst

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)