On Sun, Oct 20, 2019 at 02:56:22AM -0000, Steve Jorgensen wrote:

> I have been able to at least unmask builtins by having the classdict 
> object first try to get a result from `__builtins__` and then fall 
> back to itself.

I've read the entire thread, and I don't understand what builtins has to 
do with your problem. But regardless, you shouldn't touch 
`__builtins__`, it is a private implementation detail of CPython.

The right way is:

    import builtins  # Python 3
    import __builtin__ as builtins  # Python 2

and then use `builtins`.


-- 
Steven
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/2FNC2YS5NCD2RFIAHSF2PJOWWCSWNUXD/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to