summaryrefslogtreecommitdiffstatshomepage
path: root/py/lexer.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2015-04-24 01:52:28 +0100
committerDamien George <damien.p.george@gmail.com>2015-04-24 01:52:28 +0100
commit8c1d23a0e20da2903f363448e8042e5d08caabe7 (patch)
tree0d7713088c7ebec74030b8d1f4e02dcb4d484138 /py/lexer.c
parentede0f3ab3dfcc4ab1a5799b312395703bf942517 (diff)
downloadmicropython-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/lexer.c')
0 files changed, 0 insertions, 0 deletions