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
string length() does not give iterable item count #1454
Comments
|
I'll add that comprehensions get the length wrong but don't segfault:
I wonder if it's reasonable to define an |
This is probably one reason we used to have a separate |
BTW, the segfault is also due only to |
Ho-hum. I'm not really sure what to do here. Didn't you want to rename strlen anyway? |
The only use of |
I have to think about this because it radically changes what was a pretty well-thought-through, coherent view of strings – i.e. that |
If we could fix both those things it would be fantastic. Otherwise, we could just bring back |
Hmm. This is a tricky problem. |
@JeffBezanson isn't this fixed? (with extensions to comprehensions covered by open issue #1457 referenced above) |
Not entirely, since the title of this issue is still true afaik. Either
|
See #1939. |
This works:
This segfaults:
My guess is that
[x...]
should usestrlen
instead oflength
in this case.The text was updated successfully, but these errors were encountered: