Skip to content

Fix python3.4 issue - dict_values object does not support indexing#84

Open
patryk4815 wants to merge 1 commit intosebleier:masterfrom
patryk4815:master
Open

Fix python3.4 issue - dict_values object does not support indexing#84
patryk4815 wants to merge 1 commit intosebleier:masterfrom
patryk4815:master

Conversation

@patryk4815
Copy link

Function random.choice dont support dict_values indexing.

Sample:
variable = {'a': 1, 'b': 2}
values = variable.values()
print(values[0]) # error

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.

1 participant