How to force built-in commands over imported.

Fredrik Lundh fredrik at pythonware.com
Wed Sep 4 18:13:43 EDT 2002


Gerhard Häring wrote:

> The technical answer is to use __builtins__["open"].

that should be:

    import __builtin__
    file = __builtin__.open(...)

__builtins__ is an implementation detail.

</F>





More information about the Python-list mailing list