Skip to content
GitLab
  • Explore
  • Sign in
  • TASTETASTE
  • uPython-mirror
  • Repository
  • uPython-mirror
  • py
  • vm.c
Find file Blame History Permalink
  • Damien George's avatar
    py: Modify bytecode "with" behaviour so it doesn't use any heap. · 8c1d23a0
    Damien George authored Apr 24, 2015
    Before this patch a "with" block needed to create a bound method object
    on the heap for the __exit__ call.  Now it doesn't because we use
    load_method instead of load_attr, and save the method+self on the stack.
    8c1d23a0