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

Iterability of Strings #152

Closed
mitsuhiko opened this issue Nov 19, 2022 · 0 comments
Closed

Iterability of Strings #152

mitsuhiko opened this issue Nov 19, 2022 · 0 comments
Labels
jinja-compat Jinja2 compatibility issues

Comments

@mitsuhiko
Copy link
Owner

In Jinja2 you can iterate over a string which yields the characters in it. In MiniJinja that is only possible if you call |list. That is somewhat intentional as I always found this implicit character iteration of strings in Python odd, but it's a divergence in behavior that might need fixing.

@mitsuhiko mitsuhiko added the jinja-compat Jinja2 compatibility issues label Nov 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
jinja-compat Jinja2 compatibility issues
Projects
None yet
Development

No branches or pull requests

1 participant