Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 43e7cd3

Browse files
committed
Issue #21026: Augment site doc based on experiments. Patch by Carol Willing.
1 parent f9f54a2 commit 43e7cd3

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

Doc/library/site.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,11 @@ After these path manipulations, an attempt is made to import a module named
9999
:mod:`sitecustomize`, which can perform arbitrary site-specific customizations.
100100
It is typically created by a system administrator in the site-packages
101101
directory. If this import fails with an :exc:`ImportError` exception, it is
102-
silently ignored.
102+
silently ignored. If Python is started without output streams available, as
103+
with :file:`pythonw.exe` on Windows (which is used by default to start IDLE),
104+
attempted output from :mod:`sitecustomize` is ignored. Any exception other
105+
than :exc:`ImportError` causes a silent and perhaps mysterious failure of the
106+
process.
103107

104108
.. index:: module: usercustomize
105109

Misc/ACKS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1421,6 +1421,7 @@ Gerald S. Williams
14211421
Jason Williams
14221422
John Williams
14231423
Sue Williams
1424+
Carol Willing
14241425
Steven Willis
14251426
Frank Willison
14261427
Geoff Wilson

0 commit comments

Comments
 (0)