H
Hussein B
Hey,
Why this code is working?
.... x = 88
.... f2(x)
........ print x
....88
Thanks.
Why this code is working?
.... x = 88
.... f2(x)
........ print x
....88
Thanks.
Hey,
Why this code is working?
... x = 88
... f2(x)
...
... print x
...
88
Hussein B a écrit :
Well... Because it is correct ?
What make you think it _shouldn't_ work ?
Hussein said:Why this code is working?
... x = 88
... f2(x)
...
... print x
...
88
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.
r said:Listen Hussien,
In python you do not have to worry about what order this is, what type
to declare that, my friend your bonds are cut. Be happy with your
freedom and stop complaining about it. I guess where i come from
freedom is second nature so i took to python pretty quick.
Granted, with a name of "r", spelling it wrong is hard, and thus you might
not be trained in the art of spelling names proper.
Because def2 is defined after def1 in an interpreted language, not
compiled.
(snip)
>
Yes I know Python programs can be compiled
but when I do:
python Script1.py
Did Python compile Script1 into the memory?
Hussein said:Because def2 is defined after def1 in an interpreted language, not
compiled.
I am happy to say I did not receive the post of which you complain,Diez said:Granted, with a name of "r", spelling it wrong is hard, and thus you might
not be trained in the art of spelling names proper. But I suggest you try
your best. After all, you posts lack so much in content, you could at least
excel in form...
What's that condescending nonsense to mean? What do you know of the
heritage and living circumstances of the OP? And since when is a choice of
typing-system correlated with the political and social aspects of a
society - you care to prove that?
And where did the OP "complain"? He merely wondered.
I'm well aware that you are a piece of trolling d.....t. But this goes a bit
to far, Mr.
I guess where i come from
freedom is second nature so i took to python pretty quick.
[...] *not being afraid to open my mouth about it, fight for it, free
others from their bonds* [...]
Come down from your tower of *righteousness* Deiz, loosen up that stiff-
upper-lip and bring your brown-nosing minions with you!
How's that Python bridge to SketchUp coming
along? It's been months already, surely you've invested as much effort
into learning Python as you have in talking about it?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.