open vs. open

Emile van Sebille emile at fenx.com
Thu Nov 1 16:31:51 EST 2001


"Armin Steinhoff" <a-steinhoff at web.de> wrote in message
news:ddc19db7.0111011314.14bb657 at posting.google.com...
> Hi all,
>
> I'm surely not the first one who was trapping into the
> '__builtin__.open vs. os.open' problem.
>
> Question: is it possible to rename the __builtin__.open call to
> __builtin__.fopen because it does really a fopen library call??

Yes.

>
> Or does it break something ??
>

Probably.

It sounds like you're doing from os import open.  Why not import os, then
refer to os.open?

Emile van Sebille
emile at fenx.com




More information about the Python-list mailing list