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
SymbolTable.get_identifiers() currently says:
"Return a list of names of symbols in this table."
However, the returned value is actually dict_keys, a dictionary view object, which doesn't support everything that a list does (notably, it's not subscriptable).
I have a PR with a proposed change incoming.
The text was updated successfully, but these errors were encountered:
Alternatively, that method could return a list by wrapping the return value in list(), but that could potentially be backward incompatible so I assume its preferable to just update the documentation.
Documentation
SymbolTable.get_identifiers() currently says:
"Return a list of names of symbols in this table."
However, the returned value is actually dict_keys, a dictionary view object, which doesn't support everything that a list does (notably, it's not subscriptable).
I have a PR with a proposed change incoming.
The text was updated successfully, but these errors were encountered: