This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author terry.reedy
Recipients terry.reedy
Date 2014-03-22.20:13:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1395519186.07.0.912886400259.issue21026@psf.upfronthosting.co.za>
In-reply-to
Content
In the first section of the doc for site.py, after

"After these path manipulations, an attempt is made to import a module named sitecustomize, which can perform arbitrary site-specific customizations. It is typically created by a system administrator in the site-packages directory. If this import fails with an ImportError exception, it is silently ignored."

I propose to add (something like)

"If python is started without output streams available, as with pythonw on Windows (used by default to start Idle), attempted output from sitecustomize is ignored. Any exception other that ImportError causes a silent and perhaps mysterious failure of the process."

This issue was stimulated by someone asking on python-list about print() outout appearing when starting the console interpreter but not when starting Idle (on Windows).  I then tested the result of an excecption other than ImportError. At the console, nothing visible happens until a new prompt appears.

C:\Programs\Python34>pythonw -m idlelib.idle

C:\Programs\Python34>

If Idle is already running, the attempt to run a file with F5 gives a messages about not being able to connect to the subprocess (which silently failed).
History
Date User Action Args
2014-03-22 20:13:06terry.reedysetrecipients: + terry.reedy
2014-03-22 20:13:06terry.reedysetmessageid: <1395519186.07.0.912886400259.issue21026@psf.upfronthosting.co.za>
2014-03-22 20:13:06terry.reedylinkissue21026 messages
2014-03-22 20:13:05terry.reedycreate