homepage

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 pitrou
Recipients amaury.forgeotdarc, loewis, pitrou
Date 2012年01月06日.20:32:21
SpamBayes Score 1.3437765e-08
Marked as misclassified No
Message-id <1325881942.74.0.535921078744.issue13722@psf.upfronthosting.co.za>
In-reply-to
Content
In _PyCodecRegistry_Init() (in Python/codecs.c), it is attempted to import the encodings module (so that the default search function gets registered) and failures get ignored following the same reasoning:
 /* Ignore ImportErrors... this is done so that
 distributions can disable the encodings package. Note
 that other errors are not masked, e.g. SystemErrors
 raised to inform the user of an error in the Python
 configuration are still reported back to the user. */
However, it is unlikely for Python 3 to start up at all without an encodings package (we needs some codecs to initialize stdio). Also, I'm not sure what the point would be. Distributions can simply distribute a dummy encodings module if they really want to disable the default encodings.
Not silencing the error would probably make it easier to diagnose early import issues.
History
Date User Action Args
2012年01月06日 20:32:22pitrousetrecipients: + pitrou, loewis, amaury.forgeotdarc
2012年01月06日 20:32:22pitrousetmessageid: <1325881942.74.0.535921078744.issue13722@psf.upfronthosting.co.za>
2012年01月06日 20:32:22pitroulinkissue13722 messages
2012年01月06日 20:32:21pitroucreate

AltStyle によって変換されたページ (->オリジナル) /