[pypy-dev] Taking pypy for a test drive
Nicholas Riley
njriley at uiuc.edu
Fri Jul 13 16:07:10 CEST 2007
On Fri, Jul 13, 2007 at 09:50:59AM -0400, Jean-Paul Calderone wrote:
> It seems likely that what django ought to be doing is:
>
> import __builtin__
> __builtin__._ = first_time_gettext
>
> And a similar change in first_time_gettext. __builtin__/__builtins__ is
> a bit subtle and I might be forgetting something, but I think the above
> is correct. I remember that __builtins__ is somethings a dict instead of
> the __builtin__ module, but I forget when (and I couldn't find the case
> with a few simple tests). I think python-dev has pointed out that this
> is an implementation detail of CPython on several occassions, though, and
> that explicitly importing the __builtin__ module is the right thing to
> do.
It's documented in the Python reference manual.
<http://docs.python.org/ref/naming.html>
--
Nicholas Riley <njriley at uiuc.edu> | <http://www.uiuc.edu/ph/www/njriley>
More information about the pypy-dev
mailing list