Author lemburg
Recipients brett.cannon, lemburg, mark.dickinson, orsenthil, pitrou, rhettinger, vstinner
Date 2010-08-09.21:10:45
SpamBayes Score 3.37313e-09
Marked as misclassified No
Message-id <4C606701.9060205@egenix.com>
In-reply-to <1281382891.84.0.872647512594.issue9548@psf.upfronthosting.co.za>
Content
Antoine Pitrou wrote:
> 
> Antoine Pitrou <pitrou@free.fr> added the comment:
> 
> Attached patch fixes the issue by creating a separate "_bootlocale" module, used at bootstrap, which doesn't import collections, functools and friends.

I don't think that's the right way forward.

It's much easier to either remove the need to import those
extra modules or defer their import to actual use within
a function.

Both collections and functools are used in two distinct places.
The re module use could also be deferred to actual use.

It would be worthwhile adding a note to the top of the module
mentioning the fact that the module is loaded early on by Python
and to warn about use of non-builtin module imports.
History
Date User Action Args
2010-08-09 21:10:48lemburgsetrecipients: + lemburg, brett.cannon, rhettinger, mark.dickinson, orsenthil, pitrou, vstinner
2010-08-09 21:10:46lemburglinkissue9548 messages
2010-08-09 21:10:45lemburgcreate