open vs. open

Kirill Simonov kirill at xyz.donetsk.ua
Fri Nov 2 15:17:25 CET 2001


On Thu, Nov 01, 2001 at 01:14:23PM -0800, Armin Steinhoff wrote:
> 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??
> 
> Or does it break something ??

$ python2.2
Python 2.2b1 (#1, Oct 21 2001, 19:50:56) 
>>> __builtins__.file is __builtins__.open
1


\Xi





More information about the Python-list mailing list