[Python-Dev] Initialization of __builtins__

Benjamin Peterson benjamin at python.org
Sat Oct 10 21:38:32 CEST 2009

2009/10/10 Vinay Sajip <vinay_sajip at yahoo.co.uk>:
> Excuse my ignorance, but how come?

Because __builtins__ is a module in __main__ and a dict in other
places. You should always check __builtin__; __builtins__ is an
implementation detail.


More information about the Python-Dev mailing list