fork(1) download
  1. class Class(object):
  2. def __init__(self, arg):
  3. self.y = arg
  4. def output(self):
  5. print(self.y())
  6.  
  7. c = Class(lambda: x + 5)
  8.  
  9. x = 5
  10.  
  11. c.output()
  12.  
  13. x = 10
  14.  
  15. c.output()
Success #stdin #stdout 0.11s 10104KB
stdin
Standard input is empty
stdout
10
15