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

Allow most iterables as return values. #684

Closed
wants to merge 1 commit into from

Conversation

untitaker
Copy link
Contributor

Allows you to directly yield data from the view instead of having to make an inner function whose return value you pass to flask.Response.

@mitsuhiko
Copy link
Contributor

-1 on this. There are too many options you need to consider when dealing with streaming and there is the other disadvantage that nothing in the function fires until you iterate once. This leads to hard to debug bugs. The extra level of indirection solves this nicely.

@mitsuhiko mitsuhiko closed this Feb 27, 2013
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants