diff options
author | Damien George <damien.p.george@gmail.com> | 2015-04-24 01:52:28 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2015-04-24 01:52:28 +0100 |
commit | 8c1d23a0e20da2903f363448e8042e5d08caabe7 (patch) | |
tree | 0d7713088c7ebec74030b8d1f4e02dcb4d484138 /py/stream.h | |
parent | ede0f3ab3dfcc4ab1a5799b312395703bf942517 (diff) | |
download | micropython-8c1d23a0e20da2903f363448e8042e5d08caabe7.tar.gz micropython-8c1d23a0e20da2903f363448e8042e5d08caabe7.zip |
py: Modify bytecode "with" behaviour so it doesn't use any heap.
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.
Diffstat (limited to 'py/stream.h')
0 files changed, 0 insertions, 0 deletions