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

Alex Gaynor tracker at bugs.pypy.org
Thu Sep 22 04:40:40 CEST 2011


Alex Gaynor <alex.gaynor at gmail.com> added the comment:

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) 
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 <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue876>
________________________________________


More information about the pypy-issue mailing list