From: JZ Date: 2005-03-31T21:44:50+09:00 Subject: Re: Poor efficency of Ruby... Dnia Thu, 31 Mar 2005 18:34:17 +0900, Bill Atkins napisa�(a): >> No. Python *automatically compiles* every imported module. It is the >> feature of the language. > > Er. Not true. When you load a file in Python, it is interpreted and > becomes part of the current program. It isn't compiled to bytecode so > that the bytecode can be used next time for faster load. This is *not true*. Did you check it? I bet you don't. > dir 2005-03-31 14:37 . 2005-03-31 14:37 .. 2005-03-31 14:36 16 file1.py 2005-03-31 14:37 27 file2.py > type file1.py x = "I'm file 1" >type file2.py import file1 print file1.x > file2.py > I'm file 1 > dir 2005-03-31 14:37 . 2005-03-31 14:37 .. 2005-03-31 14:36 16 file1.py 2005-03-31 14:37 163 file1.pyc 2005-03-31 14:37 27 file2.py As you can see, file1.pyc is created automatically. Check it. You are wrong for sure. -- JZ