Skip to content
This repository has been archived by the owner on Nov 30, 2024. It is now read-only.

prefer-simple-iterator #87

Open
sbdchd opened this issue Jun 11, 2021 · 0 comments · May be fixed by #90
Open

prefer-simple-iterator #87

sbdchd opened this issue Jun 11, 2021 · 0 comments · May be fixed by #90
Assignees
Labels
enhancement New feature or request

Comments

@sbdchd
Copy link
Owner

sbdchd commented Jun 11, 2021

# err, can be `for foo in bar`
for _idx, foo in enumerate(bar):
    ...

# err, can be `for value in foo.values()`
for _key, value in foo.items():
    ...

# err, can be `for key in foo.keys()` or `for key in foo.keys()`
for key, _value in foo.items():
    ...

This would work better with type checking since .items() and keys() can be overloaded, but probably still work syntacticly

@chdsbd chdsbd self-assigned this Jun 12, 2021
@sbdchd sbdchd added the enhancement New feature or request label Jun 13, 2021
@chdsbd chdsbd linked a pull request Jun 14, 2021 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants