Message113878
As we move more and more infrastructure into Python code, we're going to see this pattern (i.e. a bootstrap module underlying the real module) more and more often (e.g. I seem to recall Brett has to do something similar when playing with the pure Python __import__ implementation).
I don't have an issue with it - it's a solid, standard solution to a recurring problem with otherwise circular dependencies.
The only changes I would suggest to Antoine's patch are to explicitly scope "interpreter startup" in the _bootlocale docstring (to make it clear that sitecustomize.py should use the ordinary locale module) and to mention the nature of _bootlocale in a comment just before the "from _bootlocale import *" line in locale.py. |
|
Date |
User |
Action |
Args |
2010-08-14 07:49:44 | ncoghlan | set | recipients:
+ ncoghlan, lemburg, brett.cannon, rhettinger, mark.dickinson, orsenthil, pitrou, vstinner |
2010-08-14 07:49:44 | ncoghlan | set | messageid: <1281772184.64.0.787021281298.issue9548@psf.upfronthosting.co.za> |
2010-08-14 07:49:32 | ncoghlan | link | issue9548 messages |
2010-08-14 07:49:31 | ncoghlan | create | |
|