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

In iterators.jl:1092 and 1095 Stateful{T,VS} is reversed to {VS,T} #30643

Closed
denizyuret opened this issue Jan 8, 2019 · 1 comment
Closed
Labels
bug Indicates an unexpected problem or unintended behavior

Comments

@denizyuret
Copy link
Contributor

IteratorSize(::Type{Stateful{VS,T}} where VS) where {T} =

e.g. Stateful(cycle(itr)) claims it has length.

@JeffBezanson JeffBezanson added the bug Indicates an unexpected problem or unintended behavior label Jan 8, 2019
@JeffBezanson
Copy link
Member

Wow, thank you. Good catch. Could you prepare a PR?

denizyuret added a commit to denizyuret/julia that referenced this issue Jan 8, 2019
Not sure what the previous definition of IteratorSize was trying to do, but it was wrong for IsInfinite. Not sure what the correct answer is for HasShape.
denizyuret added a commit to denizyuret/julia that referenced this issue Jan 8, 2019
@KristofferC KristofferC mentioned this issue Jan 11, 2019
53 tasks
KristofferC pushed a commit that referenced this issue Jan 11, 2019
@KristofferC KristofferC mentioned this issue Feb 4, 2019
39 tasks
KristofferC pushed a commit that referenced this issue Feb 11, 2019
@KristofferC KristofferC mentioned this issue Feb 11, 2019
39 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates an unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

2 participants