Message150767
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. |
|
Date |
User |
Action |
Args |
2012-01-06 20:32:22 | pitrou | set | recipients:
+ pitrou, loewis, amaury.forgeotdarc |
2012-01-06 20:32:22 | pitrou | set | messageid: <1325881942.74.0.535921078744.issue13722@psf.upfronthosting.co.za> |
2012-01-06 20:32:22 | pitrou | link | issue13722 messages |
2012-01-06 20:32:21 | pitrou | create | |
|