Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support keys(::IOContext) #37701

Closed
simeonschaub opened this issue Sep 22, 2020 · 0 comments · Fixed by #37753
Closed

support keys(::IOContext) #37701

simeonschaub opened this issue Sep 22, 2020 · 0 comments · Fixed by #37753
Labels
display and printing Aesthetics and correctness of printed representations of objects.

Comments

@simeonschaub
Copy link
Member

simeonschaub commented Sep 22, 2020

Since IOContext supports getindex and haskey, I think it would make sense to have keys return a (lazy) iterator as well. Since IOContext is not iterable, we can't use KeySet, but it should still be pretty straightforward to implement. It would just need to return keys(io.dict).

@rfourquet rfourquet added the display and printing Aesthetics and correctness of printed representations of objects. label Sep 23, 2020
simeonschaub added a commit to simeonschaub/julia that referenced this issue Sep 25, 2020
simeonschaub added a commit to simeonschaub/julia that referenced this issue Oct 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
display and printing Aesthetics and correctness of printed representations of objects.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants