Re: Optional parameter object re-used when instantiating multipleobjects
On Thu, 20 Nov 2008 04:42:24 -0800, Aaron Brady wrote:
Of course there is compile-time. When did you think the .pyc files got
created?
The same thing happens in the interactive interpreter: the function is
compiled to byte-code, and then the compiled function is executed by the
VM.
--
Steven
On Thu, 20 Nov 2008 04:42:24 -0800, Aaron Brady wrote:
On Nov 19, 7:58Â pm, alex23 <wuwe...@gmail. comwrote:
>
At first, I would expect it to define them at compile-time. Then, when
I learned there was no such thing,
>On Nov 20, 10:14Â am, Aaron Brady <castiro...@gma il.comwrote:
>>
>>
>If you had a keyword called 'def', which defined functions, would you
>expect it to define said functions when it executed, or on each
>function call?
>>
If you had a menu in a browser interface that had the items, say,
'Stop' and 'Reload', what would you expect to happen if you clicked
on them?
'Stop' and 'Reload', what would you expect to happen if you clicked
on them?
>If you had a keyword called 'def', which defined functions, would you
>expect it to define said functions when it executed, or on each
>function call?
At first, I would expect it to define them at compile-time. Then, when
I learned there was no such thing,
created?
The same thing happens in the interactive interpreter: the function is
compiled to byte-code, and then the compiled function is executed by the
VM.
--
Steven
Comment