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
{{ message }}
Repository navigation
dict_keys, dict_values, and dict_items are missing several methods #2898
changed the title [-]`dict_keys` is missing several methods[/-][+]`dict_keys`, `dict_values`, and `dict_items` are missing several methods[/+]on Aug 16, 2021
Yup, I don't think a macro should be used to generate the types as is currently done. For their respective iterators, the macro seems like a good idea, for the types, not that much.
Additionally, though item in view currently works (falling back to iterating), it can be O(1) for keys and items views by keying the dict ref they hold.
Activity
[-]`dict_keys` is missing several methods[/-][+]`dict_keys`, `dict_values`, and `dict_items` are missing several methods[/+]DimitrisJim commentedon Aug 16, 2021
Yup, I don't think a macro should be used to generate the types as is currently done. For their respective iterators, the macro seems like a good idea, for the types, not that much.
DimitrisJim commentedon Aug 16, 2021
Additionally, though
item in viewcurrently works (falling back to iterating), it can beO(1)forkeysanditemsviews by keying the dict ref they hold.youknowone commentedon Nov 28, 2021
is this done? can we list up what's done and left?
rvsampson94 commentedon Nov 30, 2021
I think sizeof is the last one that needs to be merged. After that it should be done.
John15321 commentedon May 27, 2022
Hey if its done you guys should close the issue :)
youknowone commentedon May 27, 2022
@John15321 thank you!