Jakub Debski wrote:
Hi,

Is it possible to execute global code (module-level code) more than once keeping the state of global variables? This means no reload() and no moving the code to a function.

Wrap the code in a loop:

for dummy in range(<n>): # <n> a plural count literal
  <module-level code>

tjr

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to