[issue13722] "distributions can disable the encodings package"

2012-01-18 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker ___ __

[issue13722] "distributions can disable the encodings package"

2012-01-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset 46b245f03f54 by Antoine Pitrou in branch '3.2': Issue #13722: Avoid silencing ImportErrors when initializing the codecs registry. http://hg.python.org/cpython/rev/46b245f03f54 New changeset f55529aa023d by Antoine Pitrou in branch 'default': Issue

[issue13722] "distributions can disable the encodings package"

2012-01-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: Actually, that code is from bc861add5d71. But the error was also muted in the initial checkin in d0e06efb3165. In any case, the silencing should be removed, both in 3.2 and 3.3 IMO. -- ___ Python tracker

[issue13722] "distributions can disable the encodings package"

2012-01-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: Those lines were whitespace reformed by Antoine in 61466/61463. They previously came from 28325 which fixed #663074 (2003). I do not see any discussion in that issue of making the import optional. I suspect there is no test of Python working with no encodings ;-

[issue13722] "distributions can disable the encodings package"

2012-01-13 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue13722] "distributions can disable the encodings package"

2012-01-06 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Agreed. This behavior probably comes from the times when unicode was an optional feature. -- ___ Python tracker ___ ___

[issue13722] "distributions can disable the encodings package"

2012-01-06 Thread Antoine Pitrou
New submission from Antoine Pitrou : 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 s