Source

pyld / examples / simple / test-2-pyld.py

Full commit


if __name__ == '__pyld_init__':
  test_2_var = 0
  print 'initializing pyld test'

if __name__ == '__pyld_unload__':
  print 'unloading pyld test ... test_2_var:', test_2_var, 'the_global_number:', the_global_number

if __name__ == '__pyld_reload__':
  test_2_var = 0
  print 'reloading pyld test ... test_2_var:', test_2_var, 'the_global_number:', the_global_number



if __name__ == '__pyld_tick__':
  test_2_var += 1
  ## better don't print stuff here ^^