Skip to content
This repository was archived by the owner on Sep 3, 2022. It is now read-only.

Collections could benefit from key'd lookup #592

Open
nikhilk opened this issue Oct 2, 2015 · 0 comments
Open

Collections could benefit from key'd lookup #592

nikhilk opened this issue Oct 2, 2015 · 0 comments

Comments

@nikhilk
Copy link
Contributor

nikhilk commented Oct 2, 2015

Example:

datasets = bq.DataSets(project_id = 'cloud-datalab')
for ds in datasets:
  print ds.name

The result is a listing. Next step is to work against one of the items.

Try, datasets['sampledata']

--> error: TypeError: 'DataSets' object has no attribute 'getitem'

Try: datasets[3]

--> error: TypeError: 'DataSets' object does not support indexing

Ideally both positional and key'd indexing into collections should work.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants