You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In that thread, someone suggested using a dictionary for labeled indexing, as an alternative to adding new syntax. Although dedicated syntax would be nicer, I think we should consider adding this feature to xray, so we can write lines like this:
x[dict(time='2010')] =10
The text was updated successfully, but these errors were encountered:
A recent discussion on the Python Ideas mailing list proposed adding keyword indexing to Python's syntax (e.g.,
x[time='2010']
):https://mail.python.org/pipermail/python-ideas/2014-July/028250.html
In that thread, someone suggested using a dictionary for labeled indexing, as an alternative to adding new syntax. Although dedicated syntax would be nicer, I think we should consider adding this feature to xray, so we can write lines like this:
The text was updated successfully, but these errors were encountered: