[Snek] [keith-packard/snek] 191ae1: Support tuple dictionary indices without requiring...
Keith Packard
noreply at github.com
Tue Mar 23 16:58:25 PDT 2021
Branch: refs/heads/tuple-index
Home: https://github.com/keith-packard/snek
Commit: 191ae13a7ca9f5b7cbd45e71d67180a9618f8ddd
https://github.com/keith-packard/snek/commit/191ae13a7ca9f5b7cbd45e71d67180a9618f8ddd
Author: Keith Packard <keithp at keithp.com>
Date: 2021-03-23 (Tue, 23 Mar 2021)
Changed paths:
M snek-gram.ll
Log Message:
-----------
Support tuple dictionary indices without requiring parens
This is a syntactic 'feature' of python, allowing tuples to index
dictionaries without requiring that they be enclosed in parens.
> a = {}
> a[1,2] = 'hi'
> a[1,2]
hi
>
This consumes a bit of ROM space, and doesn't seem like an important
enough feature to include, so I've left it on a branch.
Signed-off-by: Keith Packard <keithp at keithp.com>
More information about the Snek
mailing list