[pypy-issue] [issue876] __builtins__ ain't modifyable in pypy, but it works in CPython 2.7.2.

Stian Andreassen tracker at bugs.pypy.org
Thu Sep 22 15:07:53 CEST 2011


Stian Andreassen <stian at tech1.org> added the comment:

Alright, that seems to do the trick. 

On Thu, 22 Sep 2011 02:40:40
+0000, Alex Gaynor wrote: 

CPython has some crazy inconsistancies around __builtins__, and PyPy
doesn't
> always match them, specifically sometimes it's a dictionary
and other times it's
> a module (as mentioned here:
>
http://pypy.readthedocs.org/en/latest/cpython_differences.html#miscellaneous
[2]) 
> This is a known issue and won't be fixed. However, you can have
something that
> works on both by doing:
> 
> import __builtin__
>
__builtin__.something = "test"
> 
> ----------
> nosy: +agaynor
>
status: unread -> wontfix
> 
>
________________________________________
> PyPy bug tracker 
> 
>
________________________________________

Links:
------
[1]
mailto:alex.gaynor at gmail.com
[2]
http://pypy.readthedocs.org/en/latest/cpython_differences.html#miscellaneous
[3]
mailto:tracker at bugs.pypy.org
[4] https://bugs.pypy.org/issue876

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue876>
________________________________________


More information about the pypy-issue mailing list