Safe to import __builtin__ ?

mrstevegross mrstevegross at gmail.com
Tue Jun 2 15:40:56 EDT 2009


Is it generally safe to explicitly import __builtin__ in python? That
is, my code reads like this:

=== foo.py ===
import __builtin__
...
print __builtin__.type('a')
=== EOF ===

It seems like it should be a safe import, but I just want to make
sure.

Thanks,
--Steve



More information about the Python-list mailing list