fork download
  1. fam_size = [[0,1,2,3,4], [5,6,7,8,9]]
  2. fam_size
  3.  
  4. def doThing():
  5. global fam_size
  6. fam_size_local = sum(fam_size, [])
  7. for i in range(5):
  8. fam_size_local.pop(0)
  9.  
  10. doThing() # expect half of the entries to be removed
  11. fam_size
  12. doThing() # remove the second half, empty fam_size
Success #stdin #stdout 0.01s 7732KB
stdin
Standard input is empty
stdout
Standard output is empty