New submission from Nick Coghlan <ncogh...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue12374>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to