Allow most iterables as return values. #684

wants to merge 1 commit into


None yet

2 participants


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.


-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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment