Why this code is working?
hubaghdadi at gmail.com
Wed Jan 14 13:59:08 CET 2009
On Jan 14, 2:21 pm, Steven D'Aprano <st... at REMOVE-THIS-
> 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
> > compiled.
> Python is compiled.
> What do you think the c in .pyc stands for? And what do you think the
> compile() function does?
> It's just not compiled to machine code. It's compiled to byte code.
Yes I know Python programs can be compiled but when I do:
Did Python compile Script1 into the memory?
More information about the Python-list