Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make D[x,y...] correspond to D[(x,y...)] for a dictionary D #4870

Merged
merged 1 commit into from
Nov 20, 2013

Conversation

stevengj
Copy link
Member

As discussed in #4803, this makes

mydict[key1, key2, key3]

equivalent to

mydict[(key1, key2, key3)]

to give a convenient syntax for multi-index dictionaries analogous to multi-index arrays.

See the discussion in #4803. This is apparently the Python behavior as well.

StefanKarpinski added a commit that referenced this pull request Nov 20, 2013
make D[x,y...] correspond to D[(x,y...)] for a dictionary D
@StefanKarpinski StefanKarpinski merged commit 21c2e86 into JuliaLang:master Nov 20, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants