Why this code is working?
bruno.42.desthuilliers at websiteburo.invalid
Wed Jan 14 16:06:49 CET 2009
Hussein B a écrit :
> On Jan 14, 2:21 pm, Steven D'Aprano <st... at REMOVE-THIS-
> cybersource.com.au> wrote:
>> On Wed, 14 Jan 2009 01:57:48 -0800, Hussein B wrote:
>>>> Well... Because it is correct ?
>>>> What make you think it _shouldn't_ work ?
>>> Because def2 is defined after def1 in an interpreted language, not
>> Python is compiled.
> Yes I know Python programs can be compiled
wrt/ CPython: s/can be/are/
> but when I do:
> python Script1.py
> Did Python compile Script1 into the memory?
Yes. Only (imported) modules are automatically saved as .pyc.
More information about the Python-list