[issue12374] Execution model should explain compile vs definition vs execution time

Nick Coghlan report at bugs.python.org
Mon Jun 20 17:15:11 CEST 2011


New submission from Nick Coghlan <ncoghlan at gmail.com>:

The current execution model documentation in the Language Reference doesn't clearly explain the multiple phases of code execution:

1. Compilation time (statement by statement in the main module and at the interactive prompt, all at once for module import and the exec() and compile() builtins)
2. Definition time for function statements (i.e. when the function statement itself is executed)
3. Execution time for function and generator bodies (i.e. when a function is called and when next() is invoked on a generator)

----------
messages: 138728
nosy: ncoghlan
priority: normal
severity: normal
status: open
title: Execution model should explain compile vs definition vs execution time

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12374>
_______________________________________


More information about the Python-bugs-list mailing list