Steven D'Aprano wrote:
> I've read the entire thread, and I don't understand what builtins has to 
> do with your problem.

Just that, as a workaround, I can have the classdict object raise KeyError for 
anything that's a member of builtins so that the builtins are used instead of 
being masked.

> 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.

Thanks for setting me straight on this. Much appreciated.
_______________________________________________
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/TOJ22L5RXX6XXMRBORIYTCKOW2Y2R5LP/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to